private double[] myArray;
myArray = new double[??];
Also:
I need to re-init the array on new bar:
I need a suggestion on best way to do this. Below is not working.
protected override void OnBarUpdate()
{
Print(Bars.PercentComplete*100);
if (Bars.PercentComplete*100 <= 0)
{
Print("First tick");
myHits = new double[20];
i = 0;
}
myHits[i] = Close[0];
i++;
for (int j=0;j<myHits.Length;j++)
{
Print("myHits["+j+"] = "+myHits[j]);
}
Plot0.Set(Close[0]);
}
Comment