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
- www.mql5.com
HistorySelect - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
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