ForexBestRobots.comCompare EAs →
EN

Relative Vigor Index · Momentum indicators

Relative Vigor Index in Forex: 10 Periods, Signal Crosses and Real USD/JPY Charts

Read RVI(10) on real USD/JPY H1 candles. Compare body/range smoothing, signal versus zero crosses and 5/10/20 periods in a completed-candle explorer.

Real USD/JPY H1, UTC. Blue: RVI(10) main; gold: signal. The highlighted hour ends at 2024-01-04 06:00. An upward signal cross occurs while both lines remain negative.
Real USD/JPY H1, UTC. Blue: RVI(10) main; gold: signal. The highlighted hour ends at 2024-01-04 06:00. An upward signal cross occurs while both lines remain negative.

An RVI line can cross above its signal while both remain below zero. That is a change in their relationship, not yet a positive main reading. This guide follows real USD/JPY H1 candles through the body/range calculation, two stages of smoothing and the separate information in each kind of crossing.

1. Start with the body and the range

For one completed candle, the signed body is Close−Open and the range is High−Low. The intuitive body/range ratio tells you how large the body is relative to that candle’s full span. It is a starting idea, not the complete two-line RVI calculation used here. Standard RSI instead works with changes between closing prices.

At 2024-01-04 06:00 UTC, the USD/JPY hour closes at 143.77 after opening at 143.56; High is 143.86 and Low is 143.56. Its body is +21 pips and its range is 30 pips. Nevertheless, RVI(10) is −0.010000 because it retains earlier bodies as well. Prices are JPY per USD; one pip is 0.01.

Real USD/JPY H1, UTC. Blue: RVI(10) main; gold: signal. The highlighted hour ends at 2024-01-04 06:00. An upward signal cross occurs while both lines remain negative.
Real USD/JPY H1, UTC. Blue: RVI(10) main; gold: signal. The highlighted hour ends at 2024-01-04 06:00. An upward signal cross occurs while both lines remain negative.

2. Smooth the inputs, then divide their sums

First smooth the bodies with weights 1–2–2–1 over the current and three preceding recorded candles, dividing by 6. Call this A. Apply the same weights to the ranges and call the result D. The main line M is the sum of the last N A values divided by the sum of the last N D values. Dividing both sums by N would cancel, giving the same ratio.

For that 06:00 candle, the current A is 7.166667 pips and D is 23.833333 pips. Across ten smoothed observations, ΣA=−2.5 pips and ΣD=250 pips. Thus M=−2.5/250=−0.010000. The line is dimensionless: −0.01 is not a one-pip distance or a one-percent forecast.

Each smoothed observation already uses four candles. A complete N-period main value therefore needs N+3 recorded candles, and its four-value signal needs N+6. With N=10, this reconstruction first makes the main available after 13 candles and the signal after 16. Initial unavailable values stay blank; no zero seed is inserted.

b = Close − Open ; r = High − Low

A(t) = [b(t) + 2b(t−1) + 2b(t−2) + b(t−3)] / 6

D(t) = [r(t) + 2r(t−1) + 2r(t−2) + r(t−3)] / 6

M(t) = Σ A(t−N+1 … t) / Σ D(t−N+1 … t)

S(t) = [M(t) + 2M(t−1) + 2M(t−2) + M(t−3)] / 6

3. Separate a signal cross from a zero cross

The signal S is a second 1–2–2–1 weighted average, now applied to four main-line values. An upward signal cross requires previous M≤previous S and current M>current S. An upward zero cross instead requires previous M≤0 and current M>0. Downward events use the opposite inequalities. Equality alone is not a fresh crossing.

At 06:00, M moves from −0.059711 to −0.010000 while S moves from −0.030322 to −0.039671. The main has crossed above its signal, but both are negative. The zero crossing arrives on the later hour ending 07:00, when M=0.069341. No order, fill or return is inferred from either event.

The reverse distinction appears at 2024-01-04 21:00 UTC: M=0.325301 and S=0.356839, after M=0.376391 and S=0.352403. The main crosses below its signal while staying positive. The explorer lists events from full-precision calculations, so the rounded screen values are not the trigger rules.

4. A ratio of sums differs from a mean of ratios

Taking the average of the separate A/D ratios gives every smoothed observation equal weight after normalization. Dividing ΣA by ΣD instead weights those ratios by D when D is positive. These operations need not agree, even in sign. The violet diagnostic line illustrates the first operation; it is not an alternative RVI main line.

For the hour ending 2024-01-04 01:00 UTC, ΣA=11.5 pips and ΣD=323.333333… pips. Their ratio is exactly 69/1940, displayed as 0.035567. The arithmetic mean of the ten separate A/D ratios is −0.066150. The difference comes from the order of calculation, not a changed price feed or an entry filter.

Real USD/JPY H1, UTC. Blue: ratio-of-sums main; gold: signal; violet: diagnostic mean of separate A/D ratios. At 2024-01-04 01:00, the main is positive while the diagnostic is negative.
Real USD/JPY H1, UTC. Blue: ratio-of-sums main; gold: signal; violet: diagnostic mean of separate A/D ratios. At 2024-01-04 01:00, the main is positive while the diagnostic is negative.

