When PlotStyle is PlotStyle.Line does it look for the last bar which contains value?
The following code will display differently when plots are lines and when plots are dots:
namespace NinjaTrader.Indicator
{
public class PlotTest : Indicator
{
protected override void Initialize()
{
Add(new Plot(new Pen(Color.Green, 3), PlotStyle.Line, "one"));
Add(new Plot(new Pen(Color.Red, 3), PlotStyle.Line, "two"));
CalculateOnBarClose = true;
Overlay = false;
}
protected override void OnBarUpdate()
{
if(CurrentBar % 4 > 1)
Values[0].Set(0);
else
Values[1].Set(1);
}
}
}

Comment