I am working on an indicator that plots the low of the day, if that day’s low is lower than the previous day’s low.
Specifically, a day’s low is added to a DataSeries if the day makes a lower low. If the day doesn’t make a new low, the DataSeries stores a null value using the .Reset() method.
The problem I am experiencing is that the .Reset() method doesn’t seem to be setting a null value. When the indicator is added to a chart, the instances where a null value is expected are plotted on the chart as the day’s Close Value. I have checked my code and cannot see a reason why it is plotting the Close.
The indicator is attached.
For the sake of clarification, I have also attached and a .gif showing the indicator as it currently plots and also showing how I would like it to plot.
Is there anyway to achieve the desired indicator plot (as shown in the .gif).
Many thanks.
Comment