//@version=2 study("Volume Spread Analysis", shorttitle="VSA") //Volume Spread Analysis //Analisis de propagacion en Volumen // devicemxl --> TradingView Site volumex=volume//*(close>close[1] ? 1 : -1) V_OPEN = V_CLOSE[1] V_CLOSE = close*volumex V_HIGH = max(max(high*volumex,V_CLOSE),V_OPEN) V_LOW = min(min(low*volumex,V_OPEN),V_CLOSE) V_HL2 = ( V_HIGH + V_LOW ) / 2 senial=input(defval="HL2",title="Signal",type=string) ploter = ( senial == "CLOSE" ) ? V_CLOSE : ( senial == "OPEN" ) ? V_OPEN : ( senial == "HL2" ) ? V_HL2 : ( senial == "HIGH" ) ? V_HIGH : ( senial == "LOW" ) ? V_LOW : 0 signal = plot(ploter, color=silver, style=circles) plotcandle(V_LOW, V_HIGH, V_LOW, V_CLOSE, title='VSA', color = open < close ? #e5f7ff : #ffe5e5, wickcolor=black)