Add take profits to an existing script that calculate positons

MQL4 Komut dosyaları

İş tamamlandı

Tamamlanma süresi: 23 saat
Geliştirici tarafından geri bildirim
Nice to work, Thanks

İş Gereklilikleri

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




Yanıtlandı

1
Geliştirici 1
Derecelendirme
(5)
Projeler
19
26%
Arabuluculuk
6
17% / 83%
Süresi dolmuş
6
32%
Serbest
2
Geliştirici 2
Derecelendirme
(40)
Projeler
58
22%
Arabuluculuk
10
10% / 70%
Süresi dolmuş
13
22%
Serbest
3
Geliştirici 3
Derecelendirme
(5)
Projeler
21
24%
Arabuluculuk
0
Süresi dolmuş
5
24%
Serbest
4
Geliştirici 4
Derecelendirme
(128)
Projeler
236
65%
Arabuluculuk
30
37% / 23%
Süresi dolmuş
49
21%
Serbest
5
Geliştirici 5
Derecelendirme
(1858)
Projeler
3462
88%
Arabuluculuk
73
40% / 15%
Süresi dolmuş
265
8%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(94)
Projeler
101
41%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
4
4%
Serbest
7
Geliştirici 7
Derecelendirme
(2441)
Projeler
3076
66%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
340
11%
Serbest
8
Geliştirici 8
Derecelendirme
(647)
Projeler
1295
67%
Arabuluculuk
84
26% / 49%
Süresi dolmuş
338
26%
Serbest
9
Geliştirici 9
Derecelendirme
(266)
Projeler
540
50%
Arabuluculuk
55
40% / 36%
Süresi dolmuş
224
41%
Çalışıyor
10
Geliştirici 10
Derecelendirme
(9)
Projeler
18
28%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
6
33%
Serbest
11
Geliştirici 11
Derecelendirme
(17)
Projeler
21
48%
Arabuluculuk
3
0% / 100%
Süresi dolmuş
10
48%
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
50- USD
Son teslim tarihi
from 2 to 5 gün