MT5 MQL5 Expert Advisor Modification – Custom Lot Sequence, Basket SL & Trade Logic Fixes

MQL5 Experts

Job finished

Execution time 1 day
Feedback from customer
shoaib always delivers good work

Specification

📌 1. Custom Lot Sequence (Predefined)

The EA must support the following fixed lot size sequence, used sequentially for trades:

0.03, 0.06, 0.09, 0.15, 0.24, 0.35, 0.51, 0.69, 0.90, 1.14, 1.41, 1.71, 2.04, 2.40, 2.79, 3.21, 3.66, 4.14, 4.65, 5.19, 5.76, 6.36, 6.99, 7.65, 8.34, 9.07, 9.83, 10.63, 11.46, 12.32, 13.22, 14.15, 15.11, 16.11, 17.14, 18.20, 19.30, 20.43, 21.59, 22.79, 24.02

⚠️ Bug to Fix

  • There is a bug in the starting lot position count

  • The EA sometimes starts from the wrong index in the sequence
    → This must be fixed so the sequence starts exactly from the intended position


📌 2. Trade Sequence Rules

  • Remove the maximum trade sequence number limit

  • Trades should be able to continue indefinitely through the lot list (or until stopped by logic)


📌 3. Loss Handling Option After N Trades

Add a user option:

  • After N number of trades, user can choose:

    • Hold existing trades

    • Exit trades in loss

This behavior must be fully configurable via input parameters.


📌 4. Basket Stop Loss Logic (IMPORTANT)

  • ❌ Remove session-based profit and loss limits

  • ✅ Add Basket Stop Loss, defined in dollar value

  • Basket SL must:

    • Apply only to currently open trades

    • Ignore closed trades

    • Close all open trades once basket loss reaches the defined dollar amount


📌 5. Reset Logic After Basket SL

After Basket Stop Loss is hit:

  • EA should:

    • Close all open trades

    • Wait for a Y-minute cooldown/reset period

    • Restart trading automatically after the reset time

Reset duration must be user-configurable.


🔧 Developer Requirements

  • Strong experience with MQL5 / MT5

  • Comfortable with:

    • Trade sequences

    • Basket-level calculations

    • Robust state handling

  • Ability to write clean, maintainable code

  • Must test logic properly (edge cases matter)


📎 Notes

  • This is a logic-focused task, not UI-heavy

  • Detailed explanation of current behavior will be provided

  • Clear communication is expected


Responded

1
Developer 1
Rating
(12)
Projects
19
37%
Arbitration
1
0% / 100%
Overdue
1
5%
Free
2
Developer 2
Rating
(15)
Projects
34
24%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
3
Developer 3
Rating
(15)
Projects
19
16%
Arbitration
5
40% / 40%
Overdue
0
Free
4
Developer 4
Rating
(623)
Projects
980
47%
Arbitration
32
38% / 34%
Overdue
96
10%
Working
Published: 6 codes
5
Developer 5
Rating
(120)
Projects
128
36%
Arbitration
3
33% / 33%
Overdue
2
2%
Loaded
6
Developer 6
Rating
(29)
Projects
36
53%
Arbitration
2
50% / 50%
Overdue
3
8%
Free
Similar orders
Please a need a very good expert for this jou I want to create 2 robot one a trade manager Perfect — here’s a clean, professional order description you can post directly to an EA freelancer (MQL5). I’ve written it so it’s clear, serious, and attractive to skilled developers 👌 MQL5 Trade Manager EA – Development Request I am looking for an experienced MQL5 developer to build a robust Trade Manager Expert Advisor for
I am looking for a bot that has been created and tested and confirmed profitable in a live market for Gold. The bot must be profitable and have a low drawdown. The developer will send a demo which I can test for myself. I am looking for more of a partnership with an experienced developer
The view EA 50 - 60 USD
A multi currency fundamentals + orderflow + price action toolkit. Plot real-time fundamental news outbreaks sourced from Twitter feeds or financial news websites (e.g., Financial Juice). Automatically plot news events as vertical lines directly on the chart for instant visual context. Display economic release time as a live clock on the chart, synchronized with the event. Price Action & Orderflow Analysis Accurate
Henryy999 30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
I would like to create my own robot to actually help my family with their financial problems and also learn how to use money wisely and I have a. Experience with trading and I can be able to own my own robot for long-term
Hello developers. I would like to write an Expert Advisor (EA) for MT4 based on the RSI indicator. -Conditions for placing a buy order: when the RSI indicator shows a buy signal with divergence, the CCI indicator is less than -100, and the lowest price is below the lower Bollinger Band. - Conditions for placing a sell order: when the RSI indicator shows a sell signal with divergence . The CCI indicator is greater
MT5 DEVS NEEDS 70+ USD
Hi, I'm contacting/hired to inquire about the possibility of creating an expert advisor dashboard scanner for MT5. The scanner already exists, but the current developer can't add sound notifications. I also need additional custom options. I'll leave you the link to the sample scanner. https://www.mql5.com/it/market/product/137093?source=External I need the scanner for "Sweep and close" candles with a custom alert
Project Title: MT5 Algo Trading EA (Single Strategy + License Panel + Ownership + Manual Trade) --- Project Description I am looking for an experienced MT5 (MQL5) developer to create a clean, stable and professional Algo Trading EA for my company and future clients. This is a long-term business project, not a one-time personal EA. --- 1. Strategy Requirements - Only 1 single trading strategy - No martingale - No grid
I have an existing indicator- but may need some source code adjustment to make it into an EA. Attached source file, mql file and set file. All 6 filters need to be on 'TRUE' to check if the EA works correctly
Hi, I have an EA, which places limit orders only by reading the text files in common folder (in a specific format) I need to make some updates in the EA: 1. Limit to Market Entry Adjustment: True/False · By default, when placing a buy limit order, if the current price, is below the limit price mentioned in the file, the order gets triggered as market entry. · By enabling the above option as True, it

Project information

Budget
30+ USD