Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
Job Description
Write an EA to start the EA and stop the EA at the given input dates and time.
Note:
(a) All times are based on the server time of my trading broker in which the EA is being used
b) You need to display the following on the chart
(1) Current_Server_Time
(2) Last_EA_Start_Time
(3) Last_EA_Stopped_Time
(4) Future_EA_Start_Time
Inputs
(a) EA_Start_Time_Weekly = Sunday 01:00 ( based on the server time of my trading broker) - Start the EA or activate the EA at the EA_Start_Time
(b) Trade_Closing_Time_Weekly_Default= brown time refer attachment
(c) EA_Start_Time_Daily= 00:05
(d) Trade_Closing_Time_Daily_Default=23:59
(e) Trade_Closing_Time_Specific1=September 16th, 15:00 (repeat this input 9 times below)
Trade_Closing_Time_Specific2=November 25, 16th, 15:00
Trade_Closing_Time_Specific3=November 29, 16th, 15:00
Trade_Closing_Time_Specific4=December 19, 16th, 15:00
Trade_Closing_Time_Specific5=December 25, 16th, 15:00
Trade_Closing_Time_Specific6=January 1st, 16:30
Trade_Closing_Time_Specific7=February 2nd, 16:30
Trade_Closing_Time_Specific8=March 10th, 14:00
Trade_Closing_Time_Specific9=
Trade_Closing_Time_Specific10=
Close_Minutes_Before = 10
Write EA to
(A) Start the EA (or) activate the EA at the EA_Start_Time_Weekly if this input is provided
Start the EA (or) activate the EA at the EA_Start_Time_Daily if this input is provided
(b) Stop EA and Close all active trades and pending orders at the given timing below by default
= Trade_Closing_Time_Weekly_Default- Close_Minutes_Before -- > this is by default- (ie. Every week EA will be closed at Friday 20:59-10=Friday 20:49 unless there is an earlier date mentioned in the other specific inputs below)
= Trade_Closing_Time_Daily_Default- Close_Minutes_Before -- > this is by default- (ie. Daily EA will be closed at 23:59-10 = 23:49 unless there is an earlier time on that day mentioned in the other specific inputs below)
(c) Stop EA and Close all active trades and pending orders at all the given 10 specific timings below
= Trade_Closing_Time_Specific1 - Close_Minutes_Before --> this is specific closing time on the specified date only. Eg. September 16th, 15:00 - 10:00 = September 16th, 14:50
= Trade_Closing_Time_Specific2 - Close_Minutes_Before --> this is specific closing time on the specified date only
= Trade_Closing_Time_Specific3 - Close_Minutes_Before --> this is specific closing time on the specified date only
= Trade_Closing_Time_Specific4 - Close_Minutes_Before --> this is specific closing time on the specified date only
= Trade_Closing_Time_Specific5 - Close_Minutes_Before --> this is specific closing time on the specified date only
= Trade_Closing_Time_Specific6 - Close_Minutes_Before --> this is specific closing time on the specified date only
= Trade_Closing_Time_Specific7 - Close_Minutes_Before --> this is specific closing time on the specified date only
= Trade_Closing_Time_Specific8 - Close_Minutes_Before --> this is specific closing time on the specified date only
= Trade_Closing_Time_Specific9 - Close_Minutes_Before --> this is specific closing time on the specified date only
= Trade_Closing_Time_Specific10 - Close_Minutes_Before --> this is specific closing time on the specified date only