Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Export Trading History V1 - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Export Deals History V1 - script for MetaTrader 5

This script exports transaction history (sorted by closing time) from MT5 retail hedging accounts selected between two dates. The resulting file is a CSV and can be opened/imported using any spreadsheet software.

For version 2 script content, please visit https://www.mql5.com/en/code/25200

It only supports retail offset accounts (Forex).

To export the entire transaction history, leave the start and end dates at their default values.

Export Deals History V1 - script for MetaTrader 5

The CSV file is located in: Terminal > Files > Open data folder > MQL5\Files\<filename>

The CSV file will be opened automatically using an associated Windows program such as Microsoft Excel or Ron's CSV Editor.

Export the following data columns:

Note that the transaction history (data rows) is sorted by closing time to calculate the balance of the run, correctly.

CSV files can be opened using Ron's CSV Editor using Microsoft Excel or better.

https://www.ronsplace.eu/Products/RonsEditor


Attachment download

📎 dummy.mq5 (0.67 KB)

📎 export_history_deals.mq5 (22.87 KB)

Source: MQL5 #24608

Verification code Refresh