Download MetaTrader 5

Dynamic arrays

To add comments, please log in or register
Roman Sharanov
410
Roman Sharanov  

Hello.

Is it possible to set array size dynamicly for an array like SomeArr[5][][12]?
I mean first and third dimensions are known, but the second must be calculateted and set up.

Alain Verleyen
Moderator
35127
Alain Verleyen  
RomanRott:

Hello.

Is it possible to set array size dynamicly for an array like SomeArr[5][][12]?
I mean first and third dimensions are known, but the second must be calculateted and set up.

No, only 1 dimension. Please read the documentation.

Roman Sharanov
410
Roman Sharanov  
Alain Verleyen:

No, only 1 dimension. Please read the documentation.


Is it possible in MQL 5?

Alain Verleyen
Moderator
35127
Alain Verleyen  
RomanRott:

Is it possible in MQL 5?

No.

You need to use an other solution, there are many.

To add comments, please log in or register