Login Page - Create Account

Support Board


Date/Time: Sun, 12 Jan 2025 01:01:01 +0000



[Programming Help] - ACS - sc.UpdateAlways

View Count: 1497

[2017-01-24 09:17:59]
jizzary - Posts: 177
i'm not sure i cottrecly understand the calling mechanism to study function

i understood that ty default the study function is called as Chart Update Interval expires
(rather than when new market or order data is available for the symbol)

from reading the documentation's text - i understand that this is not the default behavior
and for that to take place i need to set sc.UpdateAlways = 1

***

what is the bhaviour when when sc.UpdateAlways = 0 ?
study function is called when new market or order data is available for the symbol ?

***

p.s. is there an option to cause calling the study function only when the current candle/bar is closed ?
[2017-01-24 17:49:56]
Sierra Chart Engineering - Posts: 104368
How you come to the reverse conclusions you have come to, we do not know. We have never had anyone come to this conclusion previously.

Refer to this section here:
http://www.sierrachart.com/index.php?page=doc/ACS_ArraysAndLooping.html#WhenFunctionCalled

There is a way to prevent calculations on chart bars which are not closed. Refer to:
http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetBarHasClosedStatus
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: 2017-01-24 17:50:36
[2017-01-24 20:52:32]
jizzary - Posts: 177
clear now ... tnx

wanted to ask whether you can support a mechanism where the study function will set flags on events
to call the study function

so rather calling it as interval elapses for a set of events (or if UpdateAlwyas is asserted)
and then the study function needs to test whether the bar is closed - the function will set the events upon which
the platform should call teh study function. that will save the need (and involved performance pnealty)
to check whether bar is closed

will you consider this attitude ?

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account