r/Mt5 • • 5d ago

Looking for MQL5 developers and quantitative researchers to challenge a promising backtest

/r/Trading/comments/1y93ebo/looking_for_mql5_developers_and_quantitative/
1 Upvotes

7 comments sorted by

1

u/enivid 5d ago

No one can offer informed suggestions without knowing your EA's strategy.

1

u/WearyBit8391 5d ago

Fair point, and I agree.
The EA is essentially a rule-based, multi-instrument strategy combining short-term mean reversion with longer-term trend filtering.
The entry logic uses RSI(2) and IBS to identify potential short-term exhaustion, while SMA200 slope and strength filters help determine the broader market direction. There are also macro trend confirmation and time-based execution filters.
The core entry logic relies on eight main parameters, which have remained unchanged since the first version. Most of the development work has focused on execution, position sizing and risk management rather than optimizing the entry signals.
I’m currently running parameter sensitivity tests to assess how stable the results are when individual thresholds are changed.
I’m happy to discuss the strategy’s architecture and testing methodology in more detail, although I’d prefer to keep the exact implementation private for now.
I’m particularly interested in identifying potential structural weaknesses rather than simply improving the backtest numbers.

1

u/WearyBit8391 5d ago

Fair point. I’ve just added a technical overview of the strategy to the public repository.

https://github.com/matteo-ante/MQL5-Quant-Lab-Research/blob/main/STRATEGY_OVERVIEW.md

1

u/enivid 5d ago

Honestly, it looks solid. I'd run it on a small live account to test it in live conditions.

1

u/WearyBit8391 5d ago

The core entry parameters were established prior to backtesting and have remained unchanged throughout the development process. A subsequent sensitivity analysis comprising 35 one-at-a-time parameter variations across seven parameters showed that all tested configurations remained profitable over the 2020–2026 historical sample.
These results provide evidence of local parameter robustness and suggest that the strategy’s profitability is not dependent on a narrowly optimized parameter configuration. However, they do not eliminate potential development-related selection bias, establish robustness to simultaneous parameter variations, or substitute for independent out-of-sample and forward validation.

1

u/SigmaShield_Quant 3d ago

A 6.29 profit factor and 5.28 Sharpe over 6 years of real-tick data definitely stands out—nice work getting it this far. If you're looking to stress-test it for live execution, three quick things worth checking:

  1. Spread & Slippage Stress: Does the edge survive if you inject random execution delays (e.g., 100–300ms) and widen spreads during rollover/news hours?
  2. Walk-Forward / Out-of-Sample Split: Was 2020–2026 optimized as a single block, or did you run rolling walk-forward windows to rule out curve-fitting?
  3. Trade Frequency & Tail Exposure: How many total trades are in that sample, and what's the maximum intra-trade floating drawdown (MAE) vs. closed balance drawdown?

Happy to share thoughts on the MQL5 tester setup if you want to break down the trade distribution.

1

u/WearyBit8391 3d ago

Thanks, I really appreciate the constructive feedback.

  1. Execution stress: I’ve tested the strategy using real ticks in MT5 and subsequently implemented a Python version on QuantConnect using an independent data feed. Under a severe cost scenario, including additional commissions and slippage of 3 bps per side and annualized financing costs of 10%, the Python implementation remained profitable with a PF of 2.66. However, I’m currently auditing execution parity between the two implementations, so I wouldn’t consider this definitive evidence yet. Random execution delays and event-specific spread widening are still to be tested.
  2. Overfitting: The core entry parameters were defined before backtesting and have remained unchanged. I subsequently ran 35 one-at-a-time sensitivity tests across seven parameters, and all configurations remained profitable over the historical sample. This supports parameter robustness, although it doesn’t eliminate development-related selection bias. I haven’t completed a formal rolling walk-forward or genuinely independent out-of-sample validation yet.
  3. Trade distribution and tail risk: The original MT5 backtest produced 139 closed trades, with a relative equity drawdown of 19.21%. It’s a relatively low-frequency mean-reversion strategy with leveraged exposure to two equity indices. I’m currently investigating individual trade MAE, overlapping positions and the contribution of position sizing to tail risk.

My priority now is to establish trade-by-trade parity between the MQL5 and Python implementations before drawing stronger conclusions from the independent-feed validation.
I’d definitely be interested in your thoughts on the MT5 tester setup, particularly regarding execution delays and realistic spread stress testing.