EMA counter problem
int start() { int i,emaCount; ArrayResize(EMA,Bars); for(i=Bars-1;i>=0;i--) { emaCalc(i,emaCount); if(i==0)Alert("EMA: ",emaCount); } return(0); }
Thank you Keith for your help, anyway I still get 0 as Alert. (Ema: 0).
Unfortunately whenever I start the program, it automatically exits without doing anything.
Any suggestions?
Thank you!