Learning to catch High Probability Breakouts

Status
Not open for further replies.
Vijaybhai

Posting the 52 Week High Low AFL


Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();
_SECTION_BEGIN("52-Wk-H-L");
Hclose=HHV(H,260);
Lclose= LLV(L,260);
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);
Plot(Hclose,"52 Week High",colorBlue,styledots);
Plot(Lclose,"52 Week Low",colorRed,styledots);
//52 Week High Low
High52 = HHV(High,260);
Low52 = LLV(Low,260);
Filter = 1;
 
AddColumn(High52,"52 Week High");
AddColumn(Low52,"52 Week Low");
Do I need to have data feed or database to apply this AFL?

A good read for catching huge winners

http://stockbee.blogspot.in/2007/02/how-to-find-stock-which-makes-1500-move.html
 
Last edited:

amitrandive

Well-Known Member

XRAY27

Well-Known Member
@ Amit

This is 52 week High and low scanner ..

Amibroker code :

_SECTION_BEGIN("52week H and L");

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

Filter = HI OR LW;

AddColumn( High > Ref(HHV(High,260),-1), "52 Week High", 1 );
AddColumn( Low < Ref(LLV(Low,260),-1), "52 Week Low", 1 );
AddColumn( C, "Close", 1.2 );
_SECTION_END();
 

XRAY27

Well-Known Member
thanks xray sir, today i will update my amibroker... and i will test this..
Hey,no need for this "sir" title .. just fellow trader..it is working scanner..please tell me in case of any problem !!! :)
 
Status
Not open for further replies.

Similar threads