Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
EA will open pending order of buy stop and sell stop at designated time. When one of the pending order triggered, the other pending order will be deleted.
Next the order will be close at Take profit point or at sell stop point or trader can choose to continue the order using hedging strategy or averaging strategy. Trader can also choose to close all order and pending order at designated time no matter the profit are positive or negative.
Hedging Example:
Setting Parameter:
EA Name:
Magic Number:
MaxSpread
OpenPO_Time:
PO_buystop_step:
PO_sellstop_step:
Lot:
Autolot: T/F
Lot Divider: 10,000
TP: 25
SL: 55
Use Trailing Stop: T/F
TrailingStart: 15
TrailingStop: 10
Continue_UseHedging: T/F (first order is not hedging order all TP/SL/trailing stop are followed after above parameter, below parameter is for hedging order or starts from the second order, it is also very important in order the hedging work, when it hits TP it must as well hit the SL of the previous orders, in other words when it hit all SL it will also hit all TP. exception if trader intention to set SL and TP differently not at single point)
H_Step: 25
1st_multiplier: 2
Next_multiplier: 1
H_TP: 30
H_SL: 50
H_MaxLevel:
Continue_UseAveraging: T/F (After one of pending ordered triggered and price go the wrong direction for certain pips, orders will be continued by averaging, TP at average price+TP point)
CloseAllOrder= False; Close all current running order
Start_Averaging: 2 (Start open lot multiplication at order -x) For example with lotexponent (2): 1st order: 0.1 lot, 2nd order: 0.1 lot, 3rd order: 0.1 lot, 4rd order: 0.2 lot, 5th order: 0.4 lot, .etc
Closeallsellbefore_lvl: 9 (1 pip before 9th level of martingale opened, close all sell orders)
CloseallBuybefore_lvl: 9 (1 pip before 9th level of martingale opened, close all buy orders)
PipStep: 10
LotExponent: 1.6
Candle_Filter: 5 (open new level of averaging/martingale in new candle formation, one candle one order)
UseTP_Percent: True/False
Percent Profit: 0.5 (profit/balance X 100, if more than 0.5% then close all orders)
UseCloseTime: T/F (At designated time below, close all running order and/or pending orders, and starts again at open time
CloseTime: 23:59
EA Protection
int Account_Number =
input int Password =
string Account_Name =
string Expired = "2020.12.01 00:00";