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

MetaTrader Experts, Indicators, Scripts and Libraries


     The script is designed to create a non-standard symbol period based on the use of the standard period. For example, to create an H3 period of the selected symbol, it is necessary to:

  1. Open the H1 chart.
  2. Attach the 'Period_converter.mq4' script from the "Scripts" folder of the "Navigator" window to the chart.
  3. In the "General" tab flag the "Allow DLL imports" and unflag the "Confirm DLL function calls" parameter.
  4. In the "Inputs" tab of the script set the value 3 for the "ExtPeriodMultiplier" variable (to get the period H1*3 = H3).
  5. Press OK.
  6. Open the H3 chart in offline mode ("File - Open Offline"). The H3 chart will be updated every 2 seconds (by default) when the H1 chart is opened and the 'Period_converter.mq4' is attached to it.


7935

Best MetaTrader Indicators + Profitable Expert Advisors