EnterShort(orderSize, "");
ExitShortLimit(orderSize,Close[0]-tickNum*tickMult, "", "");
I enabled TraceOrders, and I received output messages saying that I had not entered a position, therefore, ExitShortLimit is not doing anything.
The EnterShort task does not seem to be blocking, however, I would like to create a ExitShortLimit order right after a position is entered.
Is there a way to create an ExitShortLimit order immediately after a position is entered?
Also, is there a way for the strategy to know what the execution price is? The EnterShort task will enter a position at an unknown (market) price, but I would like to track this after execution.
Thanks!

Comment