Skip to main content

Pentuple Exponential Moving Average for Amibroker (AFL)

extremist over 13 years ago Amibroker (AFL)

  • Rating:
    2 / 5 (Votes 7)
  • Tags:
    amibroker

After long search i found it’s compatible logic somewhere on net for MT4 platform.

Here is the converted code for PEMA.

u can use it in many codes…
as a Curve Fitting of random price action

Rohan Patel.
rhn_patel@rediffmial.com

Screenshots

Indicator / Formula

Copy & Paste Friendly
P = ParamField("Price field");
pr = Param("5 Period ", 15, 2, 500, 1 );

MA1=EMA(P,pr);

MA2=EMA(MA1,pr);
MA3=EMA(MA2,pr);
MA4=EMA(MA3,pr);
MA5=EMA(MA4,pr);
MA6=EMA(MA5,pr);
MA7=EMA(MA6,pr);
MA8=EMA(MA7,pr);


PEMA=8*MA1-28*MA2+56*MA3-70*MA4+56*MA5-28*MA6+8*MA7-MA8;

Plot (PEMA,"\n PEMA"+pr,ParamColor( "PEMA color", colorBrightGreen ), ParamStyle("PEMA style",styleLine | styleThick));

1 comments

Leave Comment

Please login here to leave a comment.