Skip to main content

Jurik Moving Average for Amibroker (AFL)

olegon11 about 13 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    amibroker, moving average

Speed variant of Ma.

Screenshots

Indicator / Formula

Copy & Paste Friendly
function JMA( array, per )
{  s1=0;
   for( i = 0; i <  per; i++ ) 
            s1 += (per-2*i-1)/2 * Ref(array,-i); 
   return MA(array,per) + (per/2+1)*S1 / ((per+1)*per);
}
k=Param("Period",15,1,100,1);
J=JMA(C,k);

3 comments

about 13 years ago

Add following line at end and this indicator plots a Line, But it is very different from the picture posted.
Plot( JMA, “JMA”, colorBlue, styleLine );

3. ford7k
about 13 years ago

HI
IT IS TRUE THE ORIGINAL JMA IS MUCH DIFFERENT FROM THE CODE GIVEN ABOVE.
CHECK THIS PICTURE.

]

http://i45.tinypic.com/35mp8g5.png
DONT BE MISGUIDED
FORD

Leave Comment

Please login here to leave a comment.