Does anybody know what might be the problem entering not just at certain levels with pending order by the code:
function run()
{
StartDate = 20151001;
EndDate = 20151005;
LookBack = 105;
static var BuyLimit,SellLimit;
EntryTime = 1;
ExitTime = 2;
if(!NumOpenLong && !NumPendingLong)
{
enterLong(1,9500);
}
if(!NumOpenShort && !NumPendingShort)
{
enterShort(1,9700);
}
}
