工作已完成
执行时间3 分钟
客户反馈
Compliments to Ivand for his work. His work was quick, accurate for a reasonable price. He also helped me with the running of the script. Would definitely recommend him as a EA programmer to others.
指定
Hallo,
I want to select the last 30 orders form my EA with the magicnumber 999999 in MQL4. Currently my code is like this which doesnt account for the MagicNumber:
OrderSelect(OrdersHistoryTotal()-30,SELECT_BY_POS,MODE_HISTORY); double G30 = OrderProfit(); if(G30 > 0) W ++; if(G30 == 0) G30 = 0.0001; if(G30 > 0) Wins = Wins + G30; if(G30 < 0) Loss = Loss + G30; OrderSelect(OrdersHistoryTotal()-29,SELECT_BY_POS,MODE_HISTORY); double G29 = OrderProfit(); if(G29 > 0) W ++; if(G29 == 0) G29 = 0.0001; if(G29 > 0) Wins = Wins + G29; if(G29 < 0) Loss = Loss + G29; OrderSelect(OrdersHistoryTotal()-28,SELECT_BY_POS,MODE_HISTORY); double G28 = OrderProfit(); if(G28 > 0) W ++; if(G28 == 0) G28 = 0.0001; if(G28 > 0) Wins = Wins + G28; if(G28 < 0) Loss = Loss + G28;
I want to select the last 30 orders from the ea with the magicnumber 999999 and than calculate the average winn and average loss amount of the last 30 trades.
Can anybody help me?
Kind Regards
Rene
反馈
1
等级
项目
1295
67%
仲裁
84
26%
/
49%
逾期
338
26%
空闲
2
等级
项目
342
42%
仲裁
118
12%
/
73%
逾期
104
30%
空闲
发布者: 4 代码
3
等级
项目
3366
68%
仲裁
77
48%
/
14%
逾期
342
10%
空闲
发布者: 1 代码
4
等级
项目
27
22%
仲裁
18
6%
/
89%
逾期
8
30%
空闲
发布者: 1 代码
5
等级
项目
1428
59%
仲裁
31
81%
/
0%
逾期
10
1%
空闲
6
等级
项目
143
39%
仲裁
21
19%
/
48%
逾期
30
21%
空闲
7
等级
项目
3551
88%
仲裁
73
40%
/
15%
逾期
268
8%
空闲
8
等级
项目
39
69%
仲裁
2
0%
/
50%
逾期
1
3%
空闲
9
等级
项目
565
26%
仲裁
24
42%
/
38%
逾期
85
15%
工作中
发布者: 6 代码
10
等级
项目
231
61%
仲裁
3
33%
/
33%
逾期
6
3%
空闲
发布者: 1 代码
11
等级
项目
86
31%
仲裁
1
100%
/
0%
逾期
1
1%
空闲
12
等级
项目
13
31%
仲裁
1
0%
/
100%
逾期
1
8%
空闲
发布者: 1 代码
13
等级
项目
140
49%
仲裁
9
56%
/
0%
逾期
27
19%
空闲
14
等级
项目
22
27%
仲裁
24
13%
/
79%
逾期
6
27%
空闲
15
等级
项目
0
0%
仲裁
0
逾期
0
空闲
16
等级
项目
144
46%
仲裁
20
40%
/
15%
逾期
32
22%
工作中
项目信息
预算
10 - 25 USD