I am developing an indicator which oscillates above/below a zero line. The indicator plots the oscillator and plots a zero line.
At each bar I'd like to add a dot on the zero line but I'm struggling to make the AddPlot() syntax detailed in the help guide work for me, my code is below.
{
if (State == State.SetDefaults)
{
AddPlot(new Stroke(Brushes.Blue), PlotStyle.Dot, "MyPlot2");
protected override void OnBarUpdate()
{
MyPlot[0] = 0;
}
[Browsable(false)]
[XmlIgnore]
public Series<double> MyPlot
{
get { return Values[0]; }
}
What am I missing?
Thanks,
Neil

Comment