5. Compare 5, 10 and 20 on the same candles

At the same 06:00 candle, the main readings are RVI(5)=0.274657, RVI(10)=−0.010000 and RVI(20)=0.175583. Only the ten-period model records an upward signal cross there. A shorter period changes which smoothed observations remain in the sums; it is not simply a faster drawing of the same value.

Ten is the reference setting in this guide, not a demonstrated profit optimum. The three periods share the same input history and the same fixed four-value signal smoother. H1 means recorded hourly candles, not a promise of uninterrupted clock hours. Rebuilding H4 candles changes Open, Close, High and Low, so averaging four H1 RVI values does not produce H4 RVI.

Identical USD/JPY H1 candles, UTC. Main lines only: blue 5, gold 10, violet 20. The 06:00 readings differ even in sign; these are not three profitability estimates.
Identical USD/JPY H1 candles, UTC. Main lines only: blue 5, gold 10, violet 20. The 06:00 readings differ even in sign; these are not three profitability estimates.

6. Read the completed candle before planning execution

The displayed time is the end of the selected H1 interval. Its final Close, High and Low are known only after that interval ends. A current candle can change both its body and range, moving the main and signal before closing. In MT4, iRVI(symbol,timeframe,period,mode,shift) selects the line and bar: MODE_MAIN or MODE_SIGNAL, with shift 1 for the previous candle and shift 0 for the current one.

A trading model still needs a separate price condition, an entry deadline, executable Bid/Ask, costs, stop, target and risk limit. These provider OHLC records do not establish broker fills. Matching this explicit full-window reconstruction to a native terminal has not been verified; compare source prices, missing bars, initialization and line settings before expecting identical values.

7. Explore the calculation one completed hour at a time

Choose a period, step through the candles or jump to the historical examples. Blue is the main line and gold is its signal. The wider shaded history supports the signal; the inner shade supports the main. Read the body, range, smoothed A and D, their totals and the four main values behind the signal. Example buttons restore period 10; ordinary period changes keep the selected candle.

The data contain 31,736 minute rows and 529 observed H1 candles: 525 complete hours and four with fewer than 60 minute rows. Four gaps separate recorded hours. No synthetic bars fill those gaps. The period continues over observed candles, and the explorer reports partial hours and gaps inside the required history.

Loading historical quotes…

Candle end · UTC
—
OHLC · JPY per USD
—
RVI main
—
Signal line
—
Main minus signal
—
Previous main
—
Previous signal
—
Candle body · pips
—
Candle range · pips
—
Smoothed body A · pips
—
Smoothed range D · pips
—
Sum of A · pips
—
Sum of D · pips
—
Mean of separate A/D ratios
—
Four main values · oldest to newest
—
Signal weights · oldest to newest
—
Raw candles required · main
—
Raw candles required · signal
—
Observed minutes in this hour
—
Gap before this hour
—
Gaps within required history
—
Partial hours within required history
—
Completed-bar events

—

Historical illustration · no trades

Frequently asked questions

Is Relative Vigor Index the same as RSI?

No. This RVI uses candle bodies and ranges, followed by two smoothing stages. Standard RSI uses changes between closes. Similar momentum language does not make their readings interchangeable.

Does crossing above the signal mean RVI is positive?

No. The main can be above its signal while both remain negative. The 06:00 example shows exactly that; its later zero crossing is a separate event.

Why does a ten-period main need thirteen candles?

Each of the ten smoothed body/range observations already spans four candles. Their overlapping history covers thirteen candles. The signal then needs four available main values, extending the required history to sixteen candles.

Does one zero-range candle make RVI unavailable?

Not necessarily. A single flat candle can sit inside a window with positive total smoothed range. This reconstruction leaves the main unavailable only when its required history is missing or its denominator is zero; the signal also needs four available main values.

Which RVI period is most profitable?

This guide does not test profitability. It compares 5, 10 and 20 on identical prices without simulating entries, exits or returns.

Can I treat the signal line as an executable price?

No. Main and signal are dimensionless oscillator values. A stop, target or order needs a separately defined market price and execution rules.

Data, calculation method and scope

The source is Forexite’s January 2024 Trade/MetaStock minute OHLC archive. Source labels are GMT+1 and are shifted back one hour for UTC. Treating a minute label as an interval end, with H1 groups (start,end], is a declared reconstruction assumption. The displayed history starts at 2024-01-01 22:00 UTC and its final hour ends at 2024-01-31 23:00 UTC.

The download preserves all 31 original daily archives with SHA256 hashes, extracted USD/JPY records, rebuilt H1 candles, the three main/signal series and the calculation method. A second calculation collapses the input smoothing into a direct N+3-candle kernel and checks exact signal fractions against the displayed data. Examples illustrate mechanisms, not signal success rates or investment returns. They are historical reconstructions, not live forward tests.

Primary references