Add take profits to an existing script that calculate positons

MQL4 Script

Lavoro terminato

Tempo di esecuzione 23 ore
Feedback del dipendente
Nice to work, Thanks

Specifiche

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




Con risposta

1
Sviluppatore 1
Valutazioni
(5)
Progetti
19
26%
Arbitraggio
6
17% / 83%
In ritardo
6
32%
Gratuito
2
Sviluppatore 2
Valutazioni
(40)
Progetti
58
22%
Arbitraggio
10
10% / 70%
In ritardo
13
22%
Gratuito
3
Sviluppatore 3
Valutazioni
(5)
Progetti
21
24%
Arbitraggio
0
In ritardo
5
24%
Gratuito
4
Sviluppatore 4
Valutazioni
(128)
Progetti
236
65%
Arbitraggio
30
37% / 23%
In ritardo
49
21%
Gratuito
5
Sviluppatore 5
Valutazioni
(1928)
Progetti
3548
88%
Arbitraggio
73
40% / 15%
In ritardo
268
8%
Gratuito
6
Sviluppatore 6
Valutazioni
(94)
Progetti
101
41%
Arbitraggio
1
0% / 100%
In ritardo
4
4%
Gratuito
7
Sviluppatore 7
Valutazioni
(2630)
Progetti
3345
67%
Arbitraggio
77
48% / 14%
In ritardo
342
10%
Gratuito
Pubblicati: 1 codice
8
Sviluppatore 8
Valutazioni
(647)
Progetti
1295
67%
Arbitraggio
84
26% / 49%
In ritardo
338
26%
Gratuito
9
Sviluppatore 9
Valutazioni
(270)
Progetti
552
49%
Arbitraggio
57
40% / 37%
In ritardo
228
41%
In elaborazione
10
Sviluppatore 10
Valutazioni
(9)
Progetti
18
28%
Arbitraggio
2
50% / 50%
In ritardo
6
33%
Gratuito
11
Sviluppatore 11
Valutazioni
(17)
Progetti
21
48%
Arbitraggio
3
0% / 100%
In ritardo
10
48%
Gratuito

Informazioni sul progetto

Budget
50- USD
Scadenze
da 2 a 5 giorno(i)