Type : Indicator, Name : Donchian Channel
Inputs: Length(13),ShowAvg(true);
Value1 = Highest(C,Length);
Value2 = Lowest(C,Length);
Value3 = ((Value1 + Value2) / 2);
Plot1(Value1, «DonchianHi»);
Plot2(Value2, «DonchianLo»);
if ShowAvg = true then
Plot3(Value3, «DonchianAvg»);