Download MetaTrader 5

Scripts: JForex OHLC data converter

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
190034
MetaQuotes Software Corp.  

JForex OHLC data converter:

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

Author: George

MQL4 Comments
16316
MQL4 Comments  

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