You can use 'Period_converter.mq4' script ("MQL4: Period Converter") to make nonstandard timeframes.
For example, to make M10 period you should:
1. Open M5 chart.
2. Attach the 'Period_converter.mq4' MQL4 file taken from the 'Script' list of the 'Navigator' window to the chart.
3. In the 'Common' tab, check 'Allow DLL imports' and clear 'Confirm DLL function calls'
4. In the 'Inputs' properties tab, please set 'ExtPeriodMultiplier' variable value to 2 (you'll get M5*2 = M10 data).
5. Click OK
6. Open M10 chart in offline mode ('File -> Open Offline' menu). M10 chart will be updated every 2 sec (by default) during M5 chart with the attached 'Period_converter.mq4' script is opened.
For example, to make M10 period you should:
1. Open M5 chart.
2. Attach the 'Period_converter.mq4' MQL4 file taken from the 'Script' list of the 'Navigator' window to the chart.
3. In the 'Common' tab, check 'Allow DLL imports' and clear 'Confirm DLL function calls'
4. In the 'Inputs' properties tab, please set 'ExtPeriodMultiplier' variable value to 2 (you'll get M5*2 = M10 data).
5. Click OK
6. Open M10 chart in offline mode ('File -> Open Offline' menu). M10 chart will be updated every 2 sec (by default) during M5 chart with the attached 'Period_converter.mq4' script is opened.
i'm using the period converter to get a 6hr chart but i only get 360 bars of data. Is there a way to get more past data? If so how?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
kindly explain to me if it is possible to custome the timeframe for charts for example 5 hours 6 hours 720 minutes etc.
thanks
aftab