Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Script | Export Summary Grouped by Trading Days

The script exports summary of closed trades selected between two dates grouped by each trading day. 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.

MetaTrader Experts, Indicators, Scripts and Libraries

The CSV file is located at: Terminal > File > Open data folder > MQL5\Files\<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 trading day:

  • Date of the trading day
  • Total trades
  • Volumes
  • Profits
  • Swaps
  • Commissions
  • Net profits

MetaTrader Experts, Indicators, Scripts and Libraries

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

25700