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

MQL5 Experts Scripts

Spécifications

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


Répondu

1
Développeur 1
Évaluation
(18)
Projets
22
9%
Arbitrage
6
33% / 50%
En retard
1
5%
Travail
2
Développeur 2
Évaluation
(16)
Projets
17
29%
Arbitrage
1
0% / 0%
En retard
2
12%
Travail
3
Développeur 3
Évaluation
(50)
Projets
64
20%
Arbitrage
11
27% / 55%
En retard
5
8%
Gratuit
4
Développeur 4
Évaluation
(12)
Projets
14
57%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
5
Développeur 5
Évaluation
(13)
Projets
18
11%
Arbitrage
5
40% / 60%
En retard
1
6%
Gratuit
Publié : 1 code
6
Développeur 6
Évaluation
(309)
Projets
554
35%
Arbitrage
79
32% / 42%
En retard
200
36%
Travail
7
Développeur 7
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
8
Développeur 8
Évaluation
(549)
Projets
635
33%
Arbitrage
41
39% / 46%
En retard
11
2%
Occupé
9
Développeur 9
Évaluation
(2)
Projets
3
0%
Arbitrage
1
100% / 0%
En retard
1
33%
Travail
10
Développeur 10
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
0
Gratuit
11
Développeur 11
Évaluation
(2)
Projets
2
50%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
(16)
Projets
35
23%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
14
Développeur 14
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
15
Développeur 15
Évaluation
(25)
Projets
29
21%
Arbitrage
20
10% / 50%
En retard
8
28%
Travail
16
Développeur 16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
17
Développeur 17
Évaluation
(3)
Projets
3
33%
Arbitrage
0
En retard
0
Travail
Commandes similaires
I need a fully automated end-to-end system where a backend continuously runs my deterministic CORE EDGE validator on live market data, generates numeric JSON trade tickets (GO) or alert levels (NO-GO), and automatically pushes those instructions to the MT5 EA for execution. There are no manual signals. ROLE SPLIT (IMPORTANT) Backend (analysis & decision engine): Continuously evaluates live data using my CORE EDGE
Job Description: We are looking for an experienced MQL5 developer to create a script or Expert Advisor (EA) that automatically updates the price of a token CFD on MT5, using a live BTCUSD feed. The goal is to make token fully CFD-tradable , with real-time price updates, charts, and client P/L. Clients should be able to trade long or short and view live candles, just like other MT5 CFDs. Scope of Work / Requirements

Informations sur le projet

Budget
30+ USD

Client

(14)
Commandes passées49
Nombre d'arbitrages0