Download MetaTrader 5
To add comments, please log in or register
Make screenshots in MetaTrader and manage them in the gallery!
Henrique Vilela
1194
Henrique Vilela 2015.05.20 14:42 

Hi,

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

Thanks. 

Henrique Vilela
1194
Henrique Vilela 2015.05.20 15:11  

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));
           }
        }
bekdemir06
7
bekdemir06 2015.05.20 15:26  
Henrique Vilela:

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

how can we youse this..

Henrique Vilela
1194
Henrique Vilela 2015.05.22 20:04  
bekdemir06:

how can we youse this..

I'm using it to clean up the chart when my EA is started.
Diane Minshew
340
Diane Minshew 2015.05.23 09:18  
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.

Rael Schweitzer
10
Rael Schweitzer 2015.09.25 11:31  
Obrigado Henrique!
/
To add comments, please log in or register