Remove All Indicators

 

Hi,

There's a way to iterate over all indicators to remove them all?

Thanks. 

 

I've reached this solution, if anyone is interested.

      int subwindows=ChartGetInteger(0,CHART_WINDOWS_TOTAL);

      for(int i=subwindows;i>=0;i--)
        {
         int indicators=ChartIndicatorsTotal(0,i);

         for(int j=indicators-1; j>=0; j--)
           {
            ChartIndicatorDelete(0,i,ChartIndicatorName(0,i,j));
           }
        }
 
Henrique Vilela:

I've reached this solution, if anyone is interested.

how can we youse this..

 
bekdemir06:

how can we youse this..

I'm using it to clean up the chart when my EA is started.
 
Henrique Vilela:
I'm using it to clean up the chart when my EA is started.

Thank you its perfect for my needs i was just about start working on the same tool.

 
Obrigado Henrique!
 

Thank you.

Works perfectly to remove indicators OnDeinit

 
Henrique Vilela:

I've reached this solution, if anyone is interested.

Thank you, works just fine!

 
Henrique Vilela #:

I've reached this solution, if anyone is interested.

Thank you Henrique!

Reason: