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 | ChartNavigate Demo

Simple script with demonstration of use of the ChartNavigate() function.

The script uses several chart functions:

  • ChartID() - to get the handle of the chart with the script launched (the handle is used in chart operations)
  • ChartGetInteger() - to get the number of the first visible bar on the chart (indexing as timeseries is used - the last (uncompleted) bar has index 0),
  • ChartSetInteger() - to set chart shift from the right border of the chart, to disable autoscroll when new tick, to set drawing as candles and showing of tick volumes.

Each navigation demo is commented using the Comment() function.

tMetaTrader Experts, Indicators, Scripts and Libraries


296

Best MetaTrader Indicators + Profitable Expert Advisors