Independent market intelligence
Research over noise · Risk before return
Forex indicator guide

Relative Vigor Index (RVI): formula, signal line and EMA200

RVI compares candle bodies with their high–low ranges, then smooths the result. A main-line crossover, a move above zero and a close above EMA200 answer different questions. We separate them with exact calculations and three historical EUR/USD examples; this guide does not calculate trading returns.

In simple terms

A bullish RVI crossover means the main line has moved above its own signal line. It can happen while RVI is below zero or while the price is below EMA200. First check which condition changed, when the candle ended and whether the underlying prices are complete.

On this page
01

Identify the indicator by its full name

Here RVI means Relative Vigor Index, not Relative Volatility Index or RSI. It compares closing minus opening prices with candle ranges. The output has no price unit and is not a return, probability or standalone measure of future profitability.

02

Fix the price inputs and interval

O, H, L and C are the observed opening, high, low and close. Our EUR/USD examples use HistData Bid prices in USD per EUR, aggregated into UTC H4 buckets. Ask prices and executed trades are not observed. The quoted source timestamps use fixed EST, UTC−05, without daylight-saving adjustments.

03

Apply the four-candle weights first

Let u=C−O and d=H−L. Weight current and three previous observed candles by 1, 2, 2, 1 to obtain U and D. These are weighted sums here. Dividing both by 6 would normalize them without changing the later RVI ratio; the middle two candles carry more weight than the endpoints.

u_t = C_t − O_t; d_t = H_t − L_t
U_t = u_t + 2u_prev + 2u_prev2 + u_prev3
D_t = d_t + 2d_prev + 2d_prev2 + d_prev3

The 1–2–2–1 kernel

The 1–2–2–1 kernel1t2t−12t−21t−3
Constructed weights from the current observed candle t to t−3. Their sum is 6. The same shape is used for the body, range and signal stages; the ten-observation rolling sum is a separate step.
04

Use the ratio of ten sums

For RVI10, divide the sum of the latest ten U values by the sum of the same ten D values. This is a ratio of separately smoothed components, not an average of each candle's body-to-range ratio. The period 10 controls this rolling sum; it does not replace the four-candle kernel.

RVI10_t = SUM(U, 10) / SUM(D, 10)

05

See why averaging ratios changes the answer

In this constructed two-component example, U values are 1 and −1 and D values 1 and 9. The ratio of sums is 0/10=0, but the mean of the two ratios is 4/9, about 0.4444. These arbitrary components illustrate arithmetic, not a full RVI10 market example.

Constructed components: divide sums or average ratios?
CaseUDU/D
1111.0000
2−19−0.1111
06

Build the signal from RVI itself

Signal is the 1–2–2–1 weighted sum of the current and three previous RVI values, divided by 6. It smooths the indicator, not the price. The four RVI readings must all be available and consecutive in observed-bar order; we never skip an unavailable reading.

Signal_t = (RVI_t + 2RVI_prev + 2RVI_prev2 + RVI_prev3) / 6

07

Count the initial observations

The first U/D components need four observed candles. Ten such components first exist on candle 13; the first signal needs candle 16, and a new pair crossing can first be checked on candle 17. EMA200 is first defined on observation 200. These are availability counts under the stated initialization, not convergence guarantees.

First valid readings under the stated initialization
IndicatorObserved bars needed
U / D4
RVI1013
Signal line16
New pair crossing17
EMA200200
08

Treat bounds and zero denominators explicitly

With valid OHLC and a positive rolling denominator, this construction keeps RVI and Signal within −1 to +1. The sign describes the smoothed body balance. There is no universal overbought or oversold threshold here. A zero rolling denominator makes RVI unavailable; one flat candle alone need not do so.

09

Separate a crossing from a line ordering

A bullish pair cross requires previous RVI≤previous Signal and current RVI>current Signal. A new upward zero cross instead requires previous RVI≤0 and current RVI>0. Equality is admitted only on the previous side. Our flags require adjacent scheduled H4 anchors; comparing across a missing interval does not create a flag.

