Alternating Trades.

 
You will meed to handle it yourself. This code logic that you wrote will handle it