If you are already in a short position and you simply wanted to reverse at a specific price you can submit an EnterLongLimit() order immediately with no problem provided you do not violate any of these rules:
Methods that generate orders (excluding market 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
- A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction
- The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
Should you run into these rules you will either need to cancel the preexisting conflicting order or use Unmanaged orders.
Comment