I need to code some loop for calculations and keeping values on a particular one-dimensional array. I've tried to do this with Ninjatrader native-Dataseries but, it doesn't work for my special order index needs.
So, I'm trying to declare and initialize a simple one-dimensional with LIST or ARRAY , but so far, I must miss some obvious step cause it doesn't work at all. I've read many tutorials and instructions but not solution yet.
Now I wonder if working with arrays is not possible in Ninjatrader cause it crashes with the Dataseries way to do it.
Could I actually see a simple example and how to declare and initialize a simple one-dimensional array for integer values ?
My goal is the following: for each new BarUpdate, I need to do for example 10 different calculations of certain variables, storing each result in a different "Container" ( as a LIST array ) to be able to access them once again in the new coming BarUpdate. Easy.
Any hints?
Thanks
Comment