Trade Forensics EA Health Check
- Yardımcı programlar
-
Xiang Jun Jiang
MQL4/MQL5 developer specialising in Expert Advisor development, indicator
modification and MT4 to MT5 conversion. I fix repainting indicators, add alerts
and arrows, debug "cannot load" and init failures, and rebuild compiled-only - Sürüm: 1.0
- Etkinleştirmeler: 5
Trade Forensics - EA Health Check
Stop guessing whether a curve is real.
Trade Forensics reads the closed positions of your account (or the ones produced inside the Strategy Tester) and turns them into a structural verdict: is this EA trading one position at a time, or is it quietly averaging into losers? Does the result survive a split into two halves? Is the drawdown actually small compared to the profit?
WHAT IT CHECKS
Martingale / grid stacking: how often lot size grows by 30% or more versus the previous trade.
Position stacking depth: maximum concurrent positions and maximum same-direction positions.
Drawdown structure: peak-to-trough of the closed-trade equity curve.
Split-half stability: profit of the first half versus the second half; opposite signs mean the result leans on one market phase.
Profit factor, win rate, lot range and sample size.
One verdict line: STRUCTURE OK or NEEDS REVIEW, with the reasons listed.
HOW TO USE
1. Attach the panel to any chart. It never opens, modifies or closes an order.
2. Choose what to audit: magic number (-1 = every EA), current symbol only or all symbols, lookback days.
3. Press RESCAN.
4. Press EXPORT CSV to keep an audit trail.
The CSV contains a summary block followed by every closed position (position id, open and close time, side, volume, profit, prices). It is written to MQL5\Files as UTF-16 with a semicolon separator and opens cleanly in Excel.
WHY IT MATTERS
A high profit factor with rising lot sizes is not a strategy, it is a recovery scheme waiting for one bad week. A curve that makes all its money in the first half and loses in the second is fitted to a single market phase. Both patterns become obvious in seconds once closed positions are aggregated by position id - and both are invisible in the terminal's own report.
AUDITING A BACKTEST
Trade Forensics is an expert, not a script, so it also runs inside the MetaTrader 5 Strategy Tester: run your EA, then attach the panel to the tester chart. It reads the simulated closed positions of that run and shows the same verdict.
TECHNICAL NOTES
Works on netting and hedging accounts; only closed positions are counted.
Position identity comes from the deal position id, so partial closes are aggregated correctly.
No DLL, no network access, no licence server, no time limits.
INPUTS
InpMagic - analyse one magic number only (-1 = all).
InpFilterSymbol - current symbol only (default true).
InpMinTrades - below this number the verdict adds sample too small.
InpDays - lookback window in days (0 = full history).
InpExportCsv - export the CSV automatically at start.
InpPrefix - CSV filename prefix (default BTF).
InpX / InpY - panel position on the chart.
