- Katılım
- 23 Eki 2020
- Mesajlar
- 1,823
[Indicator + Scanner] Donchian Indicator Including Scanner - IDX for Amibroker (AFL)
hanks 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
Kod:
// Downloaded From https://www.WiseStockTrader.com
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);
www.WiseStockTrader.com