Trying to use the method described in http://www.ninjatrader.com/support/h...rgetorders.htm
I could not find the way to make it work on StopN orders ;
string[,] orders = GetAtmStrategyStopTargetOrderStatus("STOP1", "idValue");
// Check length to ensure that returned array holds order information
if (orders.Length > 0)
{
for (int i = 0; i < orders.GetLength(0); i++)
{
Print("Average fill price is " + orders[i, 0].ToString());
Print("Filled amount is " + orders[i, 1].ToString());
Print("Current state is " + orders[i, 2].ToString());
}
}
How can I get the number of contracts removed and the avg price of Stop1, 2 and 3 ?
( Is that possible ? )

Comment