The script exports history of deals from MT5 retail hedging account selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software.
It supports only retail hedging accounts (Forex).
To export the entire trading history, keep Start date and End date at their default values.
The CSV can be found in the folder \MQL5\Files
Following data columns are exported:
Note that the history of deals (data rows) is ordered by Close Time to calculate the running Balance, correctly.
The CSV file can be opened with Microsoft Excel or better with Ron's CSV Editor.