One Trade Per Level

I want to create a strategy to buy at S1, S2, S3 and Sell at R1, R2, R3. I want the strategy to trade only one trade per level.
How do I do this?