Posted By: sodiumchloride
Something wrong with DChannel ? - 07/31/17 15:31
i tried this
and it is only plotting the upper line. i was then searching for "DChannel" in Zorro folder and in indicators.c i found this
@Line 312:
looks like the return of the lower band is missing? i hope someone can enlighten me. ty
Code:
// DC Test function run() { set(PLOTNOW); StartDate = 20170722; BarPeriod = 1; vars Price = series(price()); plot("DC",DChannel(20),0,RED); }
and it is only plotting the upper line. i was then searching for "DChannel" in Zorro folder and in indicators.c i found this
@Line 312:
Code:
// Donchian Channel var DChannel(int Period) { rRealUpperBand = HH(Period,0); rRealLowerBand = LL(Period,0); return rRealUpperBand; }
looks like the return of the lower band is missing? i hope someone can enlighten me. ty