Found something strange when I look at the charts today.
I have plot the DonchianChannel with 5 days period on the charts with below code.
Code: Select all
inputs:
period (NumericSimple),
myMid (NumericRef),
myUpper (NumericRef),
myLower (NumericRef);
myUpper = Highest(H, period);
myLower = Lowest(L, period);
myMid = (myUpper + myLower) / 2;
Code: Select all
inputs:
period (14),
plotMid (true);
vars:
myMid (0),
myUpper (0),
myLower (0);
Value0 = DonchianChannel(period, myMid, myUpper, myLower);
If (plotMid) then
Plot1(myMid, "Mid");
Plot2(myUpper, "Upper");
Plot3(myLower, "Lower");
If I scroll the chart a little to the right, then the plot will be fixed (haven't changed anything except scrolling):
Anyone encounter the same problem before?