Add take profits to an existing script that calculate positons

MQL4 스크립트

작업 종료됨

실행 시간 23 시간
피고용인의 피드백
Nice to work, Thanks

명시

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




응답함

1
개발자 1
등급
(5)
프로젝트
19
26%
중재
6
17% / 83%
기한 초과
6
32%
무료
2
개발자 2
등급
(40)
프로젝트
58
22%
중재
10
10% / 70%
기한 초과
13
22%
무료
3
개발자 3
등급
(5)
프로젝트
21
24%
중재
0
기한 초과
5
24%
무료
4
개발자 4
등급
(128)
프로젝트
236
65%
중재
30
37% / 23%
기한 초과
49
21%
무료
5
개발자 5
등급
(1859)
프로젝트
3463
88%
중재
73
40% / 15%
기한 초과
265
8%
무료
6
개발자 6
등급
(94)
프로젝트
101
41%
중재
1
0% / 100%
기한 초과
4
4%
무료
7
개발자 7
등급
(2441)
프로젝트
3076
66%
중재
77
48% / 14%
기한 초과
340
11%
무료
8
개발자 8
등급
(647)
프로젝트
1295
67%
중재
84
26% / 49%
기한 초과
338
26%
무료
9
개발자 9
등급
(266)
프로젝트
540
50%
중재
55
40% / 36%
기한 초과
224
41%
작업중
10
개발자 10
등급
(9)
프로젝트
18
28%
중재
2
50% / 50%
기한 초과
6
33%
무료
11
개발자 11
등급
(17)
프로젝트
21
48%
중재
3
0% / 100%
기한 초과
10
48%
무료
비슷한 주문
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

프로젝트 정보

예산
50- USD
기한
에서 2  5 일