for (int esuhsc = 0, esuhscx = intSizeES; esuhsc < esuhscx; esuhsc++)
{
if (BarsInProgress == 1
&& Positions[1].MarketPosition == MarketPosition.Flat
&& CurrentBars[0] > barNumberOfOrderES + 5)
{
foreach(Order order in orderList)
{
if( order.Name == "ES SHORT LIMIT" + esuhsc)
CancelOrder(order);
gapEStradetoday = false;
}
}
}
Comment