I'd like to setup my EA so that it only trades between certain hours of the day. What is the simplest way to do this?
- Coding help
- Get the ticket number of active trade for current symbol
- Implementing Fibonacci Retracement from within an Indicator or EA
mixtermind:
I'd like to setup my EA so that it only trades between certain hours of the day. What is the simplest way to do this?
Nevermind. Got it.
if((Hour()>=10&&Hour()<12)||(Hour()>=15&&Hour()<17)) return(0);

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