Scripts: Execution and Slippage Forensics audits MetaTrader 5 account history

Execution and Slippage Forensics audits MetaTrader 5 account history:

Execution & Slippage Forensics audits MetaTrader 5 account history (Orders vs Deals) to quantify real execution quality in points and currency. Key Features: - Order-to-Deal Matching: Pairs each fill to its parent order (ORDER_PRICE_OPEN vs DEAL_PRICE), skipping synthetic 0.0 prices. - Clear Sign Convention: (+) favorable price improvement, (-) adverse slippage. - 4-Category Breakdown: ALL_MEASURED, ENTRIES, SL_EXITS, and OTHER_EXITS (Mean, Median, Adverse %, Positive %, Net Slippage). - 24-Hour Profile: Identifies Broker Server hours where rollover or illiquidity worsens fills. - Hidden Execution Drag: Totals adverse slippage + commissions + fees + swaps vs Gross Winning Profit (%). - CSV Export: Saves ExecutionForensics_Deals.csv and ExecutionForensics_Hourly.csv to MQL5\Files\. Inputs: InpLookbackDays (90, 0=all), InpSymbolFilter, InpMagicFilter (-1=all), InpExportCSV, InpShowChartComment, InpTopWorstDeals.

Execution and Slippage Forensics audits MetaTrader 5 account history

Author: Margarita Florencia Del Aguila