Job finished
Specification
I need an MT4 EA that will continuously maintain a CSV file which contains all of the information found in the "Trade" tab of MT4.
The CSV file will be updated (rewritten) every 5 seconds by default. This number of seconds will be adjustable in a parameter.
This is not like a growing log file with history, but like a current snapshot of the "Trade" tab.
Please see attached file trade-tab.jpg for an example of a current "Trade" tab which will be discussed below!Here is how the CSV file should look like at the moment when the attached screenshot was taken:
Order,Time,Type,Pending,Size,Symbol,OpenPrice,S/L,T/P,CurrentPrice,Commission,Swap,Profit,Comment
150380801,2012.02.07 07:40,buy,OPEN,0.01,eurusd,1.31107,0,0,1.31057,0,0,-50,
150380868,2012.02.07 07:57,buy limit,PENDING,0.01,usdchf,0.91947,0.91881,0.92086,0.92041,,,,
Balance=9912.35,Equity=9911.97,Margin=10,Free margin=9901.97,Margin level=99119.7,Profit=-0.38
*DONE at 2012.02.07 08:01:13*
Order,Time,Type,Pending,Size,Symbol,OpenPrice,S/L,T/P,CurrentPrice,Commission,Swap,Profit,Comment
Balance=9912.46,Equity=9912.46,Margin=,Free margin=9912.46,Margin level=,Profit=
*DONE at 2012.02.07 08:02:14*
Order,Time,Type,Pending,Size,Symbol,OpenPrice,S/L,T/P,CurrentPrice,Commission,Swap,Profit,Comment
Balance=,Equity=,Margin=,Free margin=,Margin level=,Profit=
*DONE at 2012.02.07 06:01:02*
The EA needs to remove any commas from the source data (eg from order comments) and replace them with spaces so that they won't interfere with the CSV delimiter, which is a comma. Don't use quotes in the CSV file.
Your help is much appreciated!
D.