Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

Grouping account history - script for MetaTrader 4

Views:
7044
Rating:
(12)
Published:
2016.06.30 17:22
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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

Grouping by symbol



Grouping by magic



Grouping by comment

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/8100

Transfer trades from the tester report to the chart Transfer trades from the tester report to the chart

The script is designed to transfer trades from the standard report of the MetaTrader 4 tester to the chart.

Period converter Period converter

It is designed to create a non-standard symbol period based on the use of the standard period.

ROC2 VG ROC2 VG

Plotting the ROC indicators of two custom types (including Momentum) and periods in one window.

Information on the symbols Information on the symbols

The script outputs the information on symbols to a CSV file: swaps, spreads, stops, contracts.