Problem with my code. MAX and SMA are not accepting myDataSeries

Hi Danny,

I figured out the issue.

In the region properties I had 4 variables listed to plot:

#region Properties

[Browsable(false)]
[XmlIgnore]
public Series<double> Buys
{
	get { return Values[0]; }
}

[Browsable(false)]
[XmlIgnore]
public Series<double> Sells
{
	get { return Values[1]; }
}


[Browsable(false)]
[XmlIgnore]
public Series<double> PriceVolumeDeltaPlot
{
	get { return Values[2]; }
}

[Browsable(false)]
[XmlIgnore]
public Series<double> VolumeDeltaPlot
{
	get { return Values[3]; }
}

But in the OnStateChange I only had 3 AddPlots:

protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
AddPlot(Brushes.Orange, “buys”);
AddPlot(Brushes.WhiteSmoke, “sells”);
AddPlot(Brushes.WhiteSmoke, “PriceVolumeDeltaPlot”);
}
}

I have no idea why affect some indicators like SMA and StdDev and why does not affect other plots, but it was the solution.