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

MQL4 エキスパート その他

仕事が完了した

実行時間6 日
依頼者からのフィードバック
Excellent work
開発者からのフィードバック
Thank you

指定

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!

応答済み

1
開発者 1
評価
(100)
プロジェクト
139
51%
仲裁
5
40% / 60%
期限切れ
0
仕事中
2
開発者 2
評価
(443)
プロジェクト
570
37%
仲裁
106
39% / 33%
期限切れ
17
3%
暇
3
開発者 3
評価
(212)
プロジェクト
275
21%
仲裁
25
52% / 16%
期限切れ
0
仕事中
4
開発者 4
評価
(36)
プロジェクト
45
2%
仲裁
6
33% / 17%
期限切れ
1
2%
暇
5
開発者 5
評価
(75)
プロジェクト
111
50%
仲裁
26
31% / 50%
期限切れ
9
8%
暇
パブリッシュした人: 2 articles
6
開発者 6
評価
(1)
プロジェクト
1
0%
仲裁
0
期限切れ
0
暇
7
開発者 7
評価
(257)
プロジェクト
341
58%
仲裁
7
14% / 71%
期限切れ
9
3%
暇
8
開発者 8
評価
(322)
プロジェクト
499
67%
仲裁
5
40% / 0%
期限切れ
4
1%
暇
パブリッシュした人: 8 codes
9
開発者 9
評価
(83)
プロジェクト
97
32%
仲裁
9
22% / 56%
期限切れ
5
5%
仕事中

プロジェクト情報

予算
30+ USD
締め切り
最低 1 最高 2 日