I need experienced developers because I need to modify complex code.

MQL5 Uzmanlar Komut dosyaları

İş Gereklilikleri

I need someone to help me modify the code; the EA has a problem and needs fixing.


I believe EA encountered "Return Codes of the Trade Server," which sometimes prevented it from opening orders, and it will not try again.

Problem: Return Codes of the Trade Server (10004 to10046)

https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes




price comment Price_Points_Steps


5181.399 1772617140-0 0


5186.119 1772617140-1 4000


5193.933 1772617140-2 8000


5202.292 1772617140-3 8000


5183.194 1772617140-4 -16000


5199.080 1772617140-5 16000 CURRENT STEP


5175. 1772617140-24000 NEXT STEP


5175.08 is 1772617140-6, but no sell order has been opened. Why? It's currently at 5069.


The above is one example of a failed attempt.


The fundamental problem is...


EA sometimes fails to open at a certain step.


Therefore, the following needs to be added.


Adding this feature isn't to suggest your Expert Advisor (EA) has a problem, but rather to prevent issues.


Please add the following logic to handle unexpected situations:


If the EA opens a position, it checks if the position opening status has failed. If it has, it checks again if the opening conditions are met. If so, it opens the position. The purpose is to prevent potential position opening failures from hindering subsequent trading.


If the EA closes a position, it checks if the closing status has failed. If it has, it checks again if the order closing conditions are met. If so, it closes the order. The purpose is to prevent positions from being held for too long or hindering subsequent trading due to failed closing.


The scenario is closing the EA.


After the EA closes all orders, it checks if the closing status has failed, then closes the EA. If so, the EA closes all orders again. The purpose is to prevent positions from being held indefinitely due to failed closing.


However, in most cases, EAs can enable step 6 (random), while in a small number they cannot, leading to significant account losses.

However, in most cases, EAs can enable step 8 (random), while in a small number they cannot, leading to significant account losses.

However, in most cases, EAs can enable step 4 (random), while in a small number they cannot, leading to significant account losses.



----------------------------------------------


Modification 9:

Adding this feature isn't to suggest your Expert Advisor (EA) has a problem, but rather to prevent issues.


Please add the following logic to handle unexpected situations:


If the EA opens a position, it checks if the position opening status has failed. If it has, it checks again if the opening conditions are met. If so, it opens the position. The purpose is to prevent potential position opening failures from hindering subsequent trading.


If the EA closes a position, it checks if the closing status has failed. If it has, it checks again if the order closing conditions are met. If so, it closes the order. The purpose is to prevent positions from being held for too long or hindering subsequent trading due to failed closing.


The scenario is closing the EA.


After the EA closes all orders, it checks if the closing status has failed, then closes the EA. If so, the EA closes all orders again. The purpose is to prevent positions from being held indefinitely due to failed closing.


Remark: EA logic

-----------------------------------------------------------------------------------------------------------

Modification 10:


int NumRetry = 1;


I saw the AI ​​say that this code doesn't re-check the order opening conditions, but instead blindly opens a position.


If so, please remove it for me. This code is completely useless and a trap. Even without it, EA will loop back and re-check the order opening conditions before opening a position. One blind opening is unnecessary.


because NumRetry = 1; 

The account was not liquidated because it did not enter the market at nearly the same price level.


because NumRetry = 999999; 

The account was liquidated because it entered the market at nearly the same price level.




Remark: EA logic

-----------------------------------------------------------------------------------------------------------

Modification 11:

If you do your best to help me identify and correct all the potential risks in the EA, I will add $100 as extra pay for your work.


Remark: Potential risks


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(16)
Projeler
20
10%
Arabuluculuk
8
38% / 38%
Süresi dolmuş
3
15%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(254)
Projeler
260
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
3
Geliştirici 3
Derecelendirme
(13)
Projeler
18
11%
Arabuluculuk
5
40% / 60%
Süresi dolmuş
1
6%
Serbest
Yayınlandı: 1 kod
4
Geliştirici 4
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
5
Geliştirici 5
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(265)
Projeler
597
35%
Arabuluculuk
64
20% / 58%
Süresi dolmuş
147
25%
Serbest
Yayınlandı: 1 makale, 22 kod
7
Geliştirici 7
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
(6)
Projeler
5
0%
Arabuluculuk
5
0% / 80%
Süresi dolmuş
1
20%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(553)
Projeler
640
33%
Arabuluculuk
41
41% / 46%
Süresi dolmuş
11
2%
Yüklendi
10
Geliştirici 10
Derecelendirme
(17)
Projeler
23
39%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
(12)
Projeler
19
42%
Arabuluculuk
3
0% / 67%
Süresi dolmuş
3
16%
Çalışıyor
13
Geliştirici 13
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(16)
Projeler
35
23%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
2
6%
Çalışıyor
15
Geliştirici 15
Derecelendirme
(72)
Projeler
147
67%
Arabuluculuk
21
10% / 71%
Süresi dolmuş
44
30%
Serbest
16
Geliştirici 16
Derecelendirme
(2)
Projeler
2
50%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
17
Geliştirici 17
Derecelendirme
(4)
Projeler
3
33%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Serbest

Proje bilgisi

Bütçe
300+ USD