Volume Percentage
study(title="VolumePercentage", shorttitle="VolPCT", precision=0) showMA = input(false) showPCT = input(true) plot(volume, color = open > close ? red : green, style=columns, title="Volume MA", transp=65) plot(showMA ? sma(volume,20) : na, style=line, color=blue, title="Volume", transp=65) plot(showPCT and (volume > showMA) ? ((volume / showMA)*100) : ((1-(volume/showMA))*-100), style=line, color=blue, title="Volume PCT", transp=65)