I'm trying to use RVI(Relative Vigor Index) in my strategy,
indicator(title="Relative Vigor Index", shorttitle="RVGI", format=format.price, precision=4, timeframe="", timeframe_gaps=true)
len = input.int(10, title="Length", minval=1)
rvi = math.sum(ta.swma(close-open), len)/math.sum(ta.swma(high-low),len)
sig = ta.swma(rvi)
offset = input.int(0, "Offset", minval = -500, maxval = 500)
plot(rvi, color=#008000, title="RVGI", offset = offset)
plot(sig, color=#FF0000, title="Signal", offset = offset)
however, The 'strategy' function does not have an argument with the name 'timeframe_gaps'
this will cause a problem which is the RVI can show latest value as Indicator at current kindle, but can only show the value 1 kindle back when using as strategy. or plot value after current kindle closes.
How can I get the current kindle of RVI in strategy mode?