Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 13:25:07 +0000



Post From: Referencing to Persistent Variable by name NOT working *URGENT*

[2016-02-23 03:26:35]
Sierra Chart Engineering - Posts: 104368
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;
The documentation does not need to explain specifically this because this is something already clear with what you are doing and the explanations already provided.

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.
This is documented here:
https://www.sierrachart.com/index.php?page=doc/doc_ACS_ArraysAndLooping.html

https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scIndex
The other three variables mentioned in the quote above are documented on this same page.


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.
What you are saying here is not correct. They are initialized to zero under those conditions.


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 for Sierra Support to just dismiss me not debugging my code after all my efforts, I find that a bit offensive.

Programming is not easy. And step-by-step debugging and analysis of the code is absolutely essential. The documentation is correct and quite thorough. You need to determine why you are facing the issue that you are. Why is it that you are getting the result that you are from your persistent variable? This is what you need to determine.

We have not given you any incorrect answers. And if something we said is not correct and we are not aware of that and we doubt that, it would only be because of the lack of understanding of what you are doing. This is one of many reasons why we do not provide programming help and why you should not rely upon us for programming help.
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
Date Time Of Last Edit: 2016-02-23 03:27:31