Tâche terminée
Temps d'exécution 3 minutes
Commentaires du client
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.
Spécifications
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
Répondu
1
Évaluation
Projets
1295
67%
Arbitrage
84
26%
/
49%
En retard
338
26%
Gratuit
2
Évaluation
Projets
342
42%
Arbitrage
118
12%
/
73%
En retard
104
30%
Gratuit
Publié : 4 codes
3
Évaluation
Projets
3366
68%
Arbitrage
77
48%
/
14%
En retard
342
10%
Gratuit
Publié : 1 code
4
Évaluation
Projets
27
22%
Arbitrage
18
6%
/
89%
En retard
8
30%
Gratuit
Publié : 1 code
5
Évaluation
Projets
1428
59%
Arbitrage
31
81%
/
0%
En retard
10
1%
Gratuit
6
Évaluation
Projets
143
39%
Arbitrage
21
19%
/
48%
En retard
30
21%
Gratuit
7
Évaluation
Projets
3551
88%
Arbitrage
73
40%
/
15%
En retard
268
8%
Gratuit
8
Évaluation
Projets
39
69%
Arbitrage
2
0%
/
50%
En retard
1
3%
Gratuit
9
Évaluation
Projets
565
26%
Arbitrage
24
42%
/
38%
En retard
85
15%
Travail
Publié : 6 codes
10
Évaluation
Projets
231
61%
Arbitrage
3
33%
/
33%
En retard
6
3%
Gratuit
Publié : 1 code
11
Évaluation
Projets
86
31%
Arbitrage
1
100%
/
0%
En retard
1
1%
Gratuit
12
Évaluation
Projets
13
31%
Arbitrage
1
0%
/
100%
En retard
1
8%
Gratuit
Publié : 1 code
13
Évaluation
Projets
140
49%
Arbitrage
9
56%
/
0%
En retard
27
19%
Gratuit
14
Évaluation
Projets
22
27%
Arbitrage
24
13%
/
79%
En retard
6
27%
Gratuit
15
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
16
Évaluation
Projets
144
46%
Arbitrage
20
40%
/
15%
En retard
32
22%
Travail
Informations sur le projet
Budget
10 - 25 USD