RVI_prev ≤ Signal_prev; RVI_t > Signal_t
RVI_prev ≤ 0; RVI_t > 0

10

Use EMA200 as separate price context

EMA200 begins with the mean of 200 observed closes, then uses weight 2/201. Requiring close>EMA200 is an additional price condition, not part of RVI. In the first eligible example, all three conditions align at 2024-02-20 16:00 UTC: RVI is 0.0869, Signal 0.0353, close 1.08226 and EMA200 1.08218.

EMA200_seed = mean(first 200 observed closes)
EMA200_t = EMA200_prev + 2/201 × (C_t − EMA200_prev)
bullish_pair_cross = true; RVI_t > 0; C_t > EMA200_t

Pair, positive RVI and above-EMA price align

Pair, positive RVI and above-EMA price alignEUR/USD Bid · USD per EUR1.075221.077621.080011.082401.08480EMA200RVI10 / Signal line−0.300.000.30RVI10Signal lineS2024-02-16 16:002024-02-20 12:002024-02-22 00:00

Select a candle with the chart, slider or arrow keys. The four times distinguish anchor, scheduled end and actual first/last minute. Prices use five decimals, RVI/Signal four; the minute count reveals partial coverage.

Interval anchor · UTC
2024-02-16 16:00 UTC
Scheduled interval end · UTC
2024-02-16 20:00 UTC
First observed minute · UTC
2024-02-16 16:00 UTC
Last observed minute · UTC
2024-02-16 19:59 UTC
Open
1.07710
High
1.07874
Low
1.07626
Close
1.07770
RVI10
0.2345
Signal line
0.2726
EMA200
1.08270
Observed minute records
240
First qualifying case after the fixed start, available 2024-02-20 16:00 UTC. Real Bid OHLC and EMA200 above, RVI10 and Signal below. S marks a completed signal candle. No trade is executed.
11

A bullish pair cross can fail the price condition

At 2024-01-17 20:00 UTC, RVI −0.3351 is above Signal −0.3600, but close 1.08738 is below EMA200 1.09217. The completed upward pair crossing is real; the separate above-EMA condition is false. We select the first qualifying example after the fixed start date, without selecting by later price performance.

Upward pair cross below EMA200

Upward pair cross below EMA200EUR/USD Bid · USD per EUR1.083151.086511.089871.093221.09658EMA200RVI10 / Signal line−0.400.000.40RVI10Signal lineS2024-01-15 16:002024-01-17 16:002024-01-19 04:00

Select a candle with the chart, slider or arrow keys. The four times distinguish anchor, scheduled end and actual first/last minute. Prices use five decimals, RVI/Signal four; the minute count reveals partial coverage.

Interval anchor · UTC
2024-01-15 16:00 UTC
Scheduled interval end · UTC
2024-01-15 20:00 UTC
First observed minute · UTC
2024-01-15 16:00 UTC
Last observed minute · UTC
2024-01-15 18:59 UTC
Open
1.09497
High
1.09528
Low
1.09460
Close
1.09528
RVI10
−0.1207
Signal line
−0.0810
EMA200
1.09263
Observed minute records
174
First qualifying case, available 2024-01-17 20:00 UTC. A bullish indicator cross does not satisfy the separate price condition. The selection uses no future return.
12

A bullish pair cross can remain below zero

At 2024-01-08 16:00 UTC, RVI −0.0042 crosses above Signal −0.0214 while remaining negative. Close 1.09697 is above EMA200 1.09151. Thus the pair and price conditions pass while the positive-RVI condition fails. This is not a new upward zero crossing.

Upward pair cross below zero

Upward pair cross below zeroEUR/USD Bid · USD per EUR1.086211.089981.093751.097531.10130EMA200RVI10 / Signal line−0.100.000.10RVI10Signal lineS2024-01-04 16:002024-01-08 12:002024-01-10 00:00

