I am receiving the following error message:
#region Variables
private double [][] myArray = new double[3][]; // Declaration of the jagged array
#endregion
protected override void OnBarUpdate()
{
if(CurrentBar < 500) return;
for(int i = 0; i < myArray.Length; i++)
{
for(int j = 0; j < 25; j++)
{
myArray[i] = new double[j]; // set size of jagged array elements
myArray[i][j] = Close[j]; // initialize the arrays
}
}
}
Many thanks in advance!

Comment