// acceleration.mq4
for( i=limit; i>=0; i--) { double tmp0=iMA(Symbol(),0,MaPeriod,0,1,0,i)-iMA(Symbol(),0,MaPeriod,MaShift,1,0,i); if( tmp0> porog*Point) ExtMapBuffer1[i]=tmp0; if( tmp0<-porog*Point) ExtMapBuffer2[i]=tmp0; } return(0);
Может так лучше будет