Monitoring MT4 EA
An MT4 EA that monitor the account parameters and keep the results in a log file.
External EA parameter:
a. Pairs to monitor = eurusd,usdnzd etc.
b. Time intervals = HH,hh // ‘HH’ hours intervals, count start at ‘hh’ GMT
c. Which parameters (columns) to keep in the log files.
General parameters to monitor:
Account balance
Open positions total Profit/Loss
Parameters per pairs to monitor:
Spread
Commission
Save in a log, excel or cvs, at the end of each HH interval the following (one line per interval):
1st Column: Date & time saved
2nd column: The HH Interval value (i.e 6 for 6 Hours etc.)
3rd column: The account balance at the end of the time Interval
4th column: The interval maximum open positions’ DD value
5th: The Interval total P/L
6th: % of the interval total P/L vs. the balance at the end of the time Interval
7th: % of DD vs. the Balance at the end of the time Interval
8th to N, a column per pair: The average spread & average commission per lot
Add a blank line the end of each week.
Save daily at midnight (GMT Time) in a separate log file:
1st column: The date
2nd column: The account balance at midnight
3: The daily profit/loss
4: The daily open positions’ max DD value
5: % of the daily total P/L vs. the balance
6: % of daily Max. DD vs. the balance
7 to ‘N’ (a column per pair):
The daily average spread, average commission per lot, number of ticks.
The results might be saving (per pair) on same column: 4.21 ; 2.5 ; 8500
The end of each week, to keep the week results (same as in the daily list) in a separate line.
Add a blank line the end of each week.
The operator will be able to select which parameters (columns) to keep in the log file.
The excel columns be arrange as the following
Date, Time / Interval / Balance / Max DD / Profit-Loss / % PL / % DD / eurusd / gbpusd / etc.
Feb.14, 2012, 06PM / 6 / 122,000 / 8,500 / 2,200 / 6.6% / 2.2% / 1.21 pips ; 1.10 $ ; 8,500 / etc.
Thank you, Roni