Support Board
Date/Time: Sat, 01 Mar 2025 04:31:06 +0000
Post From: Executing orders at bar close
[2020-12-19 08:34:28] |
User820318 - Posts: 40 |
Still trying to get to the bottom of this. Would I be correct in assuming that by calling the following condition in my trade logic sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED
the system will be executing at the open of a bar which means that a new tick has to be registered for the new bar to open? If I want to execute the order at the close of the time based bar irrespective of whether a new tick comes in to open the next bar then I would need to follow the instructions here (ACSIL Programming Concepts: Determining if Last Chart Bar is Closed). I would greatly appreciate a response as to whether the above interpretation is correct. |