Hi All,

I would like to code the formula described is the attached picture.
I tried serveal formulas such as :

RoR=ROC(Close,1,False);

Lambda=Optimize("Lambda",0.5,0.1,1,0.05);
Length = Optimize ("MML",20,10,30,1);

for (i =0 ; i < BarCount ; i=i+1)
{
ExpMovAver = ExpMovAver + 
(Lambda*Sum(((1-Lambda)^i)*Ref(RoR,(Lastbar-i)),Length));
}

or 
ExpMovAver 
=Lambda*Sum(((1-Lambda)^Currentbar)*Ref(RoR,(Lastbar-Currentbar)),Length);

Can anyone tell me what is wrong?

In addition I was wondering whether there is a way to run a formula step by 
step and watch the behavior of different ellements?

Many thanks for your help.

Mikael


      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

<<attachment: img.jpg>>

Reply via email to