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 4 Scripts | Grouping account history | Source Code Included

New free code from MQL5: indicators, EAs, and scripts for traders.


Situation: One demo account, with multiple experts being tested on it.

Question: What is the profitability of each expert?

To answer this question, I wrote a script that reads the list of deals from the account history, groups them by comments (I usually write the name of the EA and the timeframe it works on) and outputs to a file. The functionality has been extended by adding grouping by operation type (buy, sell), by symbol and by magic number. The results of the script operation are displayed in the figures below.

Grouping by operation type

Image for Grouping account history

Grouping by symbol

Image for Grouping account history


Grouping by magic

Image for Grouping account history

Grouping by comment

Grid trading done right – try the robust Grid Expert Advisor for controlled risk. Details here.

Image for Grouping account history

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.

8100

Best MetaTrader Indicators + Profitable Expert Advisors