I am wondering if there is possible to use multidimensional Series<T> in NinjaTrader since I am struggling to fix a problem relate to this two dimentional Series<T>.
I have the following code:
#region Variables private List<Series<double>> myArray #endregion else if (State == State.DataLoaded) { myArray = new List<Series<double>>(); } protected override void OnBarUpdate() { for (int i = 10; i > 0; i--) { int val = 0; myArray.Add(new Series<double>(this)); for (int j = 10; j > 0; j--) { myArray[i][val] = Close[j]; val++; } } }
At this level, I do not know if the declaration and the instanciation are correct or if the sections to do that are correct.
I would appreciate any help.
Many thanks in advance.

Comment