Support Board
Date/Time: Wed, 12 Feb 2025 15:48:41 +0000
Question about looping
View Count: 763
[2020-11-03 19:28:48] |
User311344 - Posts: 142 |
Hey, I cant find the exact thread at the moment but I remeber you said we should use manual looping as it's more efficient then auto but im not sure if thats general rule or it's somehow connected with latest builds? In manual theres: This section describes manual array element looping or iterating. The preferred method for you to use is Automatic Looping unless your study function does not require automatic looping or would work best without it.
so could you make some final statement on that issue? Thanks! |
[2020-11-03 20:18:48] |
|
We have updated that section now. Definitely manual looping is more efficient. But not necessarily by much. It depends what a custom study is doing.
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 |
[2020-11-04 10:35:15] |
User311344 - Posts: 142 |
Thanks for explanation. This one is obvious but its meaning could be easily overlooked: Manual looping is going to be more efficient than automatic looping because the study function is called only once during a full recalculation.
So if a study makes some big data preparation and has to build own preliminary data structures based on market depth info for example, this can be done once rather than doing same job for every bar. Thats a huge opportunity for increasing study efficiency. Thanks! Date Time Of Last Edit: 2020-11-04 10:36:16
|
To post a message in this thread, you need to log in with your Sierra Chart account: