JP782
Active member
I see TradeIQ using this study alot to help weed out false signals does anyone have it for TOS, or can convert it??
//@version=5
indicator(title="Volume Oscillator", shorttitle="Volume Osc", format=format.percent, precision=2, timeframe="", timeframe_gaps=true)
var cumVol = 0.
cumVol += nz(volume)
if barstate.islast and cumVol == 0
runtime.error("No volume is provided by the data vendor.")
shortlen = input.int(5, minval=1, title = "Short Length")
longlen = input.int(10, minval=1, title = "Long Length")
short = ta.ema(volume, shortlen)
long = ta.ema(volume, longlen)
osc = 100 * (short - long) / long
hline(0, color = #787B86, title="Zero")
plot(osc, color=#2962FF)
//@version=5
indicator(title="Volume Oscillator", shorttitle="Volume Osc", format=format.percent, precision=2, timeframe="", timeframe_gaps=true)
var cumVol = 0.
cumVol += nz(volume)
if barstate.islast and cumVol == 0
runtime.error("No volume is provided by the data vendor.")
shortlen = input.int(5, minval=1, title = "Short Length")
longlen = input.int(10, minval=1, title = "Long Length")
short = ta.ema(volume, shortlen)
long = ta.ema(volume, longlen)
osc = 100 * (short - long) / long
hline(0, color = #787B86, title="Zero")
plot(osc, color=#2962FF)