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 Script | Grouping account history


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

MetaTrader Experts, Indicators, Scripts and Libraries

Grouping by symbol

MetaTrader Experts, Indicators, Scripts and Libraries


Grouping by magic

MetaTrader Experts, Indicators, Scripts and Libraries

Grouping by comment

MetaTrader Experts, Indicators, Scripts and Libraries

8100

Best MetaTrader Indicators + Profitable Expert Advisors