In sampeCustomSeries.cs i've this code in State.DataLoaded:
else if (State == State.DataLoaded)
{
myDoubleSeries = new Series<double>(this);
}
protected override void OnBarUpdate()
{
myDoubleSeries[0] = Math.Abs(Close[0] - Open[0]);
Print(myDoubleSeries.Count + "Current bar "+ CurrentBar);
this is the same output if i use
else if (State == State.DataLoaded)
{
// Create a new Series object and assign it to the variable myDoubleSeries declared in the ‘Variables’ region above
myDoubleSeries = new Series<double>(this,MaximumBarsLookBack.Infinite);
}
why ?...if i use the first example (myDoubleSeries = new Series<double>(this)
the plot of DataSeries.Count it should be 256 and not 13835
Comment