Support Board
Date/Time: Thu, 13 Feb 2025 20:13:45 +0000
Post From: Freezing before automated trade entry
[2020-12-16 16:30:22] |
User820318 - Posts: 40 |
Ok thanks. I am using the below as one of the conditions in my entry logic sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED
However, i was not aware that even in time based bars (like 5 min bar) the new bar doesnt open until the first tick is registered. The delays I am observing tend to be more prevalent when market moves quickly during the transition between bars. Are you saying the above code is inappropriate for executing orders at the bar close only? The link you sent me to says When trying to determine if the last chart bar is closed, it is not possible to use the function sc.GetBarHasClosedStatus().
|