Login Page - Create Account

Support Board


Date/Time: Wed, 24 Apr 2024 04:31:58 +0000



system behaviour when bar duration is less than study call duration

View Count: 382

[2021-07-26 21:18:06]
User268846 - Posts: 17
Hello Sierra Chart,

I did read your documentation and support board regarding manual and automatic looping as well as when a study function is called but I am struggling to find a definite answer to the following questions and like to ask you to point me into the right direction:

When automatic looping is true and the study function is called as update (not recalculation or first call) and the study calculation duration is longer then the bar duration, will the study only be called for the last bar or also for the bars that were "created in between"?

As an example lets assume:

- my chart update interval is 10ms
- small volume bars are used in high volume market
- the last study call was at sc.Index = 100 and took 50ms to calculate
- during that 50ms there are 2 new bars (sc.Index = 101 and sc.Index = 102)


Will the next study call be only for the last bar (sc.Index = 102) or will the bar with index 101 also be calculated before 102?

If not what is the recommended way to make sure every bar is calculated in this kind of scenario?
Is using manual looping and perform recalculation beginning at bar 101 necessary in this case?


Thank you for your Support
[2021-07-27 07:20:17]
Sierra_Chart Engineering - Posts: 14068
also for the bars that were "created in between"?
Yes of course.

or will the bar with index 101 also be calculated before 102?
The next study call will start at index 100 and this is documented here:

Working with ACSIL Arrays and Understanding Looping
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, use 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