Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
I need an EA which will place multiple BUY STOP and SELL STOP orders based on Input Variables as given below. It should also be able to open trades only on specific time range.
Input Values
input int Max_A_ordersCount = 1; //Max number of orders A type (0 to disable)
input double A_Lots_Size = 0.01; //A lots size
input double A_Lots_Multiplier = 1.0; //A lots multiplier
input int Average_A_StepPoints = 100; //Average A step points
input int Max_B_ordersCount = 1; //Max number of orders B type (0 to disable)
input double B_Lots_Size = 0.01; //B lots size
input double B_Lots_Multiplier = 3.0; //B lots multiplier
input int Average_B_StepPoints = 200; //Average B step points
input int Max_C_ordersCount = 1; //Max number of orders C type (0 to disable)
input double C_Lots_Size = 0.01; //C lots size
input double C_Lots_Multiplier = 5.0; //C lots multiplier
input int Average_C_StepPoints = 100; //Average C step points
input int Max_D_ordersCount = 2; //Max number of orders D type (0 to disable)
input double D_Lots_Size = 0.01; //D lots size
input double D_Lots_Multiplier = 6.0; //D lots multiplier
input int Average_D_StepPoints = 200; //Average D step points
input int Max_E_ordersCount = 3; //Max number of orders E type (0 to disable)
input double E_Lots_Size = 0.01; //E lots size
input double E_Lots_Multiplier = 5.0; //E lots multiplier
input int Average_E_StepPoints = 300; //Average E step points
input string TimePeriodToLetEaWork = "15:00:00-23:59:59";
input string Comment = "Finovics EA";
Eg.
Suppose I set this EA On XAUUSD the then it will only place order between "15:00:00-23:59:59" MT4 time zone
Now suppose at this time XAUUSD rate is 1800
1st order A will place MARKET order BUY AND SELL ( hedge ) at 1800 of 0.01 qty Comment " Finovics EA A1 BUY" & " Finovics EA A1 SELL"
Then there will be multiple BUY STOP AND SELL STOP based on Input
BUY STOP 1802 of 0.03 Comment " Finovics EA B1 BUY" : 200 gap as given in input of B (Average_B_StepPoints)
BUY STOP 1803 of 0.05 Comment " Finovics EA C1 BUY"
BUY STOP 1805 of 0.06 Comment " Finovics EA D1 BUY"
BUY STOP 1807 of 0.03 Comment " Finovics EA D2 BUY"
BUY STOP 1810 of 0.03 Comment " Finovics EA E1 BUY"
BUY STOP 1813 of 0.03 Comment " Finovics EA E2 BUY"
BUY STOP 1816 of 0.03 Comment " Finovics EA E2 BUY"
SELL STOP 1798 of 0.03 Comment " Finovics EA B1 SELL" : 200 gap as given in input of B
SELL STOP 1797 of 0.05 Comment " Finovics EA C1 SELL "
SELL STOP 1795 of 0.06 Comment " Finovics EA D1 SELL "
SELL STOP 1793 of 0.03 Comment " Finovics EA D2 SELL "
SELL STOP 1790 of 0.03 Comment " Finovics EA E1 SELL "
SELL STOP 1787 of 0.03 Comment " Finovics EA E2 SELL"
SELL STOP 1784 of 0.03 Comment " Finovics EA E2 SELL "