工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Need a time EA to automatically close all trade by a specific time and also once a timer has expired
The EA will close all trades automatically at specific time each day (hours:minutes:seconds) or by the expiry of a timer
EA automatically close trades daily at your specified time. For example if you set EA to close all trades at 13:30:30 , all open trades will be closed automatically at that time
The EA should have also another function setting that will close executed open trade within an amount of minutes, for example if I set 60 minute expiry timer in the parameter when a trade is open it will be automatically closed once 60 minute has been reached, the value will be based on seconds
The EA should also have an option to choose the days it will manage those trades
Parameters of the EA should be:
Use Time exit: True/False
Time to close trade: 15:00:00
Use Expiry timer exit : True/False
Minute/seconds timer to close trade: the value should be in seconds for example 1800 value would be 30minute, 60 minute 3600 seconds and so on
Magic number:
Manage all pairs: true/false ( the EA will manage all pairs)
Manage specific pair: EURUSD ( the EA will only manage this specific pair)
Manage trade Monday: True/False
Manage trade Tuesday: True/False
Manage trade Wednesday: True/False
Manage trade Thursday: True/False
Manage trade Friday: Trade/False
The EA should have a nice GUI which shows the time/seconds when trade/trades will be closed ( for example trades will be closed 2022.09.20 15:00:00 , also show how many seconds left before the trade/trades is closed , it should also display the current broker time
EA must also support non-Forex pairs/instruments like Indices, Commodities, etc.
Important on the EA startup it could be that the time to close the trades has passed already. For example EA is set to close the trades at 08:00:00 and EA is launched at 09:30:00. In this case EA will check if there are any open trades that should have been closed and ask if you want them to be closed or not. If you answer YES, then obviously EA will close these trades. If you answer NO, the EA will leave those trades running until next exit time.