how to limit an order a day

 
how to limit an order a day, 
I placed an order today and sold it today,and I dont want it to place another order today again.
how to write it?
thanks

 

Either record the date in a Global Variable and check it before opening a new trade

Obviously, if the GV is today, don't open a trade.

Or  loop through open and closed orders and check OrderOpenTime. If one is today, don't open a trade 

 
thanks a lot I will give a try.
Reason: