DYO: Conditional plot of Donchian bands


Q:  After fixing the DYO script per your instruction, the indicator works fine in real time except there is one plotting issue - the DYO plots excess lines at the beginning of a new segment (see attached). 

A:  This example will accomplish your conditional plot of the Donchian channel bands.

Template:  1279-Donchian

Line D and E return the values for the array, but conditionally plot the line.  It is returning the line values though not plotted that give a correct starting point for the draw line starting point when it is to plot a segment of the line.   So the example on Line D and E is the solution to the lines zooming off of the chart by not having a starting point.

Template:  1279-Donchian

Last modified 1/18/08 3:51 PM