Project Title: MQL5 Trade Manager for TradingView Webhook Signals

MQL5 Scripts Autre

Spécifications


Overview: I need a robust MQL5 Expert Advisor (Trade Manager) designed to manage trades initiated by external signals (TradingView via Webhook). The EA will not look for entries itself but will "take over" any trade opened with a specific Magic Number.

Core Functionality:

  1. Magic Number Management: Monitor and manage all trades with Magic Number: xxxx.

  2. Grid/Martingale Logic:

    • Initial Lot: xxxx (User-definable).

    • Multiplier: xxxxx (User-definable).

    • Pip Step: Fixed distance (e.g., 18 or 30 pips) between grid levels.

    • Max Orders: Cap the grid at a specific number of trades (e.g., 6).

  3. "Ignore" action should be logged in the Expert Journal in MT5 so you can see it happened. You want to see a message like: "Signal Received: SELL. Action: IGNORED (Buy Basket Active)."

    Directional Locking (Hedge Prevention):

    • The EA must include a logic check to prevent opening opposite positions.

    • If the EA is currently managing a "Buy" basket, it must ignore any "Sell" signals received via Webhook.

    • If the EA is currently managing a "Sell" basket, it must ignore any "Buy" signals received via Webhook.

    • Optional Toggle: Add a "Allow Hedging" true/false input so I can turn this filter on or off manually.

    • "Ignore" action should be logged in the Expert Journal in MT5 so I can see it happened. I want to see a message like: "Signal Received: SELL. Action: IGNORED (Buy Basket Active)."

  4. Global Basket Management:

    • Weighted TP: Automatically calculate the break-even point for the entire basket and set a unified Take Profit in pips/dollars.

    • Trailing Stop: Implement a basket-wide trailing stop that activates once a specific profit threshold is met.

Safety & Execution Filters:

  • Max Spread Filter: Do not open additional grid levels if the current spread exceeds [X] pips.

  • Slippage Control: Use a strict slippage limit (points) for all market orders to ensure precise grid entry.

  • Equity Protection: A "Hard Stop" feature that closes all trades if the total account drawdown exceeds [X]%.

Technical Requirements:

  • Must be compatible with MetaTrader 5 (MQL5).

  • Clean, commented code for future adjustments.

  • The EA must handle "Requotes" and "Broker Busy" errors gracefully during high volatility.







Répondu

1
Développeur 1
Évaluation
(111)
Projets
184
25%
Arbitrage
25
16% / 76%
En retard
16
9%
Gratuit
2
Développeur 2
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(45)
Projets
53
57%
Arbitrage
2
100% / 0%
En retard
1
2%
Gratuit
Publié : 5 codes
4
Développeur 4
Évaluation
(1)
Projets
1
0%
Arbitrage
3
0% / 100%
En retard
1
100%
Gratuit
5
Développeur 5
Évaluation
(47)
Projets
62
55%
Arbitrage
7
86% / 0%
En retard
2
3%
Gratuit
6
Développeur 6
Évaluation
(34)
Projets
35
40%
Arbitrage
0
En retard
3
9%
Gratuit
7
Développeur 7
Évaluation
(2)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
8
Développeur 8
Évaluation
(3)
Projets
1
100%
Arbitrage
3
0% / 100%
En retard
0
Gratuit
9
Développeur 9
Évaluation
(16)
Projets
35
23%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
10
Développeur 10
Évaluation
(24)
Projets
32
38%
Arbitrage
4
50% / 25%
En retard
5
16%
Travail
11
Développeur 11
Évaluation
(2)
Projets
7
0%
Arbitrage
3
0% / 33%
En retard
1
14%
Travail
12
Développeur 12
Évaluation
(2)
Projets
3
33%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
13
Développeur 13
Évaluation
(185)
Projets
199
47%
Arbitrage
4
50% / 25%
En retard
1
1%
Travail
14
Développeur 14
Évaluation
(54)
Projets
68
43%
Arbitrage
15
27% / 60%
En retard
1
1%
Travail
15
Développeur 15
Évaluation
(7)
Projets
6
0%
Arbitrage
4
25% / 75%
En retard
2
33%
Gratuit
16
Développeur 16
Évaluation
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
17
Développeur 17
Évaluation
(33)
Projets
36
33%
Arbitrage
5
0% / 80%
En retard
0
Travail
Publié : 2 codes
18
Développeur 18
Évaluation
(1)
Projets
1
100%
Arbitrage
1
0% / 0%
En retard
0
Travail
Publié : 36 articles, 9 codes
19
Développeur 19
Évaluation
(6)
Projets
16
69%
Arbitrage
1
0% / 100%
En retard
3
19%
Travail
20
Développeur 20
Évaluation
(1)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
21
Développeur 21
Évaluation
(10)
Projets
13
0%
Arbitrage
24
0% / 75%
En retard
4
31%
Travail
22
Développeur 22
Évaluation
(3)
Projets
3
0%
Arbitrage
0
En retard
0
Gratuit
23
Développeur 23
Évaluation
(170)
Projets
203
47%
Arbitrage
5
20% / 60%
En retard
3
1%
Gratuit
24
Développeur 24
Évaluation
(515)
Projets
554
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
25
Développeur 25
Évaluation
(7)
Projets
5
0%
Arbitrage
5
0% / 80%
En retard
1
20%
Travail
26
Développeur 26
Évaluation
(298)
Projets
478
40%
Arbitrage
105
40% / 24%
En retard
82
17%
Chargé
Publié : 2 codes
27
Développeur 27
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
28
Développeur 28
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
29
Développeur 29
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
30
Développeur 30
Évaluation
(134)
Projets
174
40%
Arbitrage
10
40% / 10%
En retard
30
17%
Gratuit

Informations sur le projet

Budget
30 - 600 USD