Time Filter Code Sample =>how
can i add timefilter in ea
how can i add timefilter in ea
- 2020.02.14
- www.mql5.com
can someone help me to add time filter in my ea...
Here's a quick and simple solution:
datetime dtnow=TimeCurrent(); if(dtnow>=StringToTime("03:00") && dtnow<StringToTime("09:00")) { Process(); }
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 learning MQL5,
i have a small expert that buys with a tp and sl,
i want the ea to buy only when the time is between input time 1 and input time 2,
it s simple, you only have 1 trade at a time and once closed by tp or sl open a new one if the time is still in the range
but still the ea is buying in all hours of the day
need help
this is the code: