Bug Fix

MQL5 Indicatori Esperti

Lavoro terminato

Tempo di esecuzione 11 giorni
Feedback del cliente
great communication and quick reply
Feedback del dipendente
great customer pleasure to work with him look forward to work with him again

Specifiche

Objective: Find/fix 3 Bugs

Tasks:


1)       Bug find/fix: automatically identify and exclude orders in the “placed” status

2)       Bug find/fix: understand why sometimes the position opens with double volume and solve it

3)       “Force close” positions after the max position time (existent parameter)


EA details:

The EA monitors 75 symbols identified in a CSV file placed on the FILE folder. The same CSV also contains a series of parameters that are used to control when to open and close positions.

The code contains 1200 rows, and the open signal is on the following part:

 

And the close signal is on this part:

 

Other important aspects of the EA:

-          Whenever MultiSymbol = False, EA will only runs for the graphic where the EA was apply to (single symbol) and all inputs will come from the input screen. This should also be the choice when backtesting.

-          Whenever MultiSymbol = True, EA will search for the for the .csv file and get the customized inputs for each symbol

-          When using the MultiSymbol, the graphical lines (TP, SL, etc) will only appear for the graph where the EA is applied. If you open another screen, the lines will not appear, but if you drag another symbol to the same graph, the lines will change to reflect the scenario of this new symbol

-          None of the issues happens in the backtest, meaning that the issue happens when interacting with the broker, which is something that makes the fixing more difficult, also because the issues are not consistent

 

Why ALL issues happen:

When the buy signal is open, EA sends the order, but sometimes, this order does not get processed because:

·         Something is wrong in the broker for that particular Symbol

·         There is no more volume available at that price

All this will lead the order to stay in a “Placed” status. The big problem is that EA only checks if there is no position open for a Symbol, before sending a new order for that Symbol. This is expected, to have only one position open for each Symbol.

By not checking these placed positions, if the signal stays open, EA will keep sending orders, causing a big risk to the user if the case is that of opening a position. If the case if trying to close a position, the placed get there, never is processed and EA seems to “forget” about that position, never closing it, even after the Max time is reached

 

1)       Bug find/fix: automatically identify and exclude orders in the “placed” status

Sometimes, the buy/sell signal opens, the order is sent, but the order remains in the “placed” status, causing a lot of issues later. This happens in rare occasions, usually when the symbol “freezes” for some reason, right when the signal opens.

These placed positions might also be the reason why the EA malfunction regarding an open position, not closing for any of the “close triggers”

The expect solution (open to suggestion) is to constantly look for this status and remove them (on tick)

Also, in order to avoid more issues, if a symbol is on placed status, check and do not send other orders for the same symbol while this situation is not changed.


 

2)       Bug find/fix: understand why sometimes the position opens with double volume and solve it

The volume to fill the order is calculated based on the lot size defined in the parameter. Example: If the lot size = $10k and price of the stock is $35, the EA should try to buy 10k/35 volume, or 285 units. Then the lower next multiple of 100 need to be select, in this case 200.

In this market, all order must be in multiples of 100 (100, 200, 300, etc). This is controlled by the Lot_Min parameter.

Must of the time, this process works well, and the right volume is sent as an order, but in 1% of the cases, the order is sent with double the volume. There is apparently no relation to a specific symbol or price

After many testing, it seems that when the order takes time to be processed, EA sends another order (because the signal still open) and when broker manages to process the order, it process both of them.

 

3)       Force EA to close positions after the Max time is reached

It seems that when above issues (previously explained) happen, that particular Symbol are not monitored anymore for SL,TP and Time limit. Apparently that symbol might be getting out of the EA array that checks the open positions.

Closing a position after X minutes, should not be linked to anything else, for safety purposes, any position open more than X minutes should be closed

 

How to test the Fixes:

Backtest can be used to check basic keyl aspects of the code, but only in Single Symbol mode.

As mentioned before, these issues only happen in real accounts in live mode, since the issue is related to the interaction with the broker

Once the project starts I will share user/password to an demo account with the correct broker that will allow you to better test the EA


File:

Con risposta

