Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 09:56:58 +0000



Trying to have a triple array

View Count: 757

[2016-12-06 18:57:29]
User994967 - Posts: 1
Hello, i'm currently trying to write a peace of code that should do something like this:

create a triple array, something like: double triplearray[][][]; <<<of course this is not sierrachart programming language

the 3 dimensions of the array would be used like [sc.Index][numberfrom0to10][numberfrom0to10].



error C2109: subscript requires array or pointer type

What can be a correct way to do it?

Thanks very much.


Edit: i solved the situation by doing many two dimensional arrays instead of a single big three dimensional array.
Date Time Of Last Edit: 2016-12-06 22:09:32
[2016-12-06 22:49:19]
Sierra Chart Engineering - Posts: 104368
A three-dimensional array like this is difficult and that is not something we can help with.

The best we can recommend is to use the Arrays member on each study Subgraph:
ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].Arrays[][]
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account