ExitLongLimit(Close[0]); EnterShortLimit(NoOfContracts, Close[0]);
But, I read in the documentation that
•A position is open and an order submitted by a non market order exit method (ExitLongLimit() for example) is active and the order is used to open a position in the opposite direction
I'm guessing this is exactly what my code does above, so the EnterShortLimit will be ignored?
Is there any other way I can achieve creating an exit at limit and enter at limit? Or I just have to exit at market and create an entry at limit and there is no way around it?
I'm aware of dangling orders in the case of exiting in limit orders. So, I do have a fail safe that will trigger at a price x ticks away to close any open positions at Market.
Comment