Skip to main content

PRICE PROJECTION AFL for Amibroker (AFL)

SPASHA over 11 years ago Amibroker (AFL)

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

Using daily pivot points to estimate future price levels.

Screenshots

Indicator / Formula

Copy & Paste Friendly
ph = TimeFrameGetPrice("H", inDaily, -1 ); 
pl = TimeFrameGetPrice("L", inDaily, -1 ); 
pc = TimeFrameGetPrice("C", inDaily, -1 ); 
PP = ( PH + PL + PC )/3; 
R1 = 2 * PP - PL; 
R2 = PP + PH - PL; 
R3 = R1 + PH - PL; 
S1 = 2 * PP - PH; 
S2 = 2 * PP - PH - PL; 
S3 = S1 - PH - PL; 
Plot( C, "Price", colorDefault, styleBar | styleThick ); 
Plot( PH, "PH", colorGreen, styleNoRescale ); 
Plot( PL, "PL", colorViolet, styleNoRescale ); 
Plot( PP, "PP", colorBlack, styleNoRescale ); 
Plot( R1, "R1", colorBlue, styleDashed | styleNoRescale ); 
Plot( R2, "R2", colorLightBlue, styleDashed | styleNoRescale ); 
Plot( R3, "R3", colorAqua, styleDashed | styleNoRescale ); 
Plot( S1, "S1", colorRed, styleDashed | styleNoRescale ); 
Plot( S2, "S2", colorOrange, styleDashed | styleNoRescale ); 
Plot( S3, "S3", colorDarkYellow, styleDashed | styleNoRescale );

3 comments

over 11 years ago

@SPASHA
Bro two correction in code
replace line 9 and 10 by the following lines

S2 = PP – PH + PL;
S3 = S1 – PH + PL;

u mistaken in mathematical calculations…..

2. SPASHA
over 11 years ago

PL UNDERSTAND IT IS WHAT I REQ ,BUT OFFCOUSRE YOUR THOUGHTS MAY DIFFER WITH ME, MEANWHILE THANKS

over 11 years ago

this afl is from here. direct lift :)

http://www.traders.com/Documentation/FEEDbk_docs/2014/11/TradersTips.html#item6

nothing wrong in lifting afl from public sites, but please do give them their dues/acknowledgement :)

Leave Comment

Please login here to leave a comment.