Multi-dimensional array

Created at 23 Jan 2025, 17:46
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
HS

hslagter

Joined 28.04.2020

Multi-dimensional array
23 Jan 2025, 17:46


Maybe I overlooked it, but I can't find a solution to declare and use a multidimensional array. The command in C++: int arr = {0, 1, 2, 3, 4, 5, 6, 7}; or int x = {{0, 1, 2, 3}, {4, 5, 6, 7}}; gives errors and the error message does not give me clarity either. Is a multidimensional array possible in cTrader?


@hslagter
Replies

firemyst
24 Jan 2025, 00:36

Yes, it's a C# language construct just like it is in C++. It's not specific to cTrader.

Google “c# multidimensional array”


@firemyst