Great indicator! Just one little thing you forgot to do was to remove the objects after removing the indicator from the chart. So people can add the following code at the end of it to remove all objects.
//---Delete Objects after removing the indicator void OnDeinit(const int reason) { ObjectsDeleteAll(0,0,-1); }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Fractal_TL:
An indicator for automatic drawing of trendlines based on fractals of a given timeframe.
Author: Almat Kaldybay