forexCoder:
Easiest way would be to set global datetime variable that is set to the date after which you allow the next trade to execute.
You'd need to check the current bar, current open orders and orders history to check when the last trade was exectued in order to correctly set the above variable.
Can i use instuction from this topic: https://www.mql5.com/en/forum/132473 ? (my EA trade on D1 timeframe too)
What WHRoeder posted in last post will work for you with a slight modification.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all, how set my ea when i need enter to position only once per bar. 1bar/1 trade (sell or buy)
If will be take SL or TP next enter to trade in same bar must be prohibited. Thank you.