aesis / Publications
Forum
[newbie] where I'm wrong? :(
Hi, I want to calculate de momentum of a EMA, but the result is only a constant 0... void dT1(double ro, int n, int ExtCountedBars) { int pos=Bars-2; double MMES[]; if(ExtCountedBars>2) pos=Bars-ExtCountedBars-1; while(pos>=0) { if(pos==Bars-2) MMES[pos+1]=Close[pos+1];