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

MQL4 Asesores Expertos Sripts

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
Great to work with, recommended

Tarea técnica

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 




Han respondido

1
Desarrollador 1
Evaluación
(137)
Proyectos
167
35%
Arbitraje
11
91% / 0%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(23)
Proyectos
45
20%
Arbitraje
25
28% / 48%
Caducado
12
27%
Libre
3
Desarrollador 3
Evaluación
(45)
Proyectos
59
14%
Arbitraje
31
26% / 52%
Caducado
34
58%
Libre
4
Desarrollador 4
Evaluación
(308)
Proyectos
553
35%
Arbitraje
79
32% / 42%
Caducado
200
36%
Trabajando
5
Desarrollador 5
Evaluación
(180)
Proyectos
233
20%
Arbitraje
21
43% / 19%
Caducado
0
Trabaja

Información sobre el proyecto

Presupuesto
35+ USD