Project Title: MQL5 Trade Manager for TradingView Webhook Signals

MQL5 Scripts Outros

Termos de Referência


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.







Respondido

1
Desenvolvedor 1
Classificação
(104)
Projetos
169
24%
Arbitragem
23
9% / 78%
Expirado
16
9%
Trabalhando
2
Desenvolvedor 2
Classificação
(2)
Projetos
2
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(36)
Projetos
37
57%
Arbitragem
1
100% / 0%
Expirado
1
3%
Carregado
Publicou: 5 códigos
4
Desenvolvedor 4
Classificação
(1)
Projetos
1
0%
Arbitragem
3
0% / 100%
Expirado
1
100%
Livre
5
Desenvolvedor 5
Classificação
(45)
Projetos
57
51%
Arbitragem
6
83% / 0%
Expirado
1
2%
Trabalhando
6
Desenvolvedor 6
Classificação
(16)
Projetos
18
28%
Arbitragem
0
Expirado
3
17%
Livre
7
Desenvolvedor 7
Classificação
(2)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(3)
Projetos
1
100%
Arbitragem
3
0% / 100%
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(16)
Projetos
35
23%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
10
Desenvolvedor 10
Classificação
(14)
Projetos
19
11%
Arbitragem
4
50% / 25%
Expirado
4
21%
Trabalhando
11
Desenvolvedor 11
Classificação
(2)
Projetos
6
0%
Arbitragem
2
0% / 50%
Expirado
1
17%
Trabalhando
12
Desenvolvedor 12
Classificação
(2)
Projetos
3
33%
Arbitragem
1
0% / 100%
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(146)
Projetos
155
42%
Arbitragem
3
33% / 33%
Expirado
1
1%
Carregado
14
Desenvolvedor 14
Classificação
(42)
Projetos
49
29%
Arbitragem
14
21% / 64%
Expirado
1
2%
Carregado
15
Desenvolvedor 15
Classificação
(6)
Projetos
5
0%
Arbitragem
3
33% / 67%
Expirado
2
40%
Livre
16
Desenvolvedor 16
Classificação
Projetos
0
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
17
Desenvolvedor 17
Classificação
(32)
Projetos
35
34%
Arbitragem
5
0% / 80%
Expirado
0
Trabalhando
Publicou: 2 códigos
18
Desenvolvedor 18
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 2 artigos, 2 códigos
19
Desenvolvedor 19
Classificação
(4)
Projetos
8
50%
Arbitragem
1
0% / 100%
Expirado
1
13%
Trabalhando
20
Desenvolvedor 20
Classificação
(1)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
(9)
Projetos
13
0%
Arbitragem
23
0% / 78%
Expirado
4
31%
Livre
22
Desenvolvedor 22
Classificação
(3)
Projetos
3
0%
Arbitragem
0
Expirado
0
Livre
23
Desenvolvedor 23
Classificação
(168)
Projetos
200
48%
Arbitragem
5
20% / 60%
Expirado
2
1%
Trabalhando
24
Desenvolvedor 24
Classificação
(511)
Projetos
549
53%
Arbitragem
13
69% / 15%
Expirado
3
1%
Livre
25
Desenvolvedor 25
Classificação
(7)
Projetos
5
0%
Arbitragem
6
0% / 83%
Expirado
1
20%
Trabalhando
26
Desenvolvedor 26
Classificação
(297)
Projetos
476
40%
Arbitragem
105
40% / 24%
Expirado
81
17%
Ocupado
Publicou: 2 códigos
27
Desenvolvedor 27
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
28
Desenvolvedor 28
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
29
Desenvolvedor 29
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
30
Desenvolvedor 30
Classificação
(131)
Projetos
170
39%
Arbitragem
10
40% / 0%
Expirado
30
18%
Trabalhando

Informações sobre o projeto

Orçamento
30 - 600 USD