Ambika

MQL5 Asesores Expertos

Tarea técnica

📌 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



Han respondido

1
Desarrollador 1
Evaluación
(60)
Proyectos
87
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabajando
2
Desarrollador 2
Evaluación
(566)
Proyectos
655
33%
Arbitraje
41
41% / 46%
Caducado
11
2%
Ocupado
3
Desarrollador 3
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(257)
Proyectos
263
30%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
5
Desarrollador 5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(36)
Proyectos
37
57%
Arbitraje
1
100% / 0%
Caducado
1
3%
Trabajando
Ha publicado: 5 ejemplos
7
Desarrollador 7
Evaluación
(16)
Proyectos
20
0%
Arbitraje
10
0% / 80%
Caducado
6
30%
Libre
8
Desarrollador 8
Evaluación
(8)
Proyectos
9
0%
Arbitraje
2
0% / 50%
Caducado
1
11%
Trabaja
Solicitudes similares
requirements 1. A expert which can make a bridge between trading view and MT4 /MT5 My strategy which i work upon in trading view, that autobot system should buy, sell and take profit in MT4/MT5
Enters trades using Stochastic + Moving Average signal Applies martingale averaging when price moves against position Activates hedging when floating loss reaches a defined level Supports multi-hedge layering as price continues trending Closes all positions (both martingale + hedge) at: Breakeven + small profit
I want a prop-firm compatible MT5 trading robot, not a fast or aggressive one, for passing Prop firm challenges of any account sizes and also capable of earning profit on funded account after passing the challenge. Objectives: – Pass a prop firm challenge safely within 2–4 weeks, not 1 week. – Focus on capital protection first, profit second. Risk & Money Management: – Risk per trade: 0.25%–0.5% max – No martingale
أبحث عن خبير تداول آلي (EA) أرفقتُ فيديو له. يقوم هذا الخبير بوضع أوامر شراء معلقة وبيع معلقة على بُعد 250 نقطة أعلى وأسفل السعر الحالي كل دقيقة، مع تحديد مستوى وقف الخسارة (SL) عند 300 نقطة ومستوى جني الربح (TP) عند 500 نقطة. إذا تم تفعيل أيٍّ من هذين الأمرين خلال الدقيقة، يتم إلغاء الآخر. لا يقوم الخبير بوضع أي أوامر معلقة حتى يتم الوصول إلى مستوى وقف الخسارة أو جني الربح، ثم يضع مجموعة جديدة من الأوامر المعلقة في
I’m looking for a developer to create a custom trade panel/tool that allows me to execute and manage multiple trades simultaneously with dynamic, risk-based position sizing . Core Concept (Must Be Followed Exactly) • I define a total risk percentage (example: 1% of account balance) • That total risk is split across all trades • Each trade has a different stop loss (in pips) • The system must automatically
I need MT5 Expert Advisor (EA) Strategy: - Break of Structure (body close) - Retest - Confirmation (engulfing/rejection) Rules: - Max 2 trades per day - Risk: $50 - TP: 1:2 RR - SL: structure No martingale, no grid XAUUSD M30
Bring in your expertise for specific symbol Prepare expert for Live chart Creating .set for specific symbol Live Chart Optimization , symbol specific Everything is coded already therefore needs Implementations
I need an MT4-compatible Expert Advisor coded in MQL4 that applies a pure scalping approach. The robot must open and close positions quickly on XAUUSD, taking advantage of very small intraday price movements, with configurable parameters for lot size, maximum spread, take-profit. With the activation of repeated hedging and the feature to close trades at a specific percentage of profit or loss With chart monitor
I could have MetaTrader, NinjaTrader and TradingView project as well as some Automation and Apps development work. For them I require Russian developers. I have worked with many developers but from now I just would like to work with russians. Please apply on the project just Russian developers with mentioning their expertise Note: I do not understand Russian so communication need to do in English
Wisdom forex 30 - 200 USD
I need a bot that will trade to make profit without I losing money , selling when it's time for sell, buying when it's time for buying, manage our profile to gain a big asset

Información sobre el proyecto

Presupuesto
60+ USD