I am having an issue with the Reset() method. I have the following code:
In Initialize():
Add(new Plot(Color.Cyan, PlotStyle.Dot, "TDown"));
Add(new Plot(Color.Blue, PlotStyle.Dot, "TUp"));
Plots[0].Pen = new Pen(Color.Cyan, 6);
Plots[1].Pen = new Pen(Color.Red, 6);
In OnBarUpdate():
if(CurrentBar < 10)
{
TDown.Reset(); // sets null value for plotting purposes but 0 value for mathematical purposes
TUp.Reset();
...
}
When I print values of TDown[0] or TUp[0] I get actual price values - the Close value of the bar. I expected to see null, or zero values or NaN. I must be using Reset() incorrectly because my output does not agree with the documentation. Any suggestions?
Thank you for any help you may be able to provide.

Comment