// Check for a pending entry order
if ( orderIdLONG != null && orderIdLONG.Length > 0 )
{
string[] status = GetAtmStrategyEntryOrderStatus(orderIdLONG]);
// If the status call can't find the order specified, the return array length will be zero otherwise it will hold elements
if (status.GetLength(0) > 0)
{
if (status[2] == "Filled" )
{
entryPriceLong = GetAtmStrategyPositionAveragePrice(atmStrategyIdLO NG);
worked around problem with this code:
if ( entryPriceLong == 0 )
return;

Comment