Download MetaTrader 5

Scripts: JForex OHLC data converter

To add comments, please log in or register
Trade with MetaTarder 5. Download it right now!
MetaQuotes Software Corp.
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
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