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 Random Charts

MetaTrader Experts, Indicators, Scripts and Libraries

- This script opens randomly selected charts and applies user-defined template.

[INPUTS]

  • Timeframe: chart timeframe.
  • Template: chart template.
  • Spread Filter: only open symbols having spread below this.
  • Chart Count: maximum chart count to be opened.

[LIMITATIONS]

  • only tradeable forex instruments will get selected.
  • only symbols having spread below specified will be selected. lack of such symbol results in infinite loop.
  • after symbol selected program waits until rates are updated.
  • if there aren't enough symbol that meets the requirements, number of charts opened may be below user specified.
30185