Support Board
Date/Time: Tue, 24 Dec 2024 01:52:00 +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 ? |