The script exports history of closed positions 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 MQL5Files
Following data columns are exported:
The closed positions are reconstructed in the same representation as in the History tab of the MetaTrader 5 terminal.