Independent market intelligence
Research over noise · Risk before return
Forex strategy research · EUR/USD

EUR/USD H4 RVI strategy: RVI10 + EMA200 after costs

The RVI10 + EMA200 account returns −14.06% cumulatively over 2020–2025 after baseline costs, with 15.83% maximum H4-close drawdown across 754 trades. Its restarted 2023–2025 account returns −10.97%. Without the EMA200 entry filter, the full-period return is −24.93%. The filter reduces this historical loss but does not make the strategy profitable.

In simple terms

Under the strategy’s rules, we buy EUR/USD when RVI crosses above its signal line on a just-closed H4 candle and that candle closes above EMA200. We sell short after a downward cross when the close is below EMA200. We enter at the next scheduled opening. A fixed ATR14 stop, the opposite line ordering or a time limit closes the position. A cross can occur on either side of zero.

On this page
01

Test a strategy separately from the RVI guide

Our indicator guide explains the arithmetic without account returns. Here we fix explicit entry, exit, sizing and cost rules for Relative Vigor Index10 on EUR/USD H4, with one control removing only the EMA200 price filter. This is Relative Vigor Index, not Relative Volatility Index or RSI. The history was already familiar; neither the early/later split nor the independently checked calculation is an unseen prospective test. No lengths, gates or stops were selected after observing these results.

02

Retain the original Bid history and its coverage limits

We verify 7 retained annual HistData M1 ZIP archives for 2019–2025, their pinned hashes and CRC, containing 2,553,973 observed minutes after normalization. Original timestamps use fixed EST, UTC−05 without daylight saving; we add five hours and aggregate UTC H4 buckets. Only 360 byte-identical duplicate rows are collapsed; conflicting duplicates fail. There are 11,264 observed buckets, including 3,328 with fewer than 240 minutes and 633 without the final minute. Ask prices and actual executions are not observed. This checks retained bytes, not a fresh source download or provider-published checksum.

03

Weight bodies and ranges before dividing their sums

Let u=C−O and r=H−L for observed Bid candles. Form U and W from current and three previous observations with weights 1,2,2,1. RVI10 is the sum of the latest ten U values divided by the sum of the same ten W values. Dividing both kernels by six would cancel in this ratio. This is a ratio of sums, not the average of each candle’s body/range ratio. The kernel first needs four observations and the main line thirteen. Its value has no price unit and is not a return or probability.

u_t = C_t−O_t; r_t = H_t−L_t
U_t = u_t+2u_prev+2u_prev2+u_prev3; W_t = r_t+2r_prev+2r_prev2+r_prev3

The 1–2–2–1 smoothing weights

The 1–2–2–1 smoothing weights1t2t−12t−21t−3
Constructed weights for the current and previous three observations; their sum is six. The ten-observation rolling sums and the later signal kernel are separate calculation stages.
04

Smooth RVI itself and handle unavailable readings

The signal line is the 1,2,2,1 weighted sum of the current and three previous RVI values, divided by six. It first needs sixteen observed candles; a fresh pair crossing first becomes testable on candle seventeen. A zero rolling range denominator makes RVI unavailable, and the signal requires four consecutive defined readings; we never replace missing readings with zero. One flat candle alone need not invalidate a window. State continues across observed buckets and weekends, so ten observations need not span forty hours. A pair cross requires adjacent scheduled H4 anchors.

RVI_t = Σ(U,10)/Σ(W,10)
S_t = (RVI_t+2RVI_prev+2RVI_prev2+RVI_prev3)/6

05

Confirm a line cross and a separate price condition

For a long entry, previous RVI must be at or below its previous signal, current RVI strictly above its current signal, and the Bid closing price of the just-closed H4 candle above EMA200. Short entries mirror these inequalities. Equality is allowed only on the previous side of the cross; current equality or close=EMA200 fails entry. We impose no positive/negative RVI or zero-cross condition. Both variants require 200 observed candles and positive ATR14. EMA200 starts with the mean of 200 closes; ATR14 uses Wilder smoothing after its fourteen-range seed. The control removes only the price/EMA condition.

Long: RVI_prev ≤ S_prev; RVI_t > S_t; C_t > EMA200_t
Short: RVI_prev ≥ S_prev; RVI_t < S_t; C_t < EMA200_t

06

Require the next actual opening and fix the stop once

A valid completed H4 signal queues entry at the immediately next scheduled H4 opening. An actual M1 opening must exist at exactly that timestamp inside the account period and modeled trading week; a later quote does not rescue a missing entry. Long fill uses Bid open plus spread and adverse slippage; short fill uses Bid open minus slippage. Stop distance is twice signal ATR14, fixed from that fill. Long stops trigger on Bid and short stops on modeled Ask=Bid+spread. We hold one position, without pyramiding, immediate reversal, targets or trailing stops.

D = 2 × ATR14_signal
Long: SL = E − D
Short: SL = E + D

07

Exit on line ordering, stops or the earliest deadline

For a held long, we schedule an exit when RVI≤Signal on a just-closed H4 candle; for a short, when RVI≥Signal. Equality is sufficient: no new cross, EMA gate, positive ATR, adjacency or 200-bar entry gate is required. Pending exits persist until a quote is observed. At each M1 opening, a stop gap takes priority over a queued indicator exit and an overdue deadline; only then is the minute’s range inspected for a stop. The deadline is the earliest of 30 scheduled H4 slots, Friday 17:00 New York or the account end. Use an observed preceding-minute close at an exact deadline; otherwise the first later opening, except that period end uses the last in-period close. An intraminute stop identifies a minute interval, not an exact tick.

08

Apply a risk ceiling and an entry-notional cap

Each account starts with 10,000 USD. Position quantity is the smaller of the quantity allowed by a nominal 1% stop-loss budget and the quantity covered by pre-entry USD cash, including entry commission. This is a collateral and mark-to-market research account for both directions, not actual EUR delivery or a broker’s margin schedule. In 726 primary trades, the cash cap binds and planned stop risk is below 1%. The nominal loss budget includes exit slippage and both commissions but excludes unknown future holding charges and opening gaps. Net R divides realized net USD profit/loss by the planned cash risk of that entry; 1% is not a guaranteed maximum loss.

L_unit = D + slip + 2 × commission_per_EUR
q = min[0.01 × B / L_unit, B / (|E| + commission_per_EUR)]
R_net = P_net / (q × L_unit)

Formula symbols: O/H/L/C are observed Bid prices; u is the candle body and r its range; U/W are their four-candle weighted components; S is the RVI signal in formulas, while S on charts marks a signal candle. E/X: modeled fills; B: pre-entry USD cash; d: +1 long or −1 short; q: EUR quantity; D: twice signal ATR14; SL: Bid stop for longs or modeled Ask stop for shorts; carry: USD debit per EUR per financing unit; F: accrued financing units; X_liq: estimated liquidation fill; P_net: net USD P&L; L_unit: planned USD loss per EUR.

09

Recalculate spread, slippage, commissions and holding debits

Baseline assumptions are a 1.00-pip spread, 0.10 pip adverse slippage per leg, 3.50 USD commission per 100,000 EUR per leg, and 0.20 pip per financing unit. The higher scenario doubles these assumptions; the zero scenario removes them all. Financing is a research debit for both directions at 17:00 New York time on weekdays, with three units on Wednesday; it is not a reconstructed broker swap history. Full-period returns are −0.15% without costs, −14.06% at baseline and −26.54% at higher costs. Every scenario rebuilds fills, fixed stops, quantities and cash. The diagnostic cost columns must not be subtracted again from net returns.

Ask = Bid + spread_pips × 0.0001
P_net = d × q × (X − E) − 2q × commission_per_EUR − q × carry × F

The predefined cost scenarios

The predefined cost scenarios0.00%RVI10 + EMA200 · zerocosts−0.15%RVI10 + EMA200−14.06%RVI10 + EMA200 · highercosts−26.54%
Costs and full-account results
Account or scenarioNet return %Commissions · USDHolding debits · USDModeled spread · USDAdverse slippage · USD
RVI10 + EMA200 · zero costs−0.150.000.000.000.00
RVI10 + EMA200−14.06441.30130.21630.43126.09
RVI10 + EMA200 · higher costs−26.54818.75240.931,169.65233.93
Complete reruns change fills, fixed stops, quantities and cash. Commission, holding, spread and slippage columns are ledger diagnostics, not fees to subtract again from net return.
10

