Ambika

MQL5 Experts

Job finished

Execution time 11 days

Specification

📌 Project: Multi-Layer Pending Order EA (MT5)


1. Overview

The EA should:

  • Detect a manual pending order placed by the user

  • Create 3 additional layered pending orders based on it

  • Treat each manual order as an independent group

  • Activate only after Stop Loss (SL) is set

  • Keep SL/TP synchronized across group orders

  • On Take Profit (TP) hit, perform:

    • Pending cancellation OR

    • Break Even (BE) action (based on conditions)


2. Group Concept (Core Logic)

  • Each manual pending order = one unique group

  • Each group must be identified using:

    • Magic Number (recommended) OR

    • Unique Order Comment (Group ID)

👉 Important:

  • Groups must be completely independent

  • No cross-interference between groups


3. Activation Rule (SL Required)

  • EA must NOT take any action until:

    • The manual order has a Stop Loss set

Conditions:

  • SL = 0 → ❌ No action

  • SL is set → ✅ Activate EA for that order


4. Order Structure (Example - Buy)

🔹 Base Order (Manual)

  • Entry Price = 4809

  • Stop Loss = 4800

  • Take Profit = 4813


🔹 EA Layer Orders (after SL is set)

  1. Layer 1

    • Entry = 4808

    • SL = 4800

    • TP = 4813 + 5 = 4818

  2. Layer 2

    • Entry = 4807

    • SL = 4800

    • TP = 4818 + 5 = 4823

  3. Layer 3

    • Entry = 4806

    • SL = 4800

    • TP = ❌ No TP (leave open)


5. SL / TP Synchronization

If the user modifies the base order:

When SL is changed:

  • EA must update SL of all pending layer orders in the same group

When TP is changed:

  • EA must recalculate and update TP for all layer orders:

    • Layer 1 → Base TP + 5

    • Layer 2 → Previous layer TP + 5

    • Layer 3 → No TP

👉 Only pending orders should be updated
👉 Do NOT modify already filled trades


6. Execution Behavior

  • Orders may be filled partially or fully

  • EA should only monitor until conditions are triggered


7. Take Profit Logic (Core Behavior)

🔹 Case 1: Pending Orders Still Exist

If:

  • Base order TP is hit

  • AND some group orders are still pending

Action:

  • ❌ Cancel ONLY remaining pending orders of that group

  • ✅ Do NOT affect filled/open trades


🔹 Case 2: All Orders Filled

If:

  • All group orders are filled (Base + 3 layers = 4 trades open)

  • AND price reaches Base TP

Action:

  • ✅ Set Break Even (BE) for all open trades


8. Break Even Logic

Preferred:

  • Basket Average BE

    • SL = weighted average price of all open trades

Alternative:

  • Individual BE per trade (optional)


9. Multi-Group Handling

Example:

Group 1:

  • 4809 + (4808, 4807, 4806)

Group 2:

  • 4780 + (4779, 4778, 4777)


If:

  • Group 1 TP is hit

Then:

  • ✅ Apply logic ONLY to Group 1

  • ❌ Do NOT affect Group 2


10. Restrictions

The EA must NOT:

  • Interfere with other groups

  • Cancel unrelated pending orders

  • Modify open trades unnecessarily


11. Final Summary

  • SL must be set → EA activates

  • 1 manual order = 1 group

  • EA creates 3 layered pending orders

  • SL/TP changes → auto synchronized

  • TP hit:

Case A:

  • Pending exists → cancel pending

Case B:

  • All filled → move all trades to BE


12. One-Line Logic

👉 SL set → create layers → sync updates → TP hit → cancel pending OR move all trades to BE (based on fill status)


End of Specification



Responded

1
Developer 1
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
2
Developer 2
Rating
(619)
Projects
722
33%
Arbitration
46
48% / 41%
Overdue
14
2%
Loaded
3
Developer 3
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(258)
Projects
269
29%
Arbitration
2
50% / 0%
Overdue
3
1%
Working
Published: 2 codes
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(45)
Projects
53
57%
Arbitration
2
100% / 0%
Overdue
1
2%
Free
Published: 5 codes
7
Developer 7
Rating
(16)
Projects
20
0%
Arbitration
10
0% / 80%
Overdue
6
30%
Free
8
Developer 8
Rating
(10)
Projects
12
0%
Arbitration
3
33% / 33%
Overdue
0
Free
Similar orders
Project Overview I have an existing MT5 Expert Advisor (EA) written in MQL5. The source code ( .mq5 ) will be provided. The underlying strategy is a trend-following system that performs well during trending market conditions, but requires professional quantitative research to improve its ability to identify and avoid highly sideways/range-bound market conditions. The objective of this project is not to build a new EA
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Modification of existing ea …. Add ema filter, add risk percentage per trade, and modify the pips per day filter. I already have the ea code I just need these things added and modifified
Expert Advisors 300+ USD
double CRiskManager::CalculateLotSize(double slPoints) { double balance = AccountInfoDouble(ACCOUNT_BALANCE); double riskMoney = balance * (m_riskPercent / 100.0); double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE); double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double pointValue = tickValue / tickSize; double lot = riskMoney / (slPoints * pointValue);
i share my strategy i need a bot trending bot fo mt5 . i attached the photo with this it help to make bot. it basicly 1 hours time frame base. i try but failed to make it
Title: Simple background trading bot for my Oanda account (v20 REST API) Overview Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place
MQL5 Developer 30+ USD
📄 وثيقة المواصفات الفنية لروبوت التداول (MQL5 EA Specification) 📌 1. ملخص المشروع والهدف * اسم المشروع: Gold Cent Grid-Hedge EA * المنصة: MetaTrader 5 (MQL5) * أداة التداول: الذهب (XAUUSD) * نوع الحساب: حساب سنت (Cent Account) * فكرة الاستراتيجية: تداول شبكة هيدج متوازنة (Grid-Hedging) تفتح صفقات تعزيز كل مسافة محددة، وتغلق الطرف الأكثر ربحاً عند تحقيق هدف مالّي مجمع بالدولار/السنت لإعادة هيكلة التوازن. ⚙️ 2
I need a developer who also understands trading. I have a Telegram copy-trading bot that reads signals from a Telegram channel via a Python script and converts them into trading orders. I want to create a program that analyzes Gold (XAUUSD) charts specifically and sends signals in this exact format: #XAUUSD BUY 4324-4321 TP 4327 TP 4330 TP 4334 TP 4339 TP 4344 TP 4354 TP 4364 SL 4311 If the # symbol is missing at the
Hi developer I want to convert my mt4 EA to mt5 EA . I have a mt4 ea with source code. i want developer to copy same mt4 code and create mt5 EA

Project information

Budget
60+ USD