//+------------------------------------------------------------------+ //| Deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { DelObjects(); } void DelObjects() { ObjectsDeleteAll(0,Label_prefix,-1,-1); //Label_prefix - the prefix of your objects ChartRedraw(0); }
Taras Slobodyanik:
thanks!!!!!

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
I code indicator which plotes trendlines...
However, after switching to different timeframe chart, the previously ploted objects are still there, on new Timeframe chart...
How to delete those previous Timeframe's chart's objects automatically?