1
Sviluppatore 1
Valutazioni
(3)
Progetti
4
0%
Arbitraggio
2
0% / 100%
In ritardo
1
25%
Gratuito
2
Sviluppatore 2
Valutazioni
(284)
Progetti
459
39%
Arbitraggio
94
44% / 18%
In ritardo
73
16%
Caricato
Pubblicati: 2 codici
3
Sviluppatore 3
Valutazioni
(109)
Progetti
137
43%
Arbitraggio
8
38% / 38%
In ritardo
6
4%
Gratuito
Ordini simili
PLEASE READ: IF YOU ARE NOT GOING TO ACCEPT THE BELOW THEN PLEASE MOVE ON TO THE NEXT CLIENT. I NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN THEY END UP DEVELOPING A FAULTY INDICATOR. AND I HAVE GIVEN THEM THE
Hi All, I’m currently exploring the development of a highly profitable trading bot and am looking to combine proven strategies with new, innovative ideas. My goal is to design a system that’s both sustainable and adaptive , leveraging market-tested methods as well as advanced data-driven techniques. I’m open to: Reviewing existing bot frameworks to evaluate their performance and scalability. Incorporating multiple
Here's a detailed description of a Breakout & Retest Supply and Demand strategy-based Expert Advisor (EA): Strategy Overview The EA will implement a Breakout & Retest strategy based on Supply and Demand zones. It will identify potential supply and demand areas, wait for a breakout, and then retest the zone before entering a trade. Key Features 1. *Supply and Demand Zone Identification*: The EA will use historical
Hi, i have a project , if thats possible. I dont mind to enter manually the details of the stock split (using seeking alpha data) to keep the cost down and possibly as a second project , to automate it. I already have system that are working well with unadjusted data from stock price split. So i'd like to choose if i want to use a chart with or without stock split data. Is that possible ? Can you explain how would
This robot will trade on two different pairs, with the same settings. However, there must be mechanism for me to modify the conditions for each pair. Risk Per Trade : 1 or 0.5 % (customizable) Max Loss Limits: 8 % (customizable) Leverage: 1:100 (customizable) Daily Loss Caps: 2 % (customizable) Max Open Trades: 2 (customizable) Time Frame: 5 Minute Pair: EUR/USD + GBP/USD Mandatory Close: 30 Minute before New York
repair the attached files such that 1) 80% of the total Chart height is allocated to 4 subwindows/Panes 2) each Pane will have 80%/4 = 20% of the height in pixels 3) each Pane will have maximum 12 rows and 30 columns. Save the row in Pixel in m_YDistance{} in the class Cgraphics 4) static const int GP_PANE_ACTIVE_ROWS[GRAPH_PANE_COUNT] = { 9, 6, 6, 10 }; (window 1 height = m_YDistance[9], etc) 5) use Hash table to
Bitforex 50+ USD
I want the bot to trade only BTCUSD, bot starts 9AM to 6PM broker time, use EMA indicators for trading, stop loss is 10-20pips, Take profit is 50-60 pips, lot size 0.02 per position, 2 position at a time and add extra 2 positions if trade is running 20 pips, close trade if there should any change in price movements
I want EA 'Prop Firm limiter' for protecting account not breached. Below is the preset of the EA which I want made by ChatGPT. There is a lot of EA like this in MQL5 Market or elsewhere. You can refer one of these here. Drawdown Limiter Advanced | Buy Trading Utility for MetaTrader 5 Also in some webpages you can refer the source code. Account Protector for MetaTrader You can suggest better idea even though I don't
Want to create a simple EA for a breakout strategy for XAUUSD on MT5. Every day cancel all pending orders and set buy/sell pending order at the previous day high/low (skip buy order if price opens above previous day high and skip sell order if price opens below previous day low). After London session close, set buy/sell pending order at London session high/low (skip buy order if price is above London session high and
Техзадание во вложении. Советник не выставляет ордера. Задача советника состоит в том, что бы закрыть все ордера при достижении установленного Equity и отжать иконку "AutoTrading" (запретить авто-торговлю) или если поведение рынка не соответствует стратегии принудительно ( вручную) закрыть все ордера и завершить торговлю

Informazioni sul progetto

Budget
50+ USD
Per lo sviluppatore
45 USD
Scadenze
da 1 a 2 giorno(i)