How to declare a variable as an array in AFL?

How do I declare a variable in an AFL as an array?
If I make the following declaration "i = 0;" then i is a scalar. Certain variables such as Buy, Sell are by definition arrays.
I want to iterate through the bars using for (i=0; i < BarCount; ++i), do a calculation for each bar, and store the value for each bar for use in later processing ... therefore an array.

Thanks

Read here:

https://www.amibroker.com/guide/h_understandafl.html


and:

2 Likes