Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
Hi!
I want a some simple Grid-style EA.
Please, let me know your Price, and needed time.
I hope you have some experiences with this type of coding (Grid).
For the buy/sell condition, and some more detail(if needed) will be given to the chosen Coder.
/////////////// The Logic: (please see the attached Picture.) /////////////////
The 4 horizontal Lines are from above: EP+DD, EP, EP-DD, EP-2*DD.
EP = (the 1st) Entry Price, DD = Distance, say 100 Pip.
If (buy_condition) then buy with Lotsize = Lot1. Let entry price = EP; (A)
If executed, we set pending Orders TP = EP+DD; SL = EP–DD;
If ended with TP, then we wait next buy or sell condition and repeat the Process. (a1)
Else if ended with SL, then open new sell at this SL Price = EP-DD, Lotsize = Lot2. (B)
If executed, we set pending Orders TP = EP – 2*DD; SL = EP;
If this Lot2 hit TP then we wait next buy or sell condition and repeat the Process. (d1)
Else if ended with SL, then open new buy at this SL Price = EP, Lotsize = Lot3. (C)
If executed, we set pending Orders TP = EP+DD; SL = EP-DD;
If this Lot3 hit TP then we wait next buy or sell condition and repeat the Process. (b1 or c1)
Else if ended with SL, then open new sell at this SL Price = EP-DD, Lotsize = Lot4. (D)
If executed, we set pending Orders TP = EP-2*DD; SL = EP;
And so on. And the case of 1st Entry = sell is symmetric.
Buy_Cond, Sell_Cond: It will be simple, but use MTF: D1 and Current TF.
Some Inputs:
l Lot1, … Lot10: Lot sizes.
l Start_Time, End_Time: These are Broker Time(= Time of my Meta4 Platform). We enter the 1st buy or sell only between these times.
These times do not restrict our Lot2-, Lot3-, … Trading.
l Max_Cnt(5): if Max_Cnt == 5, then we trade only up to Lot5 entering. This Lot5 entering has also TP, and SL.
We let it hit his TP or SL and then wait next buy or sell signal and repeat the process from the beginning(with Lot1).
l Pause_Time(60): Say, Pause_Time == 60. After we hit the TP, or close the Max_Cnt-th Trading, we wait at least 60 minutes for the next 1st Entering.
Thank you for reading.