how to switch all chart ??

To add comments, please log in or register
forextime8
372
forextime8  

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();
   }

   }
Alain Verleyen
36045
Alain Verleyen  
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.

forextime8
372
forextime8  
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.

forextime8
372
forextime8  
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). ] ??

To add comments, please log in or register