Read the loss and sampled risk together

The primary full-period account returns −14.06% on 754 trades: 295 wins and 459 losses, with profit factor 0.86, H4-close drawdown 15.83% and observed-bucket occupancy 35.18%. Separately restarted early and later accounts return −3.40% and −10.97%. These are cumulative period results, not annual rates. USD cash with zero assumed interest is a simple reference, not a risk-matched investment benchmark. H4-close drawdown misses intraminute extremes and is not a worst-case loss bound.

The continuous accounts after costs

The continuous accounts after costs7,1267,9698,8139,65710,501RVI10 + EMA200RVI10 without EMA200202020232026
Both accounts start with 10,000 USD. H4-close marks estimate liquidation costs and accrued holding charges; they do not show intraminute risk.
11

The EMA filter reduces the loss in this sample

Without the EMA200 entry gate, the full-period account returns −24.93% with 26.23% sampled drawdown. Its later restarted account returns −15.71%, versus −10.97% for the primary. Both use the same RVI pair crossings, 200-observation warmup, exits, account constraints and costs. The primary loses less in these paths; neither variant establishes profitability. The comparison is one fixed historical control, not a search for the most profitable EMA length, and it does not show an effect independent of this source or execution model.

Separately restarted historical accounts
Account or scenarioNet return %H4-close drawdown %TradesProfit factorObserved-bucket occupancy %
RVI10 + EMA200 · Continuous 2020–2025−14.0615.837540.8635.18
RVI10 without EMA200 · Continuous 2020–2025−24.9326.239310.8046.57
RVI10 + EMA200 · Restarted 2020–2022−3.409.503810.9436.74
RVI10 without EMA200 · Restarted 2020–2022−10.8713.104580.8446.95
RVI10 + EMA200 · Restarted 2023–2025−10.9712.513730.7733.60
RVI10 without EMA200 · Restarted 2023–2025−15.7118.434730.7546.18
USD cash · zero assumed interest0.000.00——0.00
12

Keep missing minutes visible in the account diagnostics

The model weekly calendar identifies 87,645 unobserved in-session minutes; absence does not by itself identify a feed failure, holiday or lack of updates. In the primary full-period ledger, 450 trades cross such minutes, 172 use partial signal buckets and 20 use stale signal-close proxies. Delayed indicator exits: 12; period-end last-close fallbacks: 1. Removing affected trades at their original quantities leaves ledger P&L −3,992.83 USD, but that is an after-the-event diagnostic, not a tradable avoidance filter or a rebuilt account return. No missing candle or minute is invented.

Data-quality and execution diagnostics
Account or scenarioTrades
Trades crossing unobserved in-session minutes450
Trades using a partial signal bucket172
Trades using a stale signal-close proxy20
Delayed indicator exits12
Period-end last-close fallbacks1
13

Inspect the first early and later trades

We select the first completed primary trade in each restarted period: 2020-01-03 20:00 UTC with −0.340 net R and 2023-01-04 04:00 UTC with −0.551 net R. Both are losses. The upper panel shows actual Bid candles, EMA200 and the fixed stop; the lower panel shows RVI10 and its signal on their own scale. S marks the completed signal candle, E/X Bid price references. The ledger separately includes spread and slippage; short liquidation uses modeled Ask, with the plotted stop converted to its Bid equivalent. Full-window charts show retrospective context, not a forward replay.

First completed early trade

First completed early trade1.107941.112361.116781.121201.12562USD per EUR · observed BidRVI10 / signal · own scale−0.4135240.0000000.413524RVI10Signal ·dimensionlessEMA200SLSEX2019-12-30 20:002020-01-02 12:002020-01-06 04:00

Select a candle with the chart, slider or arrow keys. Prices use five decimals; RVI/Signal six. Anchor, scheduled end and actual first/last minutes distinguish availability from coverage. Decisions use unrounded exact comparisons.

