Relative Vigor Index Calculator
Calculate the published weighted Relative Vigor Index main line and four-value signal line from entered completed OHLC bars.
Enter a period and ordered OHLC bars
Use completed bars from one symbol, timeframe and broker feed.
One completed bar per line. Open and close must be inside the high-low range.
Current entered-series Relative Vigor Index
Entered Momentum and Vigor Oscillators 1.0.0.
| Label | Open | High | Low | Close | Weighted up | Weighted down | Rolling up | Rolling down | RVI main | RVI signal |
|---|
How Relative Vigor Index is calculated
Weighted down[i] = (H−L)[i] + 2(H−L)[i−1] + 2(H−L)[i−2] + (H−L)[i−3]
RVI[i] = Sum(Weighted up, N) ÷ Sum(Weighted down, N)
Signal[i] = [RVI[i] + 2RVI[i−1] + 2RVI[i−2] + RVI[i−3]] ÷ 6
Version 1.0.0 follows the standard MetaQuotes source weights 1, 2, 2 and 1. The main line begins at zero-based index N plus 2, and its signal begins three bars later at N plus 5.
The published source guard requires N plus 9 bars before calculation. If a rolling weighted-range sum is zero, the source returns the rolling numerator instead of dividing; this page preserves and discloses that convention.
Assumptions and limits
- At least period plus nine ordered OHLC bars are required; supported periods are 2 through 100.
- Rows must be oldest to newest and use one symbol, timeframe and feed.
- Open and close must be inside each entered high-low range.
- The zero weighted-range fallback returns the rolling numerator, following the published source.
- Main and signal values are displayed neutrally without crossover, direction, divergence or trade labels.
Worked example from the audited fixture
How to interpret the result
The main value is a ratio of rolling weighted close-open movement to rolling weighted range. The signal is a separate 1/2/2/1 average of reportable main values. Their difference is not classified as direction, divergence or a trade.
Frequently asked questions
- Enter a period from 2 through 100 and at least period plus nine ordered OHLC bars from one symbol, timeframe and feed.
- Current, prior, second-prior and third-prior close-minus-open values use weights 1, 2, 2 and 1.
- Current, prior, second-prior and third-prior high-minus-low ranges use the same weights 1, 2, 2 and 1.
- The rolling sum of N weighted close-open values is divided by the rolling sum of N weighted high-low values.
- The current and three prior main values use weights 1, 2, 2 and 1, then the total is divided by six.
- Version 1.0.0 returns the rolling numerator, matching the published standard source convention.
- Not necessarily. Feed history, entered starting point, symbol, timeframe and implementation history can affect the buffer.
- No. The page does not classify sign, crossovers, divergence, direction, entries or exits.
Sources and methodology
- MetaQuotes article — Standard Indicator Classes — Reproduces the standard RVI source, weights, rolling sums, signal line and source guard.
- MetaTrader 5 Help — Relative Vigor Index — Official concept, main-line equation and signal-line weights.
- MQL5 Reference — iRVI — Official period interface and main/signal buffer contract.
Continue entered indicator analysis
Compare the chart feed and trading terms
Use one broker feed, symbol and timeframe for every entered observation, and compare the source history with your terminal before relying on a platform match.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

