I have a situation in which I cannot seem to figure out how to exit a position. Here is the scenario: I enter a long position on stop, and the entry triggers. Therefore I am now long one contract. On the next bar, I get a signal stating that I should reverse my position to a short, 1 contract. Okay. I execute the following
entryOrder = EnterShortStop(0, true, DefaultQuantity, entryPrice, "Long->ShortEntryReversal");
So far so good. Here is the issue. The short entry does not trigger because the stop price is not reached. As far as the strategy is concerned, however, I am still long. Is there a way to kill the long position? Also, is there a way to exit a position with a market order when the position was entered on stop? Thank you.
Comment