hi, i would like to add a delay in seconds from the time my ea should open
example: my expert now finds an opportunity but opens after a few seconds
Thanks
Sleep(1000);
Hello. 1000 makes a second as said in the doc
Documentation on MQL5: Common Functions / Sleep
- www.mql5.com
Sleep - Common Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
- Sleep does not work in the tester.
- Remember the delay time (= current time + nSeconds) in a global/static variable. Return for a new tick, ignore those before the delay time.
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