What is the best way to place orders when there is no open position to modify?
I understand the code
newOrder = pos.SubmitOrder(newOrderSettings);
This places an order to modify a current position pos. But if OpenPositions == 0, this doesn't run during a simulation. How do I just submit an order if there is no existing position open?
Also, is it possible to just define two different orders (in oppositie directions), and submit them both, then let 'pos' be equal to the one that gets filled?