Add take profits to an existing script that calculate positons

MQL4 Scripts

Trabalho concluído

Tempo de execução 23 horas
Comentário do desenvolvedor
Nice to work, Thanks

Termos de Referência

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




Respondido

1
Desenvolvedor 1
Classificação
(5)
Projetos
19
26%
Arbitragem
6
17% / 83%
Expirado
6
32%
Livre
2
Desenvolvedor 2
Classificação
(40)
Projetos
58
22%
Arbitragem
10
10% / 70%
Expirado
13
22%
Livre
3
Desenvolvedor 3
Classificação
(5)
Projetos
21
24%
Arbitragem
0
Expirado
5
24%
Livre
4
Desenvolvedor 4
Classificação
(128)
Projetos
236
65%
Arbitragem
30
37% / 23%
Expirado
49
21%
Livre
5
Desenvolvedor 5
Classificação
(1859)
Projetos
3463
88%
Arbitragem
73
40% / 15%
Expirado
265
8%
Livre
6
Desenvolvedor 6
Classificação
(94)
Projetos
101
41%
Arbitragem
1
0% / 100%
Expirado
4
4%
Livre
7
Desenvolvedor 7
Classificação
(2441)
Projetos
3076
66%
Arbitragem
77
48% / 14%
Expirado
340
11%
Livre
8
Desenvolvedor 8
Classificação
(647)
Projetos
1295
67%
Arbitragem
84
26% / 49%
Expirado
338
26%
Livre
9
Desenvolvedor 9
Classificação
(266)
Projetos
540
50%
Arbitragem
55
40% / 36%
Expirado
224
41%
Trabalhando
10
Desenvolvedor 10
Classificação
(9)
Projetos
18
28%
Arbitragem
2
50% / 50%
Expirado
6
33%
Livre
11
Desenvolvedor 11
Classificação
(17)
Projetos
21
48%
Arbitragem
3
0% / 100%
Expirado
10
48%
Livre
Pedidos semelhantes
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

Informações sobre o projeto

Orçamento
50- USD
Prazo
de 2 para 5 dias