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
(107)
Projects
175
25%
Arbitration
23
13% / 78%
Overdue
16
9%
Working
2
Developer 2
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(40)
Projects
45
60%
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
(46)
Projects
60
53%
Arbitration
7
86% / 0%
Overdue
2
3%
Free
6
Developer 6
Rating
(30)
Projects
32
41%
Arbitration
0
Overdue
3
9%
Working
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
(20)
Projects
27
30%
Arbitration
4
50% / 25%
Overdue
4
15%
Loaded
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
(166)
Projects
176
45%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
14
Developer 14
Rating
(48)
Projects
57
35%
Arbitration
15
27% / 60%
Overdue
1
2%
Free
15
Developer 15
Rating
(6)
Projects
5
0%
Arbitration
4
25% / 75%
Overdue
2
40%
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
Projects
0
0%
Arbitration
0
Overdue
0
Working
Published: 9 articles, 2 codes
19
Developer 19
Rating
(4)
Projects
10
50%
Arbitration
1
0% / 100%
Overdue
2
20%
Free
20
Developer 20
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
21
Developer 21
Rating
(9)
Projects
13
0%
Arbitration
23
0% / 78%
Overdue
4
31%
Free
22
Developer 22
Rating
(3)
Projects
3
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
(169)
Projects
202
48%
Arbitration
5
20% / 60%
Overdue
2
1%
Free
24
Developer 24
Rating
(512)
Projects
551
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
477
40%
Arbitration
105
40% / 24%
Overdue
81
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
(131)
Projects
171
39%
Arbitration
10
40% / 10%
Overdue
31
18%
Working
Similar orders
I am looking for an experienced MT4 developer or strategy tester to run a comprehensive optimization of my existing Expert Advisor (EA). The EA is already developed and working as intended — your task will be to configure and execute the optimization process using the "Every tick based on real ticks" model. Scope of Work: Run EA optimization in MT4 Strategy Tester. Use "Every tick based on real ticks" as the

Project information

Budget
30 - 600 USD