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 5 Script | Open/Close Charts

MetaTrader Experts, Indicators, Scripts and Libraries

First script selects symbols having spread below specified value on the marketwatch, then opens corresponding charts by appyling timeframe and template stated.

Second script closes all charts and deletes symbols on the marketwatch except one.

To Open Charts;

  • Double-click or drag-drop OpenCharts on a chart.
  • Enter inputs. (Timeframe, Template, Spread)
  • Click Ok.

To Close Charts;

  • Double-click or drag-drop CloseCharts on a chart.
27019