Trabalho concluído
Termos de Referência
Ea task 1: ea open a pending order Buy limit at the lowest price among 200 recent bars in 5 minutes chart. Set Tp 10 pips. No Sl.
Ea task 2: ea open a pending order Sell limit at the highest price among 200 recent bars in 5 minutes chart. Set Tp 10 pips. No Sl.
Ea task 3: ea open another pending order Buy limit at 15 pips away from previous Buy limit pending order. So if 1st trade floating loss -15 pips then will trigger another pending Buy limit trade.
Ea task 4: ea open another pending order Sell limit at 15 pips away from previous Sell limit pending order. So if 1st trade floating loss -15 pips then will trigger another pending Sell limit trade.
Ea task 5: When at there are 5 trades hit tp at the same direction (buy), then ea find the highest tp price among the 5 trades. Let say the 5 trades tp price are 1.321, 1.1213, 1.2250, 1.1400, 1.1981. So 1.1400 is the highest tp right? Ea will open a Sell Limit pending order at 1.1400 entry. Set Tp 10 pips. No sl.
Ea task 6: When at there are 5 trades hit tp at the same direction (sell), then ea find the lowest tp price among the 5 trades. Ea will open a BuyLimit pending order at the lowest tp price as entry. Set Tp 10 pips. No sl.
Note : There must always have 2 pending order of Buy Limit. So If trigger 1 buy limit, and left only 1 buy limit pending not yet trigger, then the ea must open another new buy limit pending order which is 15 pips far away from previous buy limit pending order. Do the same to Sell Limit Pending order. Must always has 2 Sell Limit pending order which are not yet trigger.
Note : (all trade use the same lot size) Setting page allow me to set
1) Lot size (default 0.01)
2) Tp pips (default 10 pips)
3) Distant between trade (default 15 pips)
4) Ea task 5 and 6 of the consecutive number of tp to open opposite trade pending order (default 5)