/ _SECTION_BEGIN("Donchian Channel"); // // This plots a Donchian Channel, similar to a Bollinger Band but based on // highs and lows. Good for support/resistance. // //------------------------------------------------------------------------------ // 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); _SECTION_END();