Skip to main content

[Indicator + Scanner] Donchian Indicator Including Scanner - IDX for Amibroker (AFL)

aLdyputRa about 5 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    Donchian, scanner, indicator, amibroker

Thanks to someone who wrote this afl code. Currently, I have changed the code by adding a scanner to look for some stocks with closing price conditions above the midline.

Please use wisely as needed. Any question? Please contact me on the telegram group @CelotehSaham.

Thank you

Screenshots

Indicator / Formula

Copy & Paste Friendly

Apply to chart & run explorer

Periode=20;
DonchianUpper = HHV(Ref(H,-1),Periode);
DonchianLower = LLV(Ref(L,-1),Periode);
DonchianMiddle = (DonchianUpper+DonchianLower)/2;


Plot(DonchianUpper, "DU", colorYellow, styleLine|styleThick);
Plot(DonchianMiddle, "DM", colorAqua, styleLine|styleThick);
Plot(DonchianLower, "DL", colorYellow, styleLine|styleThick); 

Filter=1 AND Cross (Close , DonchianMiddle) AND Close < DonchianUpper AND High < DonchianUpper
			AND Volume > 1000000 AND StrLen (Name()) ==4;

AddColumn (Close, "Last", 1.0, colorDefault, colorDefault, 65);
AddColumn (DonchianMiddle, "DC Mid", 1.0, colorDefault, colorDefault, 75);
AddColumn (Volume/1000000, "Vol. (JT)", 1.2, colorDefault, colorDefault, 80);

SetSortColumns (-5);

0 comments

Leave Comment

Please login here to leave a comment.