Quote:
Originally Posted by grinding123
can anyone give me the code for adding set trading times to an ea as i only what it to trade for a few hwers a day, not all day
thank you all for your help
|
If your time from 10am to 5pm, put this string at the beginning of start block:
if (TimeHour(TimeCurrent())<10||TimeHour(TimeCurrent( ))>=17)return(0);