Support Board
Date/Time: Mon, 03 Feb 2025 22:47:24 +0000
sc.ServerConnectionState Documentation
View Count: 607
[2019-12-08 21:32:59] |
User987654 - Posts: 69 |
Hi Support, Reading the documentation for sc.ServerConnectionState, it says "...When the connection state is disconnected and then the connection becomes connected, the study function will be called. When the connection state is connected and then it is no longer connected, the study function will be called..." Does that mean if this function is used in the body of the function, it will not be called at every chart update interval? I was under the impression that everything inside the body of SCSFExport scsf_studyname(SCStudyInterfaceRef sc){###body###} is called at every chart update interval.Sorry if dumb question, new to coding. |
[2019-12-08 23:02:02] |
Sierra Chart Engineering - Posts: 104368 |
it will not be called at every chart update interval? Yes. It is also variable and not a function.
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 |
[2019-12-08 23:53:50] |
User987654 - Posts: 69 |
I see, so sc.ServerConnectionState just returns a variable that's calculated somewhere else within SC, is my understanding correct? Other code within the body that is not a variable like sc.ServerConnectionState will be run at every chart update interval, is this correct? Thanks in advance. |
[2019-12-10 13:38:00] |
Sierra Chart Engineering - Posts: 104368 |
In general yes to your first question. No to your other question. Refer to: Working with ACSIL Arrays and Understanding Looping: When the Study Function is Called 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: