Add take profits to an existing script that calculate positons

MQL4 Scripts

Tâche terminée

Temps d'exécution 23 heures
Commentaires de l'employé
Nice to work, Thanks

Spécifications

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




Répondu

1
Développeur 1
Évaluation
(5)
Projets
19
26%
Arbitrage
6
17% / 83%
En retard
6
32%
Gratuit
2
Développeur 2
Évaluation
(40)
Projets
58
22%
Arbitrage
10
10% / 70%
En retard
13
22%
Gratuit
3
Développeur 3
Évaluation
(5)
Projets
21
24%
Arbitrage
0
En retard
5
24%
Gratuit
4
Développeur 4
Évaluation
(128)
Projets
236
65%
Arbitrage
30
37% / 23%
En retard
49
21%
Gratuit
5
Développeur 5
Évaluation
(1928)
Projets
3548
88%
Arbitrage
73
40% / 15%
En retard
268
8%
Gratuit
6
Développeur 6
Évaluation
(94)
Projets
101
41%
Arbitrage
1
0% / 100%
En retard
4
4%
Gratuit
7
Développeur 7
Évaluation
(2630)
Projets
3345
67%
Arbitrage
77
48% / 14%
En retard
342
10%
Gratuit
Publié : 1 code
8
Développeur 8
Évaluation
(647)
Projets
1295
67%
Arbitrage
84
26% / 49%
En retard
338
26%
Gratuit
9
Développeur 9
Évaluation
(270)
Projets
552
49%
Arbitrage
57
40% / 37%
En retard
228
41%
Travail
10
Développeur 10
Évaluation
(9)
Projets
18
28%
Arbitrage
2
50% / 50%
En retard
6
33%
Gratuit
11
Développeur 11
Évaluation
(17)
Projets
21
48%
Arbitrage
3
0% / 100%
En retard
10
48%
Gratuit

Informations sur le projet

Budget
50- USD
Délais
de 2 à 5 jour(s)