Save for mql4 as in History Center Data

 

Hi.

For I download the full data of currency, I go in Histoty Center Data where I use the Export Button for save all data in .csv file.

I can save the same data using the mql4 with the File_Write. I use a loop and save datas. But, for this process, is need many loops, 65000 for example.

How I can save for mql4 as save in History Center withou to use a loop? Is posible?

Are there to make this? Exist an option, function for save an big datas?


Thanks

 
I tested newly my code with loop and now function ok...I will use this...
 
bisewski:
I tested newly my code with loop and now function ok...I will use this...

I have a other question:

How Can I invert the loop?

If I save datas for history center, my datas are organized so:

1

2

3

If I save data for my loop, my datas are saved so:

3

2

1

My loop code:

int handle2=FileOpen("dados15.csv",FILE_CSV|FILE_WRITE, ",");
for(int d=0;d<bars_count1;d++)
FileWrite(handle2, TimeToStr(Time[d], TIME_DATE),TimeToStr(Time[d], TIME_MINUTES),Open[d],Close[d],High[d], Low[d]);
FileClose(handle2);

 

Hi

I need help on how to write MT 4 formula for MS Excel worksheet in multiple time-frames to be able to see what a currency pair has done in the last 12 hours, 24 hours, last week and month in the for of heat-map visually just like it is presented on this website http://finviz.com/forex_performance.ashx so that you know the strength and weakness of different pairs over a period of time, be able to know which one is trending, consolidating and stall.

Thanks.

Reason: