Skip to main content

BPDL - Stephen Zodkov’s for Amibroker (AFL)

extremist about 13 years ago Amibroker (AFL)

  • Rating:
    2 / 5 (Votes 4)
  • Tags:
    oscillator, amibroker

Originaly posted by : chsmcp for metastock

Code converted and lill tweaked to .AFL :

Rohan Patel
rhn_patel@rediffmail.com

Screenshots

Indicator / Formula

Copy & Paste Friendly
pr=Param("period",21,0,500,1);
x=Cum((IIf((MA((C-Ref(C,-1)),pr))>0,1,-1)* (MA((C-Ref(C,-1))^2,pr)+1)^.5)+(((C-Ref(C,-1))^2)+1)^.5*IIf((C>Ref(C,-1)),1,-1));
bpdl=(x-Ref(x,-pr))/(HHV(x,pr)-LLV(x,pr));

Plot(bpdl,"BPDL   " +pr,ParamColor( "BPDL color", colorBrightGreen ),ParamStyle("BPDL style",styleLine,maskAll ));

Clp=Param("Clip",0.675,0,1.5,0.001);
col=ParamColor( "Clip Color", colorGold );
Plot( 0+Clp, "",  col,styleDashed );
Plot( 0 ,"",  col,styleDashed );
Plot( 0-Clp, "",  col,styleDashed );

0 comments

Leave Comment

Please login here to leave a comment.