Create an EA to close half of trade when profit hits specific amount per lot

MQL4 Experten Skripte

Auftrag beendet

Ausführungszeit 2 Tage
Bewertung des Kunden
Great to work with, recommended

Spezifikation

Hi, 

So I want it to automatically close a trade (Partially) if the profit per lot hits a specific number.


Like if I have a trade open with 0.06 lots if profit hits $5 per 0.01 lot (total $30) then close half trade (AUTOMATCALLY for any open trade)

so An order should automatically close at Given TP or partially close when it hits $5 per 0.01 lot in profit (whichever comes first).


I want it to have 2 levels, first level will close xx% of of trade when it it hits $yy per 0.01 lots and second level will close the rest EXCEPT the last 0.01 lot at a specific $zz per 0.01 lot. (after the second level is Triggered the order should have only 0.01 lot left open). 


xx, yy, zz are variables I should be able to set ( xx - percentage of order closure in step one, yy, zz - profit per 0.01 lot in both steps)


There should be an option to only enable step 1 or only step 2 or both. (I should be able to use only 1 rule or both rules). 

This should apply to all orders opened in the trading account. 

Also I use another EA to copy signals (open , close or edit trades) from telegram, but I don't think this should be a problem as you can run more than 1 EA in one account right?


Thanks, let me know if you have any questions. 


-Syed 




Bewerbungen

1
Entwickler 1
Bewertung
(137)
Projekte
167
35%
Schlichtung
11
91% / 0%
Frist nicht eingehalten
0
Frei
2
Entwickler 2
Bewertung
(23)
Projekte
45
20%
Schlichtung
25
28% / 48%
Frist nicht eingehalten
12
27%
Frei
3
Entwickler 3
Bewertung
(45)
Projekte
59
14%
Schlichtung
31
26% / 52%
Frist nicht eingehalten
34
58%
Frei
4
Entwickler 4
Bewertung
(318)
Projekte
565
35%
Schlichtung
82
30% / 45%
Frist nicht eingehalten
204
36%
Arbeitet
5
Entwickler 5
Bewertung
(205)
Projekte
266
21%
Schlichtung
24
50% / 17%
Frist nicht eingehalten
0
Arbeitet

Projektdetails

Budget
35+ USD