Trabajo finalizado
Tarea técnica
Hi,
I need an EA it will work according to given detail.
Inputs:
Lot size: .10
Increase lot size: .10
Stop loss: 15
TP: 80
Repeat Order: true
Trail stop: True/false
Trail Steps: 1/2
Slippage: 5
Equity Stop: 1000
As we apply it will take 2 position 1 sell and 1 buy. With input stop loss and TP.
According to inputs suppose we apply at GBPUSD the scenario will be as given below.
Current price 1.5015
1 lot buy @ 1.5017 SL. 1.5002 TP. 1.5097
1 lot sell @ 1.5015 SL. 1.5030 TP. 1.4935
So in this way if mkt moves up sell entry stop will meet @ 1.5030 and it will be holding only buy entry.
But if trail stop is False then it will not trail the stop if Trailstop is=True then will check trail stepif trail step=1 stop of sell entry will meet stop of buy entry will be switched to break even (1.5017 when mkt will be 1.5030) and it will trail only once to break even that’s it. but if trail step is= 2 then it will trail once again from 1.5017 to 1.5032 when mkt will reach at 1.5047 and after that stop will be fixed.
In case after hiting stop of sell entry mkt comes back down and hit the stop of buy entry @ 1.5017 or 1.5032 (bcoz stop was trail) then EA will again take 2 entries again 1 buy and 1 sell same as it did before and will keep on repeating until TP will not meet.
If increase lot size is 0 then it will reset with same lot size but if increase lot size is 1 then when it will reset after hiting stop of sell and buy both it will add 1 lot more each time reset after hiting stop so 2nd time it will start lot size of 2 and will keep on increasing until it will not hit TP. When mkt will hit TP then it will again start with lot size of 1 (as input).
When TP will meet then if Repat order (input) is true then it will reset and keep on trading but if its false then after TP it will stop trading.
Thnks