Chart_Indicator_Delete

 

Need help with chart indicator delete function. https://docs.mql4.com/chart_operations/chartindicatordelete

Edit. Problem solved thanks to Alain Verleyen. Misred the documentation. 

ChartIndicatorDelete - Chart Operations - MQL4 Reference
ChartIndicatorDelete - Chart Operations - MQL4 Reference
  • docs.mql4.com
ChartIndicatorDelete - Chart Operations - MQL4 Reference
 

You are using

#property indicator_separate_window

and

ChartIndicatorDelete(0,0,"Data2CSV");

Did you read the documentation ?

 
Alain Verleyen:

You are using

#property indicator_separate_window

and

ChartIndicatorDelete(0,0,"Data2CSV");

Did you read the documentation ?

Perfect. I felt I had missed smth incredibly simple. Thank you, Alain! Got it working now! :-)
Reason: