Project Title: MQL5 Trade Manager for TradingView Webhook Signals

MQL5 Scripts Other

Specification


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.







Responded

1
Developer 1
Rating
(111)
Projects
184
25%
Arbitration
25
16% / 76%
Overdue
16
9%
Free
2
Developer 2
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(45)
Projects
53
57%
Arbitration
2
100% / 0%
Overdue
1
2%
Free
Published: 5 codes
4
Developer 4
Rating
(1)
Projects
1
0%
Arbitration
3
0% / 100%
Overdue
1
100%
Free
5
Developer 5
Rating
(47)
Projects
62
55%
Arbitration
7
86% / 0%
Overdue
2
3%
Free
6
Developer 6
Rating
(34)
Projects
35
40%
Arbitration
0
Overdue
3
9%
Free
7
Developer 7
Rating
(2)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
8
Developer 8
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
9
Developer 9
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
10
Developer 10
Rating
(24)
Projects
32
38%
Arbitration
4
50% / 25%
Overdue
5
16%
Working
11
Developer 11
Rating
(2)
Projects
7
0%
Arbitration
3
0% / 33%
Overdue
1
14%
Working
12
Developer 12
Rating
(2)
Projects
3
33%
Arbitration
1
0% / 100%
Overdue
0
Free
13
Developer 13
Rating
(185)
Projects
199
47%
Arbitration
4
50% / 25%
Overdue
1
1%
Working
14
Developer 14
Rating
(54)
Projects
68
43%
Arbitration
15
27% / 60%
Overdue
1
1%
Working
15
Developer 15
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
17
Developer 17
Rating
(33)
Projects
36
33%
Arbitration
5
0% / 80%
Overdue
0
Working
Published: 2 codes
18
Developer 18
Rating
(1)
Projects
1
100%
Arbitration
1
0% / 0%
Overdue
0
Working
Published: 36 articles, 9 codes
19
Developer 19
Rating
(6)
Projects
16
69%
Arbitration
1
0% / 100%
Overdue
3
19%
Working
20
Developer 20
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
21
Developer 21
Rating
(10)
Projects
13
0%
Arbitration
24
0% / 75%
Overdue
4
31%
Working
22
Developer 22
Rating
(3)
Projects
3
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
(170)
Projects
203
47%
Arbitration
5
20% / 60%
Overdue
3
1%
Free
24
Developer 24
Rating
(515)
Projects
554
53%
Arbitration
13
69% / 15%
Overdue
3
1%
Free
25
Developer 25
Rating
(7)
Projects
5
0%
Arbitration
5
0% / 80%
Overdue
1
20%
Working
26
Developer 26
Rating
(298)
Projects
478
40%
Arbitration
105
40% / 24%
Overdue
82
17%
Loaded
Published: 2 codes
27
Developer 27
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
28
Developer 28
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
29
Developer 29
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
30
Developer 30
Rating
(134)
Projects
174
40%
Arbitration
10
40% / 10%
Overdue
30
17%
Free

Project information

Budget
30 - 600 USD