On the previous bar I was short and I issued a BuyToCover -ExitShortLImit() - with a Limitprice = 96.76.
The limit price was never hit so at the Close Of Bar the ExitShortLimit() order is still working and therefore still Short.
Now at the CurrentBar I need to go Long using an EnterLongLimit() but I get the above mentioned error message because I think of the following rule:
Methods that generate orders to enter a position will be ignored if:
· A position is open and an order submitted by an exit method (ExitLongLimit() for example) is active and the order is used to open a position in the opposite direction
I should be Flat but I'm not. I am still Short.
How do I handle this? I think I need to reissue my ExitShortLimit() with a new limit price. There does not seem to be a way to the Limit Price on the still working order because that order is going to be canceled by NT. It seems I need to issue a new ExitShortLimit() and the queue my EnterLongLimt().

Comment