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
(1928)
Proyectos
3548
88%
Arbitraje
73
40% / 15%
Caducado
268
8%
Libre
6
Desarrollador 6
Evaluación
(94)
Proyectos
101
41%
Arbitraje
1
0% / 100%
Caducado
4
4%
Libre
7
Desarrollador 7
Evaluación
(2630)
Proyectos
3345
67%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
8
Desarrollador 8
Evaluación
(647)
Proyectos
1295
67%
Arbitraje
84
26% / 49%
Caducado
338
26%
Libre
9
Desarrollador 9
Evaluación
(270)
Proyectos
552
49%
Arbitraje
57
40% / 37%
Caducado
228
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

Información sobre el proyecto

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