Having read a few of the threads concerning MultiColor Plots, I came across the sample code "SampleMultiColoredPlot" which uses the reset method. I ran the sample code on a chart and still found bars that had multiple values in the Data Box.
To illustrate the problem, I put together a simple indicator that measures the amount of change in a SMA(20). The indicator plots a different color for the following:
Up and Increasing
Up and Decreasing
Down and Increasing
Down and decreasing
Attached is a chart pic of the indicator on 2 different panels, 1 as a line plot and one as a bar. You can see numerous discrepancies bewteen the 2. Also, the arrow shows where the SMA rate of change decreased, but no corresponding change in plot color.
I have also attached the code for this indicator. Am I doing something wrong here?
Thx,
BB
Comment