Scripts: JForex OHLC data converter

 

JForex OHLC data converter:

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

Author: George

 

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]);
    }
}

Reason: