Support Board
Date/Time: Tue, 04 Mar 2025 10:13:19 +0000
[Programming Help] - ACSIL: Painting only going forward
View Count: 608
[2021-12-06 19:05:11] |
ycomp - Posts: 321 |
If a Study Starts painting dots only going forward.. I mean only since the chart has been loaded (does not paint for any bars before this), what does this usually mean the programmer is not doing correctly? is this AutoLoop? it's 0 now, but i'm sure I tried it set to 1 before - can anything else cause this? Date Time Of Last Edit: 2021-12-07 18:37:12
|
[2021-12-07 20:55:05] |
ForgivingComputers.com - Posts: 1021 |
If autoloop is 0, then that is manual looping. To do manual looping there should be a 'for' loop that is incrementing from an index to the end of the array. The variable sc.UpdateStartIndex is normally used for the initial value. It sounds like yours is not incrementing, just always writing to the last index. If you switch to auto-looping, then you don't need the 'for' loop, and sc.Index should be used to write to subgraphs. More here: Working with ACSIL Arrays and Understanding Looping: Manual Looping/Iterating |
[2021-12-08 11:20:54] |
ycomp - Posts: 321 |
thanks Brad, the culprit was autoloop not being set. I guess I was tired that day and forgot to close the workbook and open it again after rebuilding the study.
Date Time Of Last Edit: 2021-12-08 11:21:05
|
To post a message in this thread, you need to log in with your Sierra Chart account: