Use an array function to perform a task in my code (Fixed budget $30)

MQL4 Asesores Expertos Lo demás

Trabajo finalizado

Plazo de ejecución 6 días
Comentario del Cliente
Excellent work
Comentario del Ejecutor
Thank you

Tarea técnica

Hello, I need someone to help solve a shortfall in my code using (Array). It should be simple and I'll be happy if you can get it done in a few hrs.

THE ISSUE:

I have coded a Partial Closure function that is expected to close (x% lots) off every trade running on the account having a specified Magic No. only when the net profit of these trades hit a stated max DD of Account Balance. (Symbol of trades doesn't matter).


I have observed that the function sometimes closes a ticket by the (x% lots) and the before loop finishes, it again closes (x% lots) off the resultant position from the initial one probably because it sees this new resultant ticket just as one of the old trades. This makes everything random and I want a solution....


My solution:

Developer should create an Array so that when maxDD is hit, this Array is populated with all existing tickets. If the partial closure function starts, the loop should then handle only the tickets found in the Array. This way, I believe the problem could be solved.

I'll share my code with the selected dev. and am also open to any other ideas or solutions....thanks!

Han respondido

1
Desarrollador 1
Evaluación
(99)
Proyectos
138
51%
Arbitraje
5
40% / 60%
Caducado
0
Trabaja
2
Desarrollador 2
Evaluación
(443)
Proyectos
570
37%
Arbitraje
106
39% / 33%
Caducado
17
3%
Libre
3
Desarrollador 3
Evaluación
(212)
Proyectos
275
21%
Arbitraje
25
52% / 16%
Caducado
0
Trabaja
4
Desarrollador 4
Evaluación
(36)
Proyectos
45
2%
Arbitraje
6
33% / 17%
Caducado
1
2%
Libre
5
Desarrollador 5
Evaluación
(75)
Proyectos
111
50%
Arbitraje
26
31% / 50%
Caducado
9
8%
Libre
Ha publicado: 2 artículos
6
Desarrollador 6
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(257)
Proyectos
341
58%
Arbitraje
7
14% / 71%
Caducado
9
3%
Libre
8
Desarrollador 8
Evaluación
(322)
Proyectos
499
67%
Arbitraje
5
40% / 0%
Caducado
4
1%
Libre
Ha publicado: 8 ejemplos
9
Desarrollador 9
Evaluación
(83)
Proyectos
97
32%
Arbitraje
9
22% / 56%
Caducado
5
5%
Trabaja

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
de 1 a 2 día(s)