Download MetaTrader 5
To add comments, please log in or register
No time for trading? Subscribe to signals!
MetaQuotes Software Corp.
Moderator
178225
MetaQuotes Software Corp. 2012.03.05 10:53 

JForex OHLC data converter:

Rewrites JForex csv data without the weekend candles and the seconds.

Author: George

MQL4 Comments
16319
MQL4 Comments 2012.03.15 18:59  

Thanks for the script. A couple programming tips:
1, you don't need any arrays in this script., but you can use one small one to help clean up your code.

2, for your for loop, to 10000000 is not a very good practice, instead, try (WARNING: not compiled or tested)

 
string columns[];
string discard;
for (int i = 0; i < 6; ++i) {
    discard = FileReadString(Handle);
}
 
while (! FileIsEnding(Handle) {
    for(int i = 0; i  0) {
       FileWrite(Result, date, time, columns[1], columns[2], columns[3], columns[4] , columns[5]);
    }
}

/
To add comments, please log in or register