https://www.mql5.com/en/search#!keyword=close%20all%20mql5
go to website search for this
code in the example of TRADE_ACTION_CLOSE_BY will help you, follow the link:
Documentation on MQL5: Constants, Enumerations and Structures / Trade Constants / Trade Operation Types
- www.mql5.com
Trade Operation Types - Trade Constants - Constants, Enumerations and Structures - 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
can someone please send me a mq5 code where all current opened trades close when daily total target profit has been reached(as an input) ,then the Ea opens new trades the next day !
thanks .