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

MQL4 Experten Sonstiges

Auftrag beendet

Ausführungszeit 6 Tage
Bewertung des Kunden
Excellent work
Bewertung des Entwicklers
Thank you

Spezifikation

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!

Bewerbungen

1
Entwickler 1
Bewertung
(99)
Projekte
138
51%
Schlichtung
5
40% / 60%
Frist nicht eingehalten
0
Arbeitet
2
Entwickler 2
Bewertung
(443)
Projekte
570
37%
Schlichtung
106
39% / 33%
Frist nicht eingehalten
17
3%
Frei
3
Entwickler 3
Bewertung
(212)
Projekte
275
21%
Schlichtung
25
52% / 16%
Frist nicht eingehalten
0
Arbeitet
4
Entwickler 4
Bewertung
(36)
Projekte
45
2%
Schlichtung
6
33% / 17%
Frist nicht eingehalten
1
2%
Frei
5
Entwickler 5
Bewertung
(75)
Projekte
111
50%
Schlichtung
26
31% / 50%
Frist nicht eingehalten
9
8%
Frei
Veröffentlicht: 2 Artikel
6
Entwickler 6
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(257)
Projekte
341
58%
Schlichtung
7
14% / 71%
Frist nicht eingehalten
9
3%
Frei
8
Entwickler 8
Bewertung
(322)
Projekte
499
67%
Schlichtung
5
40% / 0%
Frist nicht eingehalten
4
1%
Frei
Veröffentlicht: 8 Beispiele
9
Entwickler 9
Bewertung
(83)
Projekte
97
32%
Schlichtung
9
22% / 56%
Frist nicht eingehalten
5
5%
Arbeitet

Projektdetails

Budget
30+ USD
Ausführungsfristen
von 1 bis 2 Tag(e)