v 7.1
i've used the code from the ATM section of the manual, but even if there is an existing and active ATM strategy running, the following code only returns 0's; i'm trying to get it to return the target, and the stop
if (atmStrategyIdL.Length>0 && GetAtmStrategyMarketPosition(atmStrategyIdL)==Mark etPosition.Long)
{
... stuff....
string[,] orders = GetAtmStrategyStopTargetOrderStatus("TARGET1", atmStrategyIdL); // "idValue");
//string[,] orders = GetAtmStrategyStopTargetOrderStatus("STOP1", atmStrategyIdL); // try 1, not 2
Print(Time[0].ToString(dFmt)+header+ " **** extract the target/stop for atmStrategyIdL="+atmStrategyIdL);
// Check length to ensure that returned array holds order information
if (orders.Length > 0)
{ for (int i = 0; i < orders.GetLength(0); i++)
{ Print(Time[0].ToString(dFmt)+header+ " (tell us stop?) Avg fill=" + orders[i, 0].ToString()
+ " Filled amt=" + orders[i, 1].ToString()
+ " Current state=" + orders[i, 2].ToString());
}
}
1/6 19:23:32 DevAtm r1 4.01 [CL] **** extract the target/stop for atmStrategyIdL=22f68cc02ddf4c75af2bf8a524724994
1/6 19:23:32 DevAtm r1 4.01 [CL] (tell us stop?) Avg fill=0 Filled amt=0 Current state=Working
Comment