audit_mql5_ea_and_backtest
Audit MetaTrader 5 (MQL5) Expert Advisor source code or strategy backtest metrics for toxic martingale patterns, missing stop-loss guards, and out-of-sample overfitting probability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eaName | No | Identifier or name of the Expert Advisor strategy being audited. | User_MT5_Strategy |
| symbol | No | Primary trading symbol of the EA (e.g., "XAUUSD", "USDJPY"). | XAUUSD |
| mql5Code | No | Optional MQL5 source code snippet to scan statically for martingale multipliers, unbounded grid loops, or missing SL. | |
| totalTrades | No | Total sample size of closed trades in the backtest. Defaults to 180. | |
| profitFactor | No | Reported backtest Profit Factor (gross profit / gross loss). Defaults to 1.85. | |
| maxDrawdownPct | No | Maximum relative equity drawdown percentage observed in backtest (0-100). Defaults to 14.5. |