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 Indicator | Four clicks to draw an arc-shaped channel

This implementation was done more as a training material and an attempt to inspire developers of MetaTrader 5 to add such a tool to the set of standard MetaTrader 5 objects. It is not implemented in the form of a class, saving and passing parameters when changing the timeframe, no multichannel and smoothness implemented, continuation of the channel to the right of the last bar. A quality version can be done if this idea is in demand.

MetaTrader Experts, Indicators, Scripts and Libraries

The arc is drawn according to the formula:

Price = a+b*n+c*n²

where a, b, c are the coefficients, and n is the bar number.

In fact, it is a polynomial of degree 2. Three points are sufficient to calculate the coefficients a, b, c.

19640