Experts: Trade Journal Exporter - closed trades to CSV, one row per position, with MFE/MAE, R multiple and session

Trade Journal Exporter - closed trades to CSV, one row per position, with MFE/MAE, R multiple and session:

Exports your closed trade history to a CSV file with one row per position (not per deal), ready for Excel, Python or any journal. Each row has ticket, symbol, magic number, comment, side, volume, entry and exit time and price, duration, initial SL and TP when known, gross profit, commission, swap, net result and R multiple. It also calculates MFE and MAE (best and worst price reached while the trade was open, in points and in money) from the M1 bars between entry and exit, plus the entry session (Asia, London, New York) and weekday. Filter by magic number (lists and ranges) and symbol (wildcards), pick the period, the column separator (; or ,) and the decimal mark, and save to MQL5\Files or the common folder. Tested on hedging accounts and in the Strategy Tester (netting logic included; feedback welcome), where the file is written when the test ends. Read-only: it never opens, modifies or closes a trade. No DLLs, no web requests.

Trade Journal Exporter - closed trades to CSV, one row per position, with MFE/MAE, R multiple and session

Author: Jefry Francisco Rodriguez Campos