Login Page - Create Account

Support Board


Date/Time: Tue, 23 Apr 2024 17:36:33 +0000



[Programming Help] - ACSIL get a reference of the bar for the first past intersection

View Count: 335

[2021-07-26 11:25:37]
User460561 - Posts: 5
On each bar I'm trying to perform a look back until the price intersects. For example let say the current bar just ended and the look back calculation activates, the first intersection is 80 bars back. This is the bar index and date / time I'm trying to retrieve. Perhaps in another example the first intersection of the current price is 2 bars back. In either case I'd like to be able to reference the current bar and the bar in the past where the intersection occurs. I'm trying to code it so the calculation can perform on load and on every new bar closed. Every attempt I've made to loop backwards has either failed or created an infinite loop crashing sierra chart. I'm using Notepad++ so I can't debug other than posting messages to the log. This seems like a common task, is there something I'm missing??

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

Login

Login Page - Create Account