indicator · own pane · open source

Relative Vigor Index

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
Running…
Loading chart…

About

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 Length for smoother readings.

Source code

//@version=5
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)
closeOpen = close - ta.change(close)
rangeAvg = ta.tr(true)
rvi = closeOpen / rangeAvg
sig = ta.sma(rvi, sigLen)
hline(0, "Zero", color=color.gray, linestyle=hline.style_dotted)
p_RVI = plot(rvi, "RVI", color=color.blue, linewidth=2)
p_Signal = plot(sig, "Signal", color=color.orange)
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")

Comments

No comments yet.

Sign in to comment.