Skip to main content

Elder Autoevelope for Amibroker (AFL)

rus1615 over 10 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 3)
  • Tags:
    amibroker, bands

Elder autoevelope with deviation control. refer to dr. elder books.

Indicator / Formula

Copy & Paste Friendly
pds = Param("EMA periods", 21, 1, 112);


deviation=Param("deviation",32,2,350);      
 AvgX=EMA(C,pds);
  shift= EMA(C,pds)* (deviation)/1400;

  UpperBand=AvgX+shift;
  LowerBand=AvgX-shift;
 

 
 
  Plot(UpperBand ,"UpperBand",colorRed,styleLine ); //| styleThick
  Plot(Avgx , "MidleBand", colorYellow, styleLine ); //| styleThick 
  Plot(LowerBand, "LowerBand", colorGreen, styleLine ); //| styleThick 

3 comments

1. rus1615
over 10 years ago

need to change the deviation value… if it does not enclose… its very good ocillator..
deviation=Param(“deviation”,32,2,350);

about 10 years ago

Hi Sir,

Can any body can code an indicator that will give signal when outside bar but only above or below 21EMA.

Thanks

about 10 years ago
Out=H>Ref(H,-1) AND L<Ref(L,-1) ;

Buy=Out AND Close>EMA(C,21) ;
Sell=Out AND Close<EMA(C,21) ;

Leave Comment

Please login here to leave a comment.