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 Expert Advisor | ChartReinit

The Expert Advisor adds a button to the bottom right corner of each chart. After press of the button it reinitializes all charts of the chart symbol.

The chart reinitialization is implemented by termporary change of the chart timeframe.

This way is simple and doesn't has side effects, because it doesn't redraw (and recalculate) the temporary chart window.

Input parameters:

//--- input parameters
input string   SampleText="Recalculate";      // Button text
input color    SampleTextColor=NavajoWhite;   // Text color
input color    SampleBackColor=SlateGray;     // Button background

MetaTrader Experts, Indicators, Scripts and Libraries

224

Best MetaTrader Indicators + Profitable Expert Advisors