Support Board
Date/Time: Tue, 28 Oct 2025 10:24:17 +0000
Post From: market orders and BHCS_BAR_HAS_CLOSED
| [2015-10-15 17:35:36] |
| cmb999 - Posts: 211 |
|
In a bar-based back test, i am checking: sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED before creating and sending a market order. however, the market order does not execute until the close of the bar (or open of next one, cant tell which yet). how can i get the open of the current bar (or near it) to be the execution price for the market order as it would be in real-time ? |
