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

52 week high low for Amibroker (AFL)
aranan73
almost 10 years ago
Amibroker (AFL)

Rating:
4 / 5 (Votes 3)
Tags:
amibroker, exploration

Sharing this simple AFL so you can plot 52 week high low on chart.

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("52-Wk-H-L");
Hclose=HHV(H,252);
Lclose= LLV(L,252);
Sha1 = EncodeColor(colorGreen) + "52-Week-High = " + Hclose + "\n";
Sha2 = EncodeColor(colorRed) + "52-Week-Low = " + Lclose + "\n";
_N(Title = StrFormat("{{NAME}} ({{INTERVAL}}), {{DATE}} ; {{OHLCX}}, V=%1.0f\n {{VALUES}}\n\n", V) + Sha1 + Sha2);


_SECTION_END();

HI = Close > Ref(HHV(High,260),-1);
LW = Close < Ref(LLV(Low,260),-1);

//52 Week High Low
High52 = HHV(High,250);
Low52 = LLV(Low,250);
Filter = 1;

AddColumn(High52,"52 Week High");
AddColumn(Low52,"52 Week Low");

0 comments

Leave Comment

Please login here to leave a comment.

Back