Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

PRICE PROJECTION AFL for Amibroker (AFL)
SPASHA
about 10 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

1. extremist

@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

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

3. nareshpriya

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.

Back