I declare a 2D array and I need to make each row elements being indexed like in time series.
But it didn't work. The compiler says Error: ']' - expression expected
How should I make it work?
Thanks in advance .
From the documentation of ArraySetAsSeries() :
flag can't be set for multi-dimensional arrays or static arrays
(arrays, whose size in square brackets is preset already on the
compilation stage). Indexing in timeseries differs from a common array
in that the elements of timeseries are indexed from the end towards the
beginning (from the newest to oldest data).
You can use a structure instead :