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
等级
(1928)
项目
3548
88%
仲裁
73
40% / 15%
逾期
268
8%
空闲
6
开发者 6
等级
(94)
项目
101
41%
仲裁
1
0% / 100%
逾期
4
4%
空闲
7
开发者 7
等级
(2630)
项目
3345
67%
仲裁
77
48% / 14%
逾期
342
10%
空闲
发布者: 1 代码
8
开发者 8
等级
(647)
项目
1295
67%
仲裁
84
26% / 49%
逾期
338
26%
空闲
9
开发者 9
等级
(270)
项目
552
49%
仲裁
57
40% / 37%
逾期
228
41%
工作中
10
开发者 10
等级
(9)
项目
18
28%
仲裁
2
50% / 50%
逾期
6
33%
空闲
11
开发者 11
等级
(17)
项目
21
48%
仲裁
3
0% / 100%
逾期
10
48%
空闲

项目信息

预算
50- USD
截止日期
 2  5 天