I attached a screen shot showing the MA overlaid on a chart. In it you can see a few instances of the indicator running in the MA with some plots in green. The MA is overlaid on a chart running the same indicator and you can see that the plots are matching:
When conditions change the indicator calls Reset(0) on its plots. The plots on the chart disappear as expected but the plots on the MA remain.
I debugged into the indicator code with only the MA indicator running to confirm that the plots had been reset and they had.
I also noticed that even though the plots had been reset if the current value of the plot is queried a non-zero value is returned.
I have no control over what this value is. If I set the value to something like 0 and then Reset() the plot do I have any guarantee that the plot value will remain at zero?
I have the plots in the MA setup with conditions so that they paint different colors and text for various indicator values. The problem is that there is no condition choice available for IsValidDataPoint(0) == false. The only choices are for values.
I think the problem could be solved if the MA had a condition option to check for IsValidDataPoint(0) true/false.
Comment