A custom indicator I built plots the correct line data on the screen but plots random values in the rest of the chart where I do not expect it to plot any thing.
How can this be fixed?
I don't think that adding PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,EMPTY_VALUE); to OnCalculate() is a good idea. Again, seeing the whole code would help here.