MOO/MOC and parked orders

 
Hello,

This was probably asked before, but I couldn't find information online, which I'd be able to put in practice.

How can I setup time based orders in MT4, like MOO or MOC. Maybe not exactly the second market opens or closes, but more or less as well as time stops (say close a trade after X hours)?

I guess some additional script or EA is needed.

Thanks in advance.
 

Found this EA: https://www.mql5.com/en/code/10528

Works so far, just one drawback - you can't set an order a few days in advance, there's only time setting, no date.

Time trader
Time trader
  • www.mql5.com
There are several theories out there about market movements at certain times e.g. during opening of trading for different currencies etc. This trading robot is designed to do just that and can be used for unlimited time related strategies that involve scalping, hedging or long term trades. The EA can also be used to discover time based market...
Reason: