string[,] orders = GetAtmStrategyStopTargetOrderStatus("Target1", atmStrategyId);
// 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());
}
}
if (orders[i, 2] == "Filled")
filledbar = CurrentBar;
if (orders[i, 2] == "Filled")
filledbar = CurrentBar;
Guidance would be much appreciated. Thanks in advance.

Comment