GetAtmStrategyStopTargetOrderStatus()
<< Click to Display Table of Contents >> GetAtmStrategyStopTargetOrderStatus() |
Gets the current order state(s) of the specified stop or target order of a still-active ATM strategy.
Notes: 1.If the method can't find the specified order(s), an empty array is returned. 2.A specified stop or target within an ATM strategy can actually hold multiple orders. For example, if your ATM strategy submits a stop and target and you receive multiple partial fills on entry with a delay of a few seconds or more between entry fills, the ATM strategy will submit stop and target orders for each partial fill all with the same price and order type. |
A string[,] multi-dimensional array holding three dimensions that represent average fill price, filled amount and order state. The length (number of elements) represents the number of orders that represent the specified name.
GetAtmStrategyStopTargetOrderStatus(string orderName, string atmStrategyId)
orderName |
The order name such as "Stop1" or "Target2" |
atmStrategyId |
The unique identifier for the ATM strategy |
protected override void OnBarUpdate() |