EA "How to command EA to not trade today if there was a trade yesterday that closed today"

 
Anyone know how to command EA to not trade today if there was a trade from other day that closed today.
 

Many people. They have read the documentation.
          Only ask questions with yes/no answers if you want “yes” or “no” as the answer.

 

Check this link. And create a function to check if there is a closed trade today.

https://www.mql5.com/en/docs/trading/historyselect


Also check this link for DEAL_ENTRY_OUT

https://www.mql5.com/en/docs/constants/tradingconstants/dealproperties

Documentation on MQL5: Trade Functions / HistorySelect
Documentation on MQL5: Trade Functions / HistorySelect
  • www.mql5.com
HistorySelect - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5