Draw Arc Channel in Four Clicks - MetaTrader 5 Script - MQL5 #19580 - MT4/MT5 Resources




What is missing from standard MetaTrader 5 objects is this tool. To edit the formed line, click on it (on the edge or center of the line) until a dashed line appears. Then move the cursor without pressing the button.
The indicator has a simple animated button. As the mouse pointer moves closer to it, its size and transparency change.
This implementation is mainly training material and an attempt to inspire MetaTrader 5 developers to add the same functionality to the standard set of MetaTrader 5 objects. It is not implemented as a class. The following features are not yet implemented: saving and passing parameters when switching timeframes, multi-channel and smoothing functions, expansion of channels to the right of the last bar. A fully functional version can be implemented on demand.
This is a cross-platform code and can also be used in MetaTrader 4. Sorry for not adding a comment.

Arcs are drawn according to the following formula:
Where a, b, c are coefficients, n is the number of bars.
In fact, it is a 2nd degree polynomial. Three points are enough to calculate the a, b, c coefficients.
Attachment download
📎 arc.mq5 (23.49 KB)
Source: MQL5 #19580
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •