DislikedHi BestTraderEv, sorry, maybe timer is the wrong word. I just need to be able to specify a StartHour and a StopHour to the EA. For example if StartHour is set to "09" and StopHour is set to "17" then EA must trade from 09:00 to 17:00. Once 17:00 is reached then EA must continue to trade till all trades are closed and then stop trading. Trading will then only start at 09 again. Thank youIgnored
Attached File(s)
Untested, but the closing part should work independent of the Start/Stop Hours.
Though, I am not sure what exactly you mean by:
"then EA must continue to trade till all trades are closed" ???
I assumed that you meant that the EA must do the closing part, and not do the opening part.
But, because you weren't precise, I am not sure.
Though, it wouldn't make much sense for the EA to open new trades, because then all trades would never be closed, probably???
But, maybe I'm wrong?
PS. I studied the EA logic a bit more, and it looks like after StopHour it will continue the trading process on the existing first trade. Only new first trades will not be opened, so I guess it should work the way it was meant to work.
.ex4/.ex5 files can't be fixed or modified / I'm not a coder!