Have been trying to plot the original Donchian 4 week/2 week system instead of 
the usual 20 period/10 period channels. However, every time I plot them, and go 
to the 'daily' chart, the chart seemed to be 'displaced' to the right? What am 
I doing wrong?


TimeFrameSet( inWeekly );
DHigh = Ref(HHV(H, 4), -1);
DLow = Ref(LLV(L, 2), -1);
TimeFrameRestore();

DHighW = TimeFrameExpand( DHigh, inWeekly );
DLowW = TimeFrameExpand( DLow, inWeekly );

Plot(C, "Price", colorBlack, styleCandle);
Plot(DHighW, "Weekly AvgLevel", colorGreen, styleThick );
Plot(DLowW, "Weekly AvgLevel", colorRed, styleThick );


I also tried,


DHigh = HHV(H, 4);
DLow = LLV(L, 2);


...but didn't get far. Any help please?

Reply via email to