Ilia Fathi
All work

06Personal project2026Ongoing

Forex research

A research system that tested 32 trading strategies on up to 16 years of data, and concluded, honestly, that none of them work.

Role
Research questions, the project’s rules, reviewing every result
Built
Sep 6, 2026 →
Type
Personal project
Status
Ongoing
Stack
  • Python
  • MetaTrader 5
  • pytest
  • SQLite
  • Statistics
Data → 32 strategies; 32 strategies → Tests; Tests – 0 survivedDataEURUSD · 16.1 y32 strategiesTestspermutation · OOS0 survived

The question was simple: can a small account trade EURUSD profitably? So far the answer is no. It was reached on historical data and a demo account, without spending money to find out. The project is still running.

Built with AI coding agents, under my direction. How I work

In numbers

  • 32strategies tested
  • 0survived
  • 16.1years of hourly data
  • 547unit tests

Rules before code

Before any code, the project got a charter: survive first, profit second. Not trading is a position. If a backtest looks too good, assume the test is broken before believing it. Every later decision was checked against those lines.

What was tested

Momentum, Donchian and moving-average trend, market structure, RSI extremes, Bollinger reversion and breakout, support and resistance in both directions, session and opening-range breakouts, NR7, inside bars, round numbers, pin bars, engulfing patterns, liquidity sweeps and calendar effects, all on the broker’s own hourly data, with spreads measured on a live demo account.

−3−2−10+1+2+3bollinger_revert — t = +2.27bollinger_revertma_distance_z2 — t = +2.27ma_distance_z2price_vs_ma200 — t = +0.72price_vs_ma200inside_bar_break — t = +0.22inside_bar_breakrsi_extreme_exit — t = +0.21rsi_extreme_exitmonday_reversal — t = +0.21monday_reversalrsi_extreme — t = +0.08rsi_extremesession_break — t = +0.08session_breakstructure_hh_hl — t = −0.12structure_hh_hlma_cross_20_50 — t = −0.17ma_cross_20_50momentum_90 — t = −0.20momentum_90sr_bounce — t = −0.65sr_bouncedonchian_20 — t = −0.79donchian_20trend_pullback — t = −0.94trend_pullbacknr7_break — t = −1.00nr7_breakround_break — t = −1.35round_breakdonchian_50 — t = −1.41donchian_50pin_bar_at_level — t = −1.42pin_bar_at_levelsr_break — t = −1.54sr_breakbollinger_break — t = −1.93bollinger_breaksweep_reversal — t = −2.03sweep_reversalengulfing — t = −2.53engulfingopening_range_break — t = −2.78opening_range_break← the same rule, twice|t| > 3.37
The 23 classic strategies by t-statistic. After correcting for 23 simultaneous tests, an edge had to clear |t| = 3.37. None came close. The two identical results at +2.27 turned out to be the same rule written twice.
Show the numbers
Strategyt
bollinger_revert+2.27
ma_distance_z2+2.27
price_vs_ma200+0.72
inside_bar_break+0.22
rsi_extreme_exit+0.21
monday_reversal+0.21
rsi_extreme+0.08
session_break+0.08
structure_hh_hl−0.12
ma_cross_20_50−0.17
momentum_90−0.20
sr_bounce−0.65
donchian_20−0.79
trend_pullback−0.94
nr7_break−1.00
round_break−1.35
donchian_50−1.41
pin_bar_at_level−1.42
sr_break−1.54
bollinger_break−1.93
sweep_reversal−2.03
engulfing−2.53
opening_range_break−2.78

The result that reversed

The best candidate passed everything available in-sample: a permutation test at p = 0.010, both halves of the data, and a clean relationship with a strategy-free regime measure. On two currency pairs it had never seen, it lost: worse than 93.5% of random entries. About 115 comparisons stood behind that p = 0.010, so a one-in-a-hundred result was expected by chance alone.

What it did find

Volatility is strongly predictable: r = 0.67 against the next 24 hours. Direction is not: the best directional correlation anywhere was about 0.03. The bot that runs now reports the state of the market and, by design, cannot produce a trade signal.