Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Script | Period Converter All Timeframes

MetaTrader Experts, Indicators, Scripts and Libraries

When we do back-test, we usually download M1 data from a third party, and then convert M1 data to other timeframes.

This script helps to convert history data from M1 to M5, M15, M30, H1, H4, D1, W1 and MN.

This script must be run on M1 chart.

You may choose whether to convert to D1, W1, MN or not. By default it is false.

  • ConverterD1=false;
  • ConverterW1=false;
  • ConverterMN=false;

Please note that you should disconnect from broker server before backtesting, otherwise the data will be overridden by server data.

To avoid override, the practical method is to delete the password in MetaTrader 4 settings (menu "Tools" → "Options" → "Server").

19839

Best MetaTrader Indicators + Profitable Expert Advisors