Support Board
Date/Time: Thu, 11 Sep 2025 18:16:18 +0000
[Programming Help] - Autolooping sense check
View Count: 262
[2024-09-06 11:32:57] |
skalaydzhiyski - Posts: 75 |
Hi guys, Sorry if I'm being thick, but I just want to confirm if my understanding is correct with regards to Autoloop. After watching Frozen Tundra + reading about it in the docs what I understand about autoloop is the following: 1. If you don't use autoloop -> you will get much faster recalculation because your study won't be called at every bar but only with updatestartindex = 0 and then again with updatestartindex = arraysize - 1. (this makes perfect sense). 2. During normal study function calling (i.e when your study/trading system is live) -> it doesn't matter whether you use autoloop 1 or 0 because the calling triggers are identical and you cannot control when your function is called right ? So my questions are 2: 1. Is there any other reason why manual looping is considered "more efficient" than autolooping other than the case of full recalc? 2. Is there a way to make my study be called only on a specific event (faster than the update interval).. let's say when an order is received at a given price exceeding X -> send a limit order at the price before that ? All the best, Sierra rocks! Date Time Of Last Edit: 2024-09-06 11:35:02
|
[2024-09-06 18:28:13] |
ForgivingComputers.com - Posts: 1115 |
1. Is there any other reason why manual looping is considered "more efficient" than autolooping other than the case of full recalc?
I think your understanding is correct. Once running after a recalc, a manual index and sc.Index will be on the last bar, because of sc.UpdateStartIndex, and act essentially the same. 2. Is there a way to make my study be called only on a specific event (faster than the update interval).. let's say when an order is received at a given price exceeding X -> send a limit order at the price before that ?
Trade Events cannot be filtered before the study is called. Your study would have to manage order entries. |
[2024-09-06 18:35:51] |
skalaydzhiyski - Posts: 75 |
That makes sense, thanks !
|
To post a message in this thread, you need to log in with your Sierra Chart account: