Login Page - Create Account

Support Board


Date/Time: Wed, 01 May 2024 20:05:27 +0000



Index of the Array

View Count: 684

[2016-09-27 13:28:26]
User103305 - Posts: 8
Hi,

I wanted to ask something about the looping. I have a loop like this:

for (int Index = 0; Index < 50; ++Index)
{
if (sc.Subgraph[3][Index] != 0)
etc....
}

First Index of the Array is 0 isnĀ“t it?? Why then the loop start to iterate from the last value on the chart and not from the first one??
Thx.

Best regards,
[2016-09-27 17:27:50]
Sierra Chart Engineering - Posts: 104368
This has already been answered here:
Array Looping
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