Does a machine-learning filter actually help a trading EA? An out-of-sample test

Does a machine-learning filter actually help a trading EA? An out-of-sample test

29 November 2026, 07:06
Saidi Mwangi Kagotho
0
2

"AI" is on half the EAs in the Market, but few show what the AI adds. Here is a test.

The rules: trade stock indices on two documented effects (turn of the month, and RSI(2) dips in uptrends).

The filter: an ensemble of 3 LightGBM models (gradient-boosted trees) that reads 26 daily inputs (returns, RSI, distance from moving averages, volatility, calendar) and predicts the next day's return. A rule day is traded only if the predicted gain beats the spread and swap.

The key point is that the model was trained only on 2012-2023 and tested on Jan 2024 - Nov 2026, years it had never seen. MT5 Strategy Tester, 4 indices, 1% risk, $10,000:

  • With AI: +20.6%, profit factor 1.86, max drawdown 6.9%, 3 stop-loss hits
  • Without AI: +21.4%, profit factor 1.67, max drawdown 11.0%, 13 stop-loss hits

So the AI did not make more money. It made almost the same money with much less pain: lower drawdown, fewer stopped-out trades. Walk-forward research 2016-2026 showed the same: max drawdown 6.9% vs 16.5%, Sharpe 0.67 vs 0.27.

Walk-forward 2016-2026: Index Edge AI vs the same rules without AI

That is what a realistic ML filter looks like: a small edge, not a crystal ball. 2024 was a losing year even with the AI. Past results do not guarantee future results.

The model is built into the EA (ONNX), no internet, no DLL. Long only, stop loss on every trade, no grid, no martingale.

Index Edge AI panel: the AI's reading for each index

Index Edge AI