Trabajo finalizado
Plazo de ejecución 3 minutos
Comentario del Cliente
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.
Tarea técnica
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
Han respondido
1
Evaluación
Proyectos
1295
67%
Arbitraje
84
26%
/
49%
Caducado
338
26%
Libre
2
Evaluación
Proyectos
342
42%
Arbitraje
118
12%
/
73%
Caducado
104
30%
Libre
3
Evaluación
Proyectos
3076
66%
Arbitraje
77
48%
/
14%
Caducado
340
11%
Libre
4
Evaluación
Proyectos
27
22%
Arbitraje
18
6%
/
89%
Caducado
8
30%
Libre
5
Evaluación
Proyectos
1342
59%
Arbitraje
28
82%
/
0%
Caducado
10
1%
Trabaja
6
Evaluación
Proyectos
143
39%
Arbitraje
21
19%
/
48%
Caducado
30
21%
Libre
7
Evaluación
Proyectos
3463
88%
Arbitraje
73
40%
/
15%
Caducado
265
8%
Libre
8
Evaluación
Proyectos
39
69%
Arbitraje
2
0%
/
50%
Caducado
1
3%
Libre
9
Evaluación
Proyectos
546
25%
Arbitraje
21
38%
/
38%
Caducado
83
15%
Trabaja
10
Evaluación
Proyectos
186
54%
Arbitraje
3
33%
/
33%
Caducado
6
3%
Libre
11
Evaluación
Proyectos
86
31%
Arbitraje
1
100%
/
0%
Caducado
1
1%
Libre
12
Evaluación
Proyectos
13
31%
Arbitraje
1
0%
/
100%
Caducado
1
8%
Libre
13
Evaluación
Proyectos
140
49%
Arbitraje
9
56%
/
0%
Caducado
27
19%
Libre
14
Evaluación
Proyectos
22
27%
Arbitraje
24
13%
/
79%
Caducado
6
27%
Libre
15
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
16
Evaluación
Proyectos
140
46%
Arbitraje
19
42%
/
16%
Caducado
32
23%
Libre
Solicitudes similares
I’m looking for someone experienced with Think or Swim to create a backtesting script for an in-the-money Iron Condor strategy using options on the SPX. The strategy involves setting up 10 contracts of an Iron Condor with a 10-point spread width and a net credit requirement of $11 per contract. The goal is to backtest the performance over the last three years, focusing on trades where the SPX closes outside a
I’m needing a license code for my EA
50 - 100 USD
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
Información sobre el proyecto
Presupuesto
10 - 25 USD
IVA (21%):
2.1
- 5.25
USD
Total:
12.1
- 30.25
USD
Para el ejecutor
9
- 22.5
USD