Support Board
Date/Time: Sat, 28 Dec 2024 09:48:07 +0000
Post From: Referencing to Persistent Variable by name NOT working *URGENT*
[2016-02-23 00:07:08] |
User972044 - Posts: 154 |
Ok can you explain WHY would setting auto looping make a difference in setting the initial value for persistent variable? Your documentation on auto loop does not explain this and I actually read this when I first started ASCII programming; it just discusses how manual looping is but it doesn't show how it would impact persistent variable value setting or any other aspects of how the study is run. It would help if you can show what's the difference in value of sc.Index and sc.ArraySize and sc.UpdateStartIndex and sc.BaseData[] when autoloop is set 1 and 0 for example since it actually does make a big impact on how the study is run. At least it should be stated in the documentation for Persist Variables in both places either by SetPersistent...() or PersistVars->... methods that autoloop must be 0 for initial value of persistent variables to be set and the passage that "Initial Value: 0 (for all the persistent variables in the structure)" and "All persistent variables are set to zero values when an instance of the study is added to the chart or when a chartbook is loaded and an instance of the study is contained on a chart in the chartbook." should be completely erased from the documentation for PersistVars->. It is totally misleading and not correct. It was extremely frustrating having spent several hours trying to make something work when at the end the reason was it wasn't properly documented in the first place. And I was a little offended that Sierra Chart Support to just dismiss me for not debugging my code after all my efforts. From the several posts that I have posted before it was obvious I went through a series of tests and debugging efforts on my own to try to make it work. I understand you are busy and I appreciate your efforts in helping me but I really prefer to receive correct answers to my issue. I don't mind waiting as long as it is not TOO long. Thank you for your help. Date Time Of Last Edit: 2016-02-23 01:55:41
|