Código: Seleccionar todo
long nextChart, currChart=ChartFirst();
int i=0, limit=100;
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
while(i<limit)
{
ChartApplyTemplate(currChart,"DisableEA.tpl");
Print(i,"-",ChartSymbol(currChart)," ID =",currChart);
currChart=ChartNext(currChart); // Get the new chart ID by using the previous chart ID
if(currChart<0) break; // Have reached the end of the chart list
i++;// Do not forget to increase the counter
}
Saludos,
X-Trader