Ambika

MQL5 Experts

Tâche terminée

Temps d'exécution 11 jours

Spécifications

📌 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



Répondu

1
Développeur 1
Évaluation
(62)
Projets
90
29%
Arbitrage
24
13% / 58%
En retard
7
8%
Travail
2
Développeur 2
Évaluation
(636)
Projets
745
34%
Arbitrage
49
53% / 39%
En retard
14
2%
Travail
3
Développeur 3
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
4
Développeur 4
Évaluation
(258)
Projets
269
29%
Arbitrage
2
50% / 0%
En retard
3
1%
Travail
Publié : 2 codes
5
Développeur 5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
6
Développeur 6
Évaluation
(45)
Projets
53
57%
Arbitrage
2
100% / 0%
En retard
1
2%
Gratuit
Publié : 5 codes
7
Développeur 7
Évaluation
(16)
Projets
20
0%
Arbitrage
10
0% / 80%
En retard
6
30%
Gratuit
8
Développeur 8
Évaluation
(10)
Projets
12
0%
Arbitrage
3
33% / 33%
En retard
0
Gratuit
Commandes similaires
I’m looking for an experienced MQL4/MQL5 developer with proven expertise in genuine high-frequency trading (HFT) or ultra-fast scalping Expert Advisors. Project requirements: Develop MT5 versions with complete source code and no restrictive licensing. Implement fast execution, selective entries, and rapid trade exits. Support XAUUSD Include robust risk controls: stop-loss, drawdown limits, spread/slippage filters
I am commissioning the development and reverse-engineering of a commercial-grade, multi-strategy quantitative trading portfolio modeled on proven institutional frameworks (Reference methodology: https://whop.com/the-agent-algo/products/ ). The goal is to develop a standalone, fully owned commercial trading system covering Nasdaq (NQ) and Gold (XAUUSD) with an integrated licensing engine ready for commercial
Hello, I already have an MT5 Expert Advisor for XAUUSD based on Fibonacci, market structure, BOS/CHoCH and swing trading. I need an experienced MQL5 developer to modify my existing EA, not develop a completely new one. Required modifications: Partial take-profit system with multiple TP levels. Keep profit targets conservative, using Fibonacci extension levels. Stop-loss placement beyond liquidity areas, not exactly
Exir AI 30 - 200 USD
I need an experienced MQL5 developer to build a custom AI-assisted Expert Advisor (EA) for MetaTrader 5. The EA will run on a live MT5 account with Tickmill and must support Forex and Crypto CFDs. Required instruments: - EURUSD - GBPUSD - USDJPY - XAUUSD - BTCUSD - ETHUSD Required timeframes: - M5, M15, and M30 Trading logic: - M30 determines the overall trend. - M15 identifies entry zones, support/resistance, and
Hello, I am an independent developer selling an Expert Advisor (EA) on the MQL5 Market. I am looking for an experienced Forex affiliate marketing company or professional marketer to promote my existing MT5 trading robot to customers worldwide. My proposed partnership offers a 35% commission per verified sale, with the possibility of a long-term collaboration. I would like to know: Do you promote third-party MT5
I am a serious trader looking to acquire an existing, stable, and consistently profitable Expert Advisor (EA) specifically designed primarily for Gold (XAUUSD). This is an outright purchase. I am not interested in developing a new EA from scratch. I am only interested in ready-to-use systems with a genuine, verifiable track record of performance
I am a serious buyer looking to acquire an existing, stable, and consistently profitable Expert Advisor (EA) specifically designed primarily for Gold (XAUUSD). This is an outright purchase. I am not interested in developing a new EA from scratch. I am only interested in ready-to-use systems with a genuine, verifiable track record of performance. ✅ EA Requirements Mandatory Demo Testing on DuraMarket Testing on a
USD54 Applications The bot should open trades when the price breaks out of the band by a specified percentage, for example, 0.10%. If the price breaks above the band, the bot should open a long position. If the price breaks below the band, it should open a short position. The bot should also open trades when the price touches a band: Bullish band cross: When a bullish cross occurs between the bands, the bot should
#property strict #property version "1.00" #property description "EMA Trend + Pullback + Engulfing EA" // Include the standard MT5 trade library. #include <Trade/Trade.mqh> CTrade trade; //============================================================== // INPUT SETTINGS //============================================================== // Trend indicators input int FastEMA = 20; input int SlowEMA = 50; // Pullback
Title: Build a Semi-Automated MT5 Execution Assistant (MQL5) with Custom Panel Description: I am looking for an experienced MQL5 developer to build a semi-automated execution assistant for MetaTrader 5. I know this is a standard semi-automated panel with trade management. I am looking for a developer who has an existing GUI/panel library and standard trade management modules that can be adapted quickly. If you are

Informations sur le projet

Budget
60+ USD