indicator · own pane · open source
Relative Vigor Index indicator
Relative Vigor Index is a free open-source indicator. Relative Vigor Index (RVI) compares the close-to-close move against the high-low range. Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Relative Vigor Index does
Relative Vigor Index (RVI) compares the close-to-close move against the high-low range. Rises in trends because closes tend to print near the high; falls in downtrends.
- Pair with the signal line (its SMA) for crossover signals.
- Above 0 = bullish pressure, below 0 = bearish.
- Raise
Lengthfor smoother readings.
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Relative Vigor Index", overlay=false)
len = input.int(10, "Length", minval=2, maxval=100)
sigLen = input.int(4, "Signal Length", minval=1, maxval=50)
colorLine = input.color("color.blue", "Color Line")
colorMid = input.color("color.orange", "Color Mid")
colorNeutral = input.color("color.gray", "Color Neutral")
closeOpen = close - ta.change(close)
rangeAvg = ta.tr(true)
rvi = closeOpen / rangeAvg
sig = ta.sma(rvi, sigLen)
hline(0, "Zero", color=colorNeutral, linestyle=hline.style_dotted)
p_RVI = plot(rvi, "RVI", color=colorLine, linewidth=2)
p_Signal = plot(sig, "Signal", color=colorMid)
alertcondition(ta.crossover(rvi, sig), "RVI crosses signal up", "RVI crossed above signal")
alertcondition(ta.crossunder(rvi, sig), "RVI crosses signal down", "RVI crossed below signal")
No comments yet.
Sign in to comment.