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
(103)
Projetos
165
24%
Arbitragem
23
9% / 78%
Expirado
16
10%
Trabalhando
2
Desenvolvedor 2
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(30)
Projetos
30
63%
Arbitragem
1
0% / 0%
Expirado
1
3%
Carregado
Publicou: 5 códigos
4
Desenvolvedor 4
Classificação
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
1
100%
Livre
5
Desenvolvedor 5
Classificação
(43)
Projetos
53
49%
Arbitragem
6
83% / 0%
Expirado
0
Trabalhando
6
Desenvolvedor 6
Classificação
(14)
Projetos
14
21%
Arbitragem
1
0% / 0%
Expirado
2
14%
Trabalhando
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
(12)
Projetos
16
13%
Arbitragem
4
50% / 25%
Expirado
4
25%
Trabalhando
11
Desenvolvedor 11
Classificação
(2)
Projetos
4
0%
Arbitragem
3
0% / 0%
Expirado
1
25%
Carregado
12
Desenvolvedor 12
Classificação
(2)
Projetos
2
50%
Arbitragem
1
0% / 100%
Expirado
0
Trabalhando
13
Desenvolvedor 13
Classificação
(133)
Projetos
141
38%
Arbitragem
4
25% / 25%
Expirado
1
1%
Carregado
14
Desenvolvedor 14
Classificação
(36)
Projetos
41
20%
Arbitragem
13
8% / 69%
Expirado
1
2%
Ocupado
15
Desenvolvedor 15
Classificação
(6)
Projetos
5
0%
Arbitragem
2
50% / 50%
Expirado
2
40%
Livre
16
Desenvolvedor 16
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre

Informações sobre o projeto

Orçamento
30 - 600 USD

Cliente

Pedidos postados1
Número de arbitragens0