BB, THANK YOU! Even I can understand this simple code and it works like a charm. Exactly what the doctor ordered!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I am trying to add a Time Filter to allow trading only during select times. I was refered to a site (http://www.cubesteak.net/2006/08/3-fold-trading-hours-filter-for-ea/) that has what I want to implement, but don't know how to do it.
It says:
"Simply wrap all your EA logic in the call to HourlyFilter()"
and
"Pseudo code for placement in the Start() function is:
if HourlyFilter()
{
PerformEALogic();
}
else return (0);"
I do not know how to go about "wrapping the EA logic".
Can anyone offer suggestions?
Thanks!