JUST 2 ORDER EACH DAY. One Delete, Other one is Open Positions.

 

I just started writing code in mql5.

everyday i am trying to write an EA that will only create BUY and SELL Orders.

and when one of the Orders runs, it deletes the other.

If there is a today deleted Order in History, I want it not to place a new order.

This means that it cannot place new orders until tomorrow.

IF LAST HISTORY ORDER DATE < BEFORE TODAY continue.

Thank you.