Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 11:35:40 +0000



ACSIL: calculate at every tick

View Count: 1486

[2014-02-07 12:06:11]
User40117 - Posts: 56
hello,

my prev charting package had a function

calculateateverytick (false/true);

Is there a similar function in ACSIL ? My indicator a have ported plots bands but they only need to be updated at every bar. Now the last segment moves at every tick and this is confusing. Is it possible to avoid calculation at every tick ?

ty


[2014-02-07 15:35:41]
ejtrader - Posts: 688
This code would let it calculate on end of bar only.


if (sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED)
{
// Perform Indicator Calculations
}

[2014-02-07 15:40:49]
User40117 - Posts: 56
ty
[2014-02-07 18:24:43]
Sierra Chart Engineering - Posts: 104368
Let us know if you need more 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

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

Login

Login Page - Create Account