Skip to main content

pivot percentage for Amibroker (AFL)

green_share about 15 years ago Amibroker (AFL)

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

calculate pivot percentage

Screenshots

Indicator / Formula

Copy & Paste Friendly
pivot01=((Ref(C,-1)-L)-(H-Ref(C,-1))/IIf((H-Ref(C,-1))==0,0.01,(H-Ref(C,-1))));

Periods = Param("Periods", 10, 2, 300, 1, 10 );
Plot( MA( pivot01, Periods ), "1", ParamColor( "Color1", colorBlue ), ParamStyle("Style") ); 

pivot02=((C-L)-(H-C)/IIf((H-C)==0,0.01,(H-C)));

Periods = Param("Periods", 10, 2, 300, 1, 10 );
Plot( MA( pivot02, Periods ),"2", ParamColor( "Color2", colorRed ), ParamStyle("Style") ); 

Cc=C-Ref(C,-1);
P = Cc;
Periods = Param("Periods", 10, 2, 300, 1, 10 );
Plot( MA( Cc, Periods ), "3", ParamColor( "Color3", colorBlack ), ParamStyle("Style") ); 

0 comments

Leave Comment

Please login here to leave a comment.