Opening · UTC
2019-12-30 20:00 UTC
Available · UTC
2019-12-31 00:00 UTC
First observed minute · UTC
2019-12-30 20:00 UTC
Last observed minute · UTC
2019-12-30 23:59 UTC
Bid open
1.12020
Bid high
1.12042
Bid low
1.11963
Bid close
1.12013
RVI10 · dimensionless
0.346426
Signal · dimensionless
0.413524
EMA200 · USD per EUR
1.10966
ATR14 · USD per EUR
0.00169
Observed M1 candles
239
Fixed stop · liquidation quote
1.11268
Trade examples · modeled fills and net R
Opening · UTCModeled entry fillModeled exit fillNet R
2020-01-03 20:00 UTC1.116841.11547−0.340
First completed early trade: 2020-01-03 20:00 UTC, −0.340 net R. Actual H4 Bid candles and EMA200 above; RVI10 and signal below. S: signal; E/X: Bid references. Fixed short stops are plotted as Bid equivalents.

First completed later trade

First completed later trade1.045811.052861.059921.066981.07404USD per EUR · observed BidRVI10 / signal · own scale−0.3366440.0000000.336644RVI10Signal ·dimensionlessEMA200SLSEX2022-12-30 04:002023-01-03 16:002023-01-06 08:00

Select a candle with the chart, slider or arrow keys. Prices use five decimals; RVI/Signal six. Anchor, scheduled end and actual first/last minutes distinguish availability from coverage. Decisions use unrounded exact comparisons.

Opening · UTC
2022-12-30 04:00 UTC
Available · UTC
2022-12-30 08:00 UTC
First observed minute · UTC
2022-12-30 04:00 UTC
Last observed minute · UTC
2022-12-30 07:59 UTC
Bid open
1.06585
Bid high
1.06593
Bid low
1.06385
Bid close
1.06509
RVI10 · dimensionless
0.072907
Signal · dimensionless
0.077075
EMA200 · USD per EUR
1.04854
ATR14 · USD per EUR
0.00261
Observed M1 candles
240
Fixed stop · liquidation quote
1.04955
Trade examples · modeled fills and net R
Opening · UTCModeled entry fillModeled exit fillNet R
2023-01-04 04:00 UTC1.056991.05298−0.551
Chronological selection: 2023-01-04 04:00 UTC, −0.551 net R. E/X show Bid references; short liquidation uses modeled Ask in the ledger. The stop is displayed as a Bid equivalent; fills include adverse slippage separately.
14

Identify the outcome-conditioned third example

The third chart is the first later trade whose nonzero net-P&L sign is opposite to the first later trade: 2023-01-12 00:00 UTC, +0.696 net R. Its positive result is deliberately selected by outcome to explain a different path; it is not typical evidence or a representative sample. All three example trades are already included in the account totals. An opening or modeled minute-close exit uses its stated timestamp; a stop within a minute provides only that interval, not an observed tick execution.

First later trade with the opposite net result

First later trade with the opposite net result1.048131.058831.069531.080231.09093USD per EUR · observed BidRVI10 / signal · own scale−0.5225770.0000000.522577RVI10Signal ·dimensionlessEMA200SLSEX2023-01-08 20:002023-01-11 12:002023-01-15 20:00

Select a candle with the chart, slider or arrow keys. Prices use five decimals; RVI/Signal six. Anchor, scheduled end and actual first/last minutes distinguish availability from coverage. Decisions use unrounded exact comparisons.

Opening · UTC
2023-01-08 20:00 UTC
Available · UTC
2023-01-09 00:00 UTC
First observed minute · UTC
2023-01-08 22:00 UTC
Last observed minute · UTC
2023-01-08 23:59 UTC
Bid open
1.06406
Bid high
1.06628
Bid low
1.06381
Bid close
1.06627
RVI10 · dimensionless
0.071763
Signal · dimensionless
−0.069426
EMA200 · USD per EUR
1.05227
ATR14 · USD per EUR
0.00391
Observed M1 candles
112
Fixed stop · liquidation quote
1.07030
Trade examples · modeled fills and net R
Opening · UTCModeled entry fillModeled exit fillNet R
2023-01-12 00:00 UTC1.076631.08118+0.696
Outcome-conditioned selection: 2023-01-12 00:00 UTC, +0.696 net R. This explains the rule and is not a representative sample. Examples already belong to account totals.
15

