Studies IFVG series

Not this time

Ryan's iFVG model (5m entry, 1H context) on Gold

Ryan's (DodgysDD) iFVG model, written as fixed rules and tested on XAUUSD from October 2021. Out of sample it took 135 trades and averaged +0.159R per trade, +21.5R in total, before trading costs; with average costs, an estimated +0.110R. 5 of 5 test windows made money before costs. Verdict: not this time. One of 180 tests.

One of 180 tests in a study series. See all 180 side by side
Instrument
XAUUSD
Timeframe
M5
Period
Oct 2021 – Oct 2026
Status
Complete
Published
4 Nov 2026
Engine run
run_9d74159864
Out-of-sample result

Result

Before trading costs Out-of-sample
Engine verdictBefore trading costs Out-of-sample
Not this time

Rejected: p = 0.073 against block-bootstrapped price series

What the verdict means
Expectancy+0.159Raverage result per trade, in units of risk
Total+21.5Rsum of every out-of-sample trade
Trades135out-of-sample trades taken
Win rate47.4%share of trades that made money
Profit factor1.32gross profit divided by gross loss
Max drawdown−7.2Rworst fall from a peak

Out-of-sample equity

Before trading costs Out-of-sample
0R
+10R
+20R
+30R
−5R
May 2023202420252026Oct 2026
Cumulative R, out-of-sampleDrawdown from peakworst −7.2R

The walk-forward test windows stitched end to end, in R (one R is the amount risked on a trade). No trade on this curve was used to choose the parameters that took it.

Method

5m entry, 1H context. Price sweeps an obvious level (the previous day's high or low, a context swing, the Asia or London range, or a recent swing on the entry chart). A single fair value gap formed in the leg into the sweep is then closed through by a candle body: the inversion. Entry at the next bar's open, away from the sweep; stop at the swept extreme; target the nearest untaken level on the other side, taken only if it is at least 1R away. On 5m and 15m, signals 09:30-11:00 New York and flat at 16:00. Every rule was written down before the test and nothing was optimised.

Data: XAUUSD (gold), 1 October 2021 to 26 October 2026. A signal fills at the next bar's open; a bar that reaches both stop and target counts as stopped.

The test is a rolling walk-forward with five folds; only trades in the test windows count. Results are in R, the amount risked per trade. The verdict is before trading costs; a second reading charges average spread, slippage and commission and is labelled as an estimate.

This is one of 180 tests. With that many, several can look good by chance alone.

The iFVG model is taught by the trader and educator Ryan (DodgysDD) on YouTube and X. The rules here are IDFX's mechanical reading of what Ryan teaches publicly, written down before the test. Ryan reads the draw on liquidity by eye, mostly on 1 to 3-minute charts, and has not seen or endorsed this test.

Verdict: not this time (engine grade: reject). Out of sample, this reading of the iFVG model averaged +0.159R per trade over 135 trades on XAUUSD, +21.5R in total, before trading costs, and 5 of 5 test windows made money. Estimate with average costs: +0.110R per trade, +14.8R. This is one of 180 tests.

Runs run_9d74159864 (before costs) and run_8cb649633e (with costs), IDFX engine, November 2026. The sample-trade review was deferred; the trades were checked candle by candle instead.

The idea

Price runs an obvious high or low where stops sit. On the way into it, it leaves a fair value gap. When a candle body closes back through that gap, the gap is inverted and the sweep looks like a trap: trade away from it, stop beyond the swept extreme, target the liquidity on the other side.

The iFVG model is taught by the trader and educator Ryan (DodgysDD) on YouTube and X. The rules here are IDFX's mechanical reading of what Ryan teaches publicly, written down before the test. Ryan reads the draw on liquidity by eye, mostly on 1 to 3-minute charts, and has not seen or endorsed this test.

Data and test

  • XAUUSD (gold), M5 bars, 1 October 2021 to 26 October 2026.
  • Rolling walk-forward, five folds; only the test windows count. Every rule was fixed.
Fold Test window Trades Average per trade
1 2023-05-16 to 2024-01-23 29 +0.042R
2 2024-01-23 to 2024-09-30 28 +0.117R
3 2024-09-30 to 2025-06-10 29 +0.157R
4 2025-06-10 to 2026-02-17 22 +0.546R
5 2026-02-17 to 2026-10-26 27 +0.016R

Results (out of sample)

Before trading costs Estimate with average costs
Trades 135 135
Win rate 47.4% 47.4%
Average result per trade +0.159R +0.110R
Profit factor 1.32 1.21
Total +21.5R +14.8R
Worst peak-to-trough fall 7.2R 10.0R
Test windows that made money 5 of 5 3 of 5

The verdict, before trading costs

Not this time. Rejected: p = 0.073 against block-bootstrapped price series.

  • Sample size: passed. 135 out-of-sample trades
  • Positive expectancy: passed. expectancy of +0.159R per trade before trading costs
  • Walk-forward efficiency: not applicable. not applicable: every parameter is fixed, so nothing was fitted on the training windows and there is no fit to decay; the fixed rules are judged by their out-of-sample expectancy and fold consistency
  • Fold consistency: passed. 100% of walk-forward folds were profitable
  • Sharpe significance: passed. 94% probability the true Sharpe is above zero (one fixed rule set was tested, so there is no search to deflate for)
  • Beats shuffled price: failed. p = 0.073 against block-bootstrapped price series
  • Robust to resampled trades: passed. 93% of trade sequences resampled with replacement end profitable
  • Survivable drawdown: passed. 0.0% chance of halving the account at the configured risk
  • Drawdown: passed. maximum drawdown of 7.7%

Reshuffled price series scored as well or better in 2 of 40 tries (p = 0.07).

180 tests. This is one of 180 run together, so no single one should be read on its own.

Limitations

  • The verdict is before trading costs. The with-costs figure is an estimate from average costs, not one broker's fills.
  • One of 180 tests; a single good-looking result among them can be luck.
  • The out-of-sample result covers about 3.4 years, not the whole five.
  • 5-minute and slower charts; Ryan mostly enters on 1 to 3-minute charts.
  • A mechanical reading. Ryan reads the draw on liquidity by eye; Ryan's own trading can differ.
  • A backtest, not live or funded-account trading.

The data

Everything on this page comes from one file, published as it was written. Fetch it, check it, or hand it to your own tools.

/studies/ifvg-5m-1h-gold.json