Multi Symbol EA – Bug Fix

İş Gereklilikleri

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


Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(12)
Projeler
12
25%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(41)
Projeler
46
28%
Arabuluculuk
9
0% / 100%
Süresi dolmuş
7
15%
Serbest
3
Geliştirici 3
Derecelendirme
(26)
Projeler
34
26%
Arabuluculuk
7
14% / 43%
Süresi dolmuş
7
21%
Serbest
4
Geliştirici 4
Derecelendirme
(438)
Projeler
458
73%
Arabuluculuk
5
80% / 0%
Süresi dolmuş
0
Çalışıyor
5
Geliştirici 5
Derecelendirme
(21)
Projeler
24
17%
Arabuluculuk
15
20% / 40%
Süresi dolmuş
6
25%
Serbest
Benzer siparişler
Ethereum EA 30 - 35 USD
I am looking for an Expert Advisor (EA) that performs well on Ethereum. Ideally it should be an HFT-style EA; a swing trading EA is acceptable. I require the full MQL5 source code — the EA must be written entirely in MQL5 (no external languages such as Python). Performance target: minimum 70% win rate with a 1:1 risk:reward. Input variables required: - Stop Levels: Stop Loss (SL) and Take Profit (TP) - Trailing stop
To eliminate this difficulty, use the expert's example: EA 24658754 MAKE THE MODIFICATION IN THE EXPERTS' FILES: EA_MT4, EA_MT5 Add this: input bool ShowInfo = false ; // Show Info to Chart input ENUM_BASE_CORNER Corner = 1 ; // Info Corner input color Color_Info = clrAqua ; // Info Color Add this: //+------------------------------------------------------------------+ //| Print
Job Description I am looking for a highly skilled MQL5 DEVELOPER and A TRADER to work on an MT5 Expert Advisor (EA) project. The main tasks will include: 1. Code Compilation & Optimization – Reviewing, compiling, and streamlining the existing EA code to ensure efficiency and stability. 2. Backtesting Setup & Execution – Running professional backtests to ensure the EA produces consistent, gradual profit growth curves
i want to create an indicator based on fib levels, the developer must understand how the fib levels work or have experience in forex or stocks also i would like to add two MA for direction of the market. please contact me and i will give more information about the project
The service of an experience EA coder with experience in Indicator trading on Muti Time frame The ea already installed with indicators. It has Telegram Bot message The details of the task involve will be provided after you apply Time Required maximum of 5 days Testing required 15 days (this depend on ea functionality the time can be extended if ea is not working (testing on vps or local laptop) Amount $30 Bonus of $3
Updated EA Description (with Max. Open Trades & MTF MA Filter) Core Features (already existing): Candlestick formation entry logic. Daily minimum drawdown & maximum profit target. ATR-based stop loss and take profit. Trailing stop. Breakeven. New Additions: Relative Strength Index (RSI): Flexible parameters (user can edit period & levels). Used for both entry confirmation and exit options. Stochastic Oscillator
About the Role We are looking for an experienced MetaTrader 4 (MT4) developer with a strong understanding of Smart Money Concepts (SMC) in trading. The ideal candidate will have hands-on experience in developing custom indicators and Expert Advisors, with the ability to translate advanced trading rules (Swing High/Low, BOS/CHoCH, Order Blocks, FVGs, Liquidity, Fibonacci zones, etc.) into reliable and efficient MT4
I want an automated trading bot, and before i will purchase here's want i want as a proof. Trading proof: Screenshots or verified logs showing real trading history, including entry and exit points, profit/loss, and trading duration. Chart evidence: Visual charts demonstrating the bot’s trading activity, backtests, or live trading performance. Additional details: Please include any relevant performance metrics
I'm looking for an experienced MQL5 developer and trader to assist with the refinement, backtesting, and live trading optimization of a custom Expert Advisor (EA). The EA is based on a pure breakout strategy on XAUUSD. The main goals are: 1. Compile and straighten the code – ensure error-free, optimized, and professional coding standards. 2. Run and set up backtesting – produce results with gradual positive
READ CAREFULLY And if you have done 50 projects before then apply others i will reject SEPARATE LOGIC MUST BE SEPARATE AND ALL INPUTS MUST BE VISIBLE WITH FALSE TRUE OPTION TO ON OFF FUNCTION 🔺 BUY Signal (Boom Market) ✅ Pattern Formation (Spike-Based Buy Setup) First Spike : Large bullish spike candle . Mitigation Candle : Small bearish candle inside or partially inside the bullish spike. Second Spike

Proje bilgisi

Bütçe
50+ USD
Geliştirici için
45 USD