Select a candle with the chart, slider or arrow keys. The four times distinguish anchor, scheduled end and actual first/last minute. Prices use five decimals, RVI/Signal four; the minute count reveals partial coverage.

Interval anchor · UTC
2024-01-04 16:00 UTC
Scheduled interval end · UTC
2024-01-04 20:00 UTC
First observed minute · UTC
2024-01-04 16:00 UTC
Last observed minute · UTC
2024-01-04 19:59 UTC
Open
1.09551
High
1.09639
Low
1.09418
Close
1.09470
RVI10
0.0061
Signal line
−0.0863
EMA200
1.09116
Observed minute records
240
First qualifying case, available 2024-01-08 16:00 UTC. The close is above EMA200, but RVI remains below zero. This chart illustrates distinct conditions, not profitability.
13

Keep the observed history and its gaps

The retained history contains 2,553,973 minute records and 11,264 H4 buckets; 3,328 buckets have fewer than 240 minutes and 633 lack the final minute. Only 360 byte-identical duplicate rows were removed. Indicator state continues across observed buckets, including weekends; ten observations need not span exactly 40 hours. No absent minute or bar is fabricated.

14

Read availability separately from the anchor

A bucket anchor does not prove a quote existed then. The inspector shows its first and last actual minute plus scheduled end. Final indicator values belong to the completed interval; if the last minute is absent, its retained close is a disclosed stale-price proxy. S marks the selected signal candle, not an executed trade.

15

Check settings before comparing platforms

Match the full indicator name, price source, UTC buckets, period 10, both four-candle kernels, zero-denominator convention and EMA seed. These charts use a symmetric vertical scale fitted to each example; the mathematical bounds remain −1 and +1. Price is shown to five decimals and RVI/Signal to four; decisions use unrounded exact ratios.

16

Reproduce measurements before testing a strategy

Downloads contain the frozen specification, all observations, CSV, replay and independent checker, plus the pinned original EUR/USD evidence. Optional original-ZIP checking requires numpy. Examples use information available at their completed candle and are chosen by stated conditions, not subsequent outcomes. No entries, exits, costs, sizing or account returns are simulated; those need a separate strategy study.

python3 rvi-guide-replay.py --protocol rvi-guide-protocol.json --source-evidence eurusd-trix-evidence.json --output replay.json
python3 rvi-guide-independent-check.py --protocol rvi-guide-protocol.json --evidence replay.json --report check.json
python3 rvi-guide-independent-check.py --protocol rvi-guide-protocol.json --evidence replay.json --raw-dir raw --report raw-check.json

Frequently asked questions

Is RVI the same as RSI or Relative Volatility Index?

No. This guide uses Relative Vigor Index, based on close minus open relative to high minus low. The other names describe different indicators. Match the full name and formula before copying settings or thresholds.

Does period 10 mean a simple ten-candle average of body ratios?

No. The four-candle weighted numerator and denominator are summed separately over ten observations, then divided. The main line first needs 13 observed candles, and the signal line needs 16.

Does an upward signal-line cross imply RVI is positive?

No. A pair crossing can occur below zero. A positive main value, a new zero crossing and a pair crossing are three distinct conditions; the historical below-zero example shows the difference.

Does a zero-range candle always make RVI unavailable?

No. Only a zero sum of the smoothed ranges makes the main ratio undefined here. If other retained ranges keep that denominator positive, the reading can remain valid. Unavailable main readings are not replaced with zero.

Why may the same H4 chart differ between providers?

Compare Bid versus other price bases, timestamp conversion, H4 cutoffs, missing minutes, retained history and seeds. Our source uses fixed EST without daylight-saving shifts; the displayed H4 buckets are anchored in UTC.

Do a bullish cross and EMA200 prove a profitable system?

No. They are completed-data conditions in this guide. Profitability needs fixed entry and exit rules, execution assumptions, costs, risk sizing and a separate account evaluation. These examples have no simulated trade result.

Primary sources

Download data and reproduction files

Created by the MyProfitFactor editorial team.

Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.