I would like to code a strategy that places two limit entry orders if it is flat, e.g. the current price is 1000 and the strategy is flat then it should place a enter long limit order at 980 and a enter short limit order at 1020. If one of the enter orders is filled the other order should be cancelled.
How can this be achieved?
Thank you for an answer in advance.
Best regards

Comment