Let's say I have a short position with a stop loss and profit target.
I get a buy signal on the current bar and want to go long if price rises above a certain trigger price.
However if I use EnterLongStop() the order is ignored because of the internal rules (since I have existing buy orders -- the stop loss and profit target -- in the same direction).
It works if I buy at market but I don't want to buy at market.
Clearly, I can submit an order to close the short position, and then submit my EnterLongStop() order on the next bar, but this means there's a delay in submitting it.
What is the cleanest way of exiting a short position with a stoploss and entering a buy stop order on the same bar?
Comment