Scripts: JForex OHLC data converter
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]);
}
}
JForex OHLC data converter:
Author: George