Login Page - Create Account

Support Board


Date/Time: Sat, 11 Jan 2025 00:00:40 +0000



[Programming Help] - Looping

View Count: 689

[2016-10-13 11:33:39]
User968787 - Posts: 8
Hi,

I currently have a loop which is running fine.

See below:
for (int Index = 0; Index <= sc.ArraySize -1; Index++)

The loop iterate the array from the left to the right side of the chart. My strategy is updating on 1 MIN bars and as the chart is growing over the time then the loop will take longer to finish.

How should I change the loop to be able to iterate the array from the right to the left side of the chart? For example 100 values only?

Thanks for your answer.

Best,

Vlad.

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

Login

Login Page - Create Account