It's more a guess but TradeIsEntry assumes an Entry limit has been hit. Can it be that you search for TradeIsOpen?