They always come back zero. Is there a way to Read back the Stop/Target values in case they were manually moved.
Thanks
protected override void OnBarUpdate()
{
string[,] orders = GetAtmStrategyStopTargetOrderStatus("TARGET1", "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());
}
}
}
Comment