Export Summary Grouped by Symbols – script MetaTrader 5

The script exports summary of closed trades selected between two dates grouped by each currency pair. The resulting file is CSV that can be opened/imported with any spreadsheet software.

To export summary for the entire trading history, keep Start date and End date at their default values.

The CSV file is located at: Terminal > File > Open data folder > MQL5Files<Filename>

The CSV file will be auto-opened with the associated Windows program (e.g., Microsoft Excel or Ron’s CSV Editor).

Following data columns are exported for each symbol:

  • Symbol name
  • Total trades
  • Volumes
  • Profits
  • Swaps
  • Commissions
  • Net profits

The CSV file can be opened with Microsoft Excel or better with  Ron’s CSV Editor.


    📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks