How to I program my robot to wait till the next bar before placing an additional order

 

How do I program my robot to wait until the next bar before placing an additional orders.

Example: If I tell the robot to place a short order when the fast ma goes above the slow ma, I only want it to place one sell order.

But I want it to place an additional sell order if the fast ma is still above the slow ma, but only after the next bar forms and is in process.

Any ideas?

Reason: