Use this script to generate and synchronize historical data from M1 to D1.
Steps to create data:
1. create subfolder …/experts/files/databank/
2. copy M1 data into databank and call M1_XXXXXX.hst (alpari format)
3. attach script ‘periodgen’ to the same chart XXXXXX, frame doesn’t matter
4. It will create subfolder …/experts/files/databank/XXXXXX in which you will find all timeframes up to D1 will be generated
MT4 Forex Robot Characteristics
Platform: Metatrader 4
Time frames: any.
How to install Screenshot Script in MetaTrader 4 / MT4:
Copy and paste the periodgen.mql4 into the MQL4 Scripts folder of the Metatrader 4 trading platform.
Restart your MetaTrader 4 application (assuming it’s currently open) … or Launch your MetaTrader 4 application
You can access this folder from the top menu as follows:
File > Open Data Folder > MQL4 > Script (paste here)
On the left hand side, look for the “Navigator” window and under the “Common” tab, look into the “Scripts” section
Locate the indicator which you have just downloaded into the folder stated in Step 1
Drag (Click and drag) the Script onto the chart (when you want the task to be performed)
your task should now be executed…