Add take profits to an existing script that calculate positons

MQL4 Sripts

Trabajo finalizado

Plazo de ejecución 23 horas
Comentario del Ejecutor
Nice to work, Thanks

Tarea técnica

Hallo,

i have the source code of a script called riskpercentage. It calculates the risk between two lines at the chart in percent of the accountbalance.

I need the option to set two take profits (only edit in the script, no objectlines to move in the chart) :

- the distance to both take profits, that i can edit in the script, have to be in R (1R = Distance between opening Price and stop)

 for example : first target 0,8 R, second target 3 R

- i need the possibility to edit in percent how much of the position will be closed at the take profits :

for example: I have a positon of 0,27 (27 microlots) an i want to close 30% of them at the first take profit (= 8) an the rest (19) at the second take profit.


Best regards


Marcel




Han respondido

1
Desarrollador 1
Evaluación
(5)
Proyectos
19
26%
Arbitraje
6
17% / 83%
Caducado
6
32%
Libre
2
Desarrollador 2
Evaluación
(40)
Proyectos
58
22%
Arbitraje
10
10% / 70%
Caducado
13
22%
Libre
3
Desarrollador 3
Evaluación
(5)
Proyectos
21
24%
Arbitraje
0
Caducado
5
24%
Libre
4
Desarrollador 4
Evaluación
(128)
Proyectos
236
65%
Arbitraje
30
37% / 23%
Caducado
49
21%
Libre
5
Desarrollador 5
Evaluación
(1858)
Proyectos
3462
88%
Arbitraje
73
40% / 15%
Caducado
265
8%
Trabaja
6
Desarrollador 6
Evaluación
(94)
Proyectos
101
41%
Arbitraje
1
0% / 100%
Caducado
4
4%
Libre
7
Desarrollador 7
Evaluación
(2441)
Proyectos
3076
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Libre
8
Desarrollador 8
Evaluación
(647)
Proyectos
1295
67%
Arbitraje
84
26% / 49%
Caducado
338
26%
Libre
9
Desarrollador 9
Evaluación
(266)
Proyectos
540
50%
Arbitraje
55
40% / 36%
Caducado
224
41%
Trabaja
10
Desarrollador 10
Evaluación
(9)
Proyectos
18
28%
Arbitraje
2
50% / 50%
Caducado
6
33%
Libre
11
Desarrollador 11
Evaluación
(17)
Proyectos
21
48%
Arbitraje
3
0% / 100%
Caducado
10
48%
Libre
Solicitudes similares
I currently have a license code that connects to my web server, and I add the account number, client name, and expiration date. I’d like something more automated. Currently I allow clients 10 licenses, but adding for them on my side can get exhausting. I’d like a better solution for myself and clients

Información sobre el proyecto

Presupuesto
50- USD
Plazo límite de ejecución
de 2 a 5 día(s)