Fix my EA: Close open and pending orders and some minor fixes

MQL4 Experten

Auftrag beendet

Ausführungszeit 9 Minuten
Bewertung des Entwicklers
Great Customer, Thanks...
Bewertung des Kunden
Finished the job and was faster than expected (within half day). He provided me some really great feedback. Also provided his honest opinion and gave me some good advice.

Spezifikation

EA trades on Bollinger Bands, in general executing orders is fine. However, I need some optimization of my EA. Two request are adding code, while two requests are more reviewing the code.

 

1. Major Optimization: Close open and pending orders Symbol when hit TakeProfit 

My EA will open one buy/sell order and 8 pending buylimit/selllimit at the same time when it opens. I want the EA to close the open orders and delete the pending orders of that particular symbol once one of the open order hit Takeprofit. 

As described in below table when Order 4, (Buy order, 0.08 size) hit the TP it will close the two order buy orders and delete the BuyLimit pending orders. So only the Sell orders and SellLimit pending orders remain afterwards. 

Open
OrderOrdertypelotsizeSymbolPriceS/LTPPrice (closed)
1Buy0.02EURUSD1.10551.031.106Close
2Sell0.02EURGBP1.311.31No change
3Buy0.04EURUSD1.10541.031.1055Close
4Buy0.08EURUSD1.10531.031.10541.1054
5Sell0.04EURGBP1.2911.31No change
Pending
1BuyLimit0.16EURUSD1.281.031.1053Delete
2BuyLimit0.32EURUSD1.271.031.1052Delete
3BuyLimit0.64EURUSD1.261.031.1051Delete
4BuyLimit1.28EURUSD1.251.031.105Delete
5BuyLimit2.56EURUSD1.241.031.104Delete
6BuyLimit5.12EURUSD1.231.031.103Delete
7SellLimit0.08EURGBP1.2811.31No change
8SellLimit0.16EURGBP1.2711.31No change
9SellLimit0.32EURGBP1.2611.31No change
10SellLimit0.64EURGBP1.2511.31No change
11SellLimit1.28EURGBP1.2411.31No change
12SellLimit2.56EURGBP1.2311.31No change
13SellLimit5.12EURGBP1.2211.31No change

 

2. Check: Not all OrderSend are send to server

I encountered that in a few cases some of my predefined OrderSends are not triggered, a few times it was the 0.04 Lotsize. I cannot find the order back in the history or trade information.That could be fault of server or it could be that my code is written incorrectly. Please check the OrderSend for Buy and Sell.

 

3. Check: Sometimes buy/sell order are closed way too early

Sometimes my orders are triggered but after a few seconds it closes by itself again without hitting the TP or SL. I am not sure what triggered this.

 4. Add: Maximum one set of buy/sell orders per bar chart

I want to limit the set of buy order/buylimits to one set per bar. Sometimes the orders are triggered again since my buy condition is still valid. This should be as well for the sell orders/sell limits

For your information; I included a file in the MQ4 but I believe I won't use it . Though I added in case you need it


 

Dateien:

MQH
Trade.mqh
31.2 Kb

Bewerbungen

1
Entwickler 1
Bewertung
(26)
Projekte
29
3%
Schlichtung
11
9% / 73%
Frist nicht eingehalten
3
10%
Frei
2
Entwickler 2
Bewertung
(414)
Projekte
670
33%
Schlichtung
60
17% / 32%
Frist nicht eingehalten
113
17%
Arbeitet
3
Entwickler 3
Bewertung
(2)
Projekte
2
0%
Schlichtung
13
8% / 92%
Frist nicht eingehalten
1
50%
Frei
Ähnliche Aufträge
a coder is required to add an indicator to existing ea The new indicator will work as 1. option to combine with exiting indicator to open trade 2. it will be used as alternative BE point 3. It can also be used to close order or combine with other to close trade The second Job is telegram bot to get alert fr news trade and others Details when you apply i will test the ea work on live market and all bug is fixed before
Hello, I want to make an EA based on SMC and a developer that is familiar with the concept and full understanding of this. Must have done similar jobs before and be able show it. I only want to work with developer that has good track record and is precise. Further information will be handed when contact is made. Developers that has zero rating will not be considered. Listed price is a base point. The project can also
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI
Trade methodology based on Red and Green lines entering Overbought / Oversold zone. Using confluence of Higher time frame, Moving Average a trade can enter when there is a strong slope angle. Market Base Line is used to determine overall market sentiment. This is designed to be an established trend scalping strategy on lower time frames. To be used initially on demo then real account when settings have been fine
There are six conditions in total . source code from an existing expert will be provided to aid the completion of this job . - Install the following by the Panel (copy paste form my existing Expert ) 1. Pips Lost : number of pips lost ( monthly reset ) 2. Pips Gained : number of pips gained ( monthly reset ) 3. Have a black background to avoid the
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function (A) Add Transform combine the 4 Expert Advisors into just 1 Expert Advisor, maintaining the individuality of each one Leave in extern (false) or (true)
Description: I am seeking an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 based on a specific trend-following strategy. The strategy includes precise risk management, advanced trade management features, and additional risk management tools. The EA should be adaptable to any timeframe on which it is attached. Below are the detailed requirements and parameters for the EA: Strategy
I need an EA trading frequently (HFT or something like), and it sould have some features below: 1、Have a clear trading logic 2、Have a good backtest result 3、Have a demonstrated benefitable result in a live account trading 4、Can avoid the news time period or not sensitive to news
Tenho um EA mql4 que está com funcionalidades funcionando e outras com funcionalidades sem funcionar. Tenho um vídeo do EA funcionando como deve funcionar perfeitamente. O meu não consegue seguir o mesmo programa pois quando coloca os pontos de parada e retirada são bem diferentes. Não tenho pressa para tempo, só queria que conseguisse renovar o EA. O arquivo do grafico anexo é como ele se encontra agora. O certo é
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &

Projektdetails

Budget
20 - 30 USD
Für die Entwickler
18 - 27 USD