how to switch all chart ??

 

for this, it's only switch from the left side,

but not for the right side on the current chart.

any help please ??

   for (Chart_First = ChartFirst(); Chart_First >= 0; Chart_First = ChartNext(Chart_First))
   {

   if (SymbolSelect(BaseSymbol + QuoteSymbol, true))
   {
   ChartSetSymbolPeriod(Chart_First, (BaseSymbol + QuoteSymbol), _Period);
   ChartRedraw();
   RefreshRates();
   }

   else
   {
   ChartSetSymbolPeriod(Chart_First, (QuoteSymbol+ BaseSymbol), _Period);
   ChartRedraw();
   RefreshRates();
   }

   }
 
forextime8:

for this, it's only switch from the left side,

but not for the right side on the current chart.

any help please ??

You need to exclude the current chart from your loop (add an if statement).

Please do some searches before posting.

 
Alain Verleyen:

You need to exclude the current chart from your loop (add an if statement).

Please do some searches before posting.

i had searched around on internet, and i can done it by script,

but not for indicator.

and i need it in indicator type.

 
Alain Verleyen:

You need to exclude the current chart from your loop (add an if statement).

Please do some searches before posting.

how to [ You need to exclude the current chart from your loop (add an if statement). ] ??

Reason: