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
(103)
Projets
165
24%
Arbitrage
23
9% / 78%
En retard
16
10%
Travail
2
Développeur 2
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(30)
Projets
30
63%
Arbitrage
1
0% / 0%
En retard
1
3%
Chargé
Publié : 5 codes
4
Développeur 4
Évaluation
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
1
100%
Gratuit
5
Développeur 5
Évaluation
(43)
Projets
53
49%
Arbitrage
6
83% / 0%
En retard
0
Travail
6
Développeur 6
Évaluation
(14)
Projets
14
21%
Arbitrage
1
0% / 0%
En retard
2
14%
Travail
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
(12)
Projets
16
13%
Arbitrage
4
50% / 25%
En retard
4
25%
Travail
11
Développeur 11
Évaluation
(2)
Projets
4
0%
Arbitrage
3
0% / 0%
En retard
1
25%
Chargé
12
Développeur 12
Évaluation
(2)
Projets
2
50%
Arbitrage
1
0% / 100%
En retard
0
Travail
13
Développeur 13
Évaluation
(133)
Projets
141
38%
Arbitrage
4
25% / 25%
En retard
1
1%
Chargé
14
Développeur 14
Évaluation
(36)
Projets
41
20%
Arbitrage
13
8% / 69%
En retard
1
2%
Occupé
15
Développeur 15
Évaluation
(6)
Projets
5
0%
Arbitrage
2
50% / 50%
En retard
2
40%
Gratuit
16
Développeur 16
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit

Informations sur le projet

Budget
30 - 600 USD

Client

Commandes passées1
Nombre d'arbitrages0