Restart accounts and compound the annual marks

Each account includes its start and excludes its end. Cash and positions restart; pre-period observed indicator history remains available. A completed signal at the starting boundary may enter a newly flat account, but no position or cash transfers from another run. Annual returns compare consecutive year-end liquidation-equity marks and compound rather than add. Open positions are marked using the correct modeled exit side, commission, slippage and accrued holding debits. Occupancy counts observed H4 buckets with any position overlap; it is neither exact wall-clock exposure nor continuous maximum risk.

V = B + d × q × (X_liq − E) − 2q × commission_per_EUR − q × carry × F

Year-by-year results of the continuous accounts

Year-by-year results of the continuous accounts202020212022202320242025RVI10 + EMA200RVI10 without EMA200
Year-by-year results of the continuous accounts
YearRVI10 + EMA200RVI10 without EMA200
2020−4.78−4.13
2021−1.17−6.05
2022+2.65−1.04
2023−2.55+0.25
2024−5.18−10.71
2025−3.73−5.90
Returns compare consecutive year-end liquidation-equity marks. They compound; restarted early and later accounts use different cash paths.
16

Reproduce the fixed question and preserve its limits

Downloads contain the frozen protocol and pinned source manifest, all observed candles and indicator values, eight account ledgers, and standalone replay and independent-check files. RVI and signal decisions use exact rational arithmetic; EMA200 and ATR use Decimal40, while a separate reconstruction uses Decimal50. The account framework is checked separately against original minute ZIPs. One Bid source, modeled Ask, partial coverage, assumed costs and fractional execution limit inference. Familiar historical data and verified arithmetic do not establish future returns or actual broker execution.

Run the replay and independent checker with the frozen protocol and original seven annual M1 ZIPs. The replay needs NumPy; source hashes are pinned and every scenario is rebuilt.

python3 eurusd-rvi-replay.py --protocol eurusd-rvi-protocol.json --raw-dir raw --output replay.json
python3 eurusd-rvi-independent-check.py --protocol eurusd-rvi-protocol.json --evidence eurusd-rvi-evidence.json --raw-dir raw

Frequently asked questions

Was this RVI10 + EMA200 strategy profitable?

No. The primary account returns −14.06% over 2020–2025 after baseline costs; its restarted later account returns −10.97%. Removing the EMA200 entry gate gives −24.93% for the full period. The fixed filter reduces this historical loss, but neither account is profitable.

Does an upward RVI cross require a positive reading?

No. The main line can cross above its signal below zero. The strategy tests that pair crossing and a separate close>EMA200 condition for longs; shorts mirror the conditions. There is no positive/negative RVI or zero-cross gate.

Is the signal an EMA of ten body/range ratios?

No. First apply the four-candle 1,2,2,1 kernel to bodies and ranges, sum each component over ten observations, and divide the sums. Then apply a separate four-RVI 1,2,2,1 signal kernel divided by six. It is neither an EMA signal nor a mean of individual ratios.

Are the displayed chart prices actual executions?

No. The source contains observed Bid OHLC. Ask is modeled from the scenario spread; modeled fills include adverse slippage, while commissions are accounted for separately in the ledger. S/E/X show the signal candle and Bid reference prices. A stop within a minute identifies an interval, not a known tick time or a confirmed fill.

Why retain partial buckets and source gaps?

They belong to the archived history and are disclosed. Indicators count observed buckets through weekends; entry crosses need adjacent H4 anchors and entry requires the exact next opening minute. A stale final quote remains an explicit close proxy. Excluding affected trades after the event is not an executable live filter.

Does a 1% risk setting cap every loss at 1%?

No. Quantity also has a cash-notional cap, so planned stop risk can be smaller; the nominal budget includes both commissions and exit slippage. Financing, opening gaps, missing prices and real execution can change the loss. Sampled H4-close drawdown is not continuous worst-case risk.

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.

Scope and research limitations

Both the primary and its EMA-free control lose after baseline costs. One Bid source, modeled Ask, assumed costs and fractional quantities do not establish actual fills or future returns. Source gaps and partial buckets remain material limitations; there is no unseen prospective-test claim.