Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 08:28:12 +0000



Autoloop call function

View Count: 840

[2020-03-02 18:41:01]
stephane1 - Posts: 110
I created a study that works well with historical data .... but in real time or in replay the intended alarms are not displayed. I think I am not well understood how the function is called in real time. If I understood correctly ... at each tick change the function is called? or at each bar? it depends if autoloop is on 0 or 1? In my study, I have a vector and variables which must not be initialized each time the function is called ... should we use persistent variables? but for the vector?
thank you
[2020-03-02 22:04:02]
Sierra Chart Engineering - Posts: 104368
Refer to:
Working with ACSIL Arrays and Understanding Looping: When the Study Function is Called

You may want to use persistent variables. This is a programming level question and you have to make your own determinations.
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