Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 17:30:33 +0000



Post From: Storing values in containers when using manual looping?

[2013-07-19 15:48:09]
User45685 - Posts: 36
I see, small followup question on ACSIL and sc.Updatestartindex.

The for { int i = sc.UpdateStartIndex; i < sc.ArraySize; i++) replaces the autoloop = true setting but what happens when it reaches the end of the loop? Or basically when i is not smaller than sc.ArraySize ? Will it stop and then restart the entire study and start calling the if (sc.defaults) part?

Or does the way the for loop works or more specifically the sc.updatestartindex work basically mean the loop is going to continue forever/as long as the chart is open? Because I read the documentation and I am still not quite clear on how this works exactly when the loop has performed for the last bar in the chart.