Add take profits to an existing script that calculate positons

MQL4 Scripts

Job finished

Execution time 23 hours
Feedback from employee
Nice to work, Thanks

Specification

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




Responded

1
Developer 1
Rating
(5)
Projects
19
26%
Arbitration
6
17% / 83%
Overdue
6
32%
Free
2
Developer 2
Rating
(40)
Projects
58
22%
Arbitration
10
10% / 70%
Overdue
13
22%
Free
3
Developer 3
Rating
(5)
Projects
21
24%
Arbitration
0
Overdue
5
24%
Free
4
Developer 4
Rating
(128)
Projects
236
65%
Arbitration
30
37% / 23%
Overdue
49
21%
Free
5
Developer 5
Rating
(1928)
Projects
3548
88%
Arbitration
73
40% / 15%
Overdue
268
8%
Free
6
Developer 6
Rating
(94)
Projects
101
41%
Arbitration
1
0% / 100%
Overdue
4
4%
Free
7
Developer 7
Rating
(2630)
Projects
3345
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
8
Developer 8
Rating
(647)
Projects
1295
67%
Arbitration
84
26% / 49%
Overdue
338
26%
Free
9
Developer 9
Rating
(270)
Projects
552
49%
Arbitration
57
40% / 37%
Overdue
228
41%
Working
10
Developer 10
Rating
(9)
Projects
18
28%
Arbitration
2
50% / 50%
Overdue
6
33%
Free
11
Developer 11
Rating
(17)
Projects
21
48%
Arbitration
3
0% / 100%
Overdue
10
48%
Free

Project information

Budget
50- USD
Deadline
from 2 to 5 day(s)