Definition
Gets the current state of the specified entry order. If the method can't find the specified order, an empty array is returned.
Method Return Value
A string[] array holding three elements that represent average fill price, filled amount and order state.
Syntax
GetAtmStrategyEntryOrderStatus(string orderId)
Parameters
orderId
|
The unique identifier for the entry order
|
Examples
protected override void OnBarUpdate()
{
string[] entryOrder = GetAtmStrategyEntryOrderStatus("orderId");
if (entryOrder.Length > 0)
{
Print("Average fill price is " + entryOrder[0].ToString());
Print("Filled amount is " + entryOrder[1].ToString());
Print("Current state is " + entryOrder[2].ToString());
}
}
|
|
|