EnterShortStop(1, LTarget, "ShortL");
EnterShortLimit(1, PTarget, "ShortP");
Price is first going up so I expect the EnterShortLimit to be hit first. However, it is not executed. Some time later the EnterShortStop IS executed however.
Is there a problem having these two simultaneously?
EDIT:
I see now that only the first one is executed. If I swap them, i.e.
EnterShortLimit(1, PTarget, "ShortP");
EnterShortStop(1, LTarget, "ShortL");
then only the EnterShortLimit is executed. So apparently one order cancels the other?
But I don't understand why that should be.... ?

Comment