Download MetaTrader 5

Scripts: Period_converter_auto

To add comments, please log in or register
Write articles, help other developers and make money
MetaQuotes Software Corp.
Moderator
181192
MetaQuotes Software Corp. 2010.03.18 08:55 

Period_converter_auto:

automatically converts M1-data to M5/M15/M30/H1/H4/D1 in a single run

Author: schnappi

oxyris
3
oxyris 2010.04.24 17:27  
TQ for the scripts - The Great Project - Billion Mind of you - Very important to my project to check my indicator
Enotrek
168
Enotrek 2010.09.16 07:39  

Thank you Schnappi for the Script, this saves some frustrating waiting and checking.

for those who wants week and month, just add the 2 lower lines into the code.

   writeHistory(PERIOD_M5);
   writeHistory(PERIOD_M15);
   writeHistory(PERIOD_M30);
   writeHistory(PERIOD_H1);
   writeHistory(PERIOD_H4);
   writeHistory(PERIOD_D1);
   writeHistory(PERIOD_W1);     // added week
   writeHistory(PERIOD_MN1);    // added month
MQL4 Comments
16319
MQL4 Comments 2011.04.03 09:58  
im new in forex, but i like about ur script. may i know! can u explain details about ur functions, how make it or profit this script. y used offline chart, so, after that can i used any timeframe online or just M1 chart only. can u explain to me. sorry! my language not good.
jmb1
86
jmb1 2013.02.08 11:02  

Although I like the idea of automation, this script seemed to take 12 hours to process 1 year's worth of 1M data.  As the data I have is 30 year's worth, I thought leaving it to run for an estimated 15 days was a little excessive!

So I used the period_converter script which ships with MT4, and did the job manually.  Took me about 1/2 an hour to create all time frames, i.e., 1M 5M 15M 30M 60M 240M 1440M and 10080M.

To add comments, please log in or register