You attach a stop to the limit order. Once the limit order gets filled, the stop activates. If it doesn't get filled, your stop will not be activated.
So, you could do the following:
Short YM @ 9655, with attached auto-stop to cover at 9675
Long YM @ 9520, with attached auto-stop to sell...