Percent Change by AXU
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © a-x-u

//@version=4

study(title="Percent Change by AXU",shorttitle="PC %",overlay=0)
subHL=(high/low-1)*100
subOC=(close/open-1)*100
if(open>close)
    subHL:=subHL*-1
subHL_color=color.white
subOC_color=color.white
if(subHL>0)
    subHL_color:=color.green
if(subHL<0)
    subHL_color:=color.red
    
if(subOC>0)
    subOC_color:=color.green
if(subOC<0)
    subOC_color:=color.red
plot(subHL,style=plot.style_circles,title="High-Low Percentage",color=subHL_color)
plot(subOC,style=plot.style_columns,title="Open-Close Percentage",color=subOC_color)
