Skip to main content

Donchian Channels for Amibroker (AFL)

rythm.arora over 15 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 7)
  • Tags:
    amibroker, channel

Based on Turtle trading technique. Breakout trading system

Screenshots

Indicator / Formula

Copy & Paste Friendly
// Plots a 20 period Donchian channel

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


Plot(DonchianUpper,"DU",colorBlue,styleLine);
Plot(DonchianMiddle,"DM",colorGreen,styleLine);
Plot(DonchianLower,"DL",colorRed,styleLine); 

0 comments

Leave Comment

Please login here to leave a comment.