How to Create array in amibroker afl?

I want to Create an array which contains different values of same type in one variable. Below is the working syntax of array in C++. Can you code this for amibroker afl.

int f [5] = { 16, 2, 77, 40, 12071 };

You can add the elements into array as shown below or you can add the values in a for loop with value assigned to variable[loop_count]

f[0] = 16;
f[1] = 2;
f[3] = 77;
f[4] = 40;
f[5] = 12071;

Warm Regards,

Vivith

www.neotradeanalytics.com

(Authorized vendor of NSE supporting real time data feeds to Amibroker, Metastock and Ninjatrader)

1 Like