FTMO-Compliant TradingView Webhook Multi-Timeframe & Dual-Position EA for XAUUSD (MT5)

Техническое задание

Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes (H1, M5, M1) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures.

1. Webhook Receiver & Multi-Timeframe State Logic:

  • H1 Bias State: Updates to BULLISH or BEARISH upon receiving an H1 webhook ( {"tf":"H1","dir":"BUY"} or "SELL" ). Persists until the opposite H1 webhook arrives.

  • M5 Setup State: Updates to BULLISH or BEARISH upon receiving an M5 CHoCH webhook ( {"tf":"M5","dir":"BUY"} or "SELL" ). Expires automatically after a configurable timeout (default: 45 minutes) if no entry triggers, or resets if an opposite M5 webhook arrives.

  • M1 Execution Trigger: When an M1 CHoCH/BOS webhook arrives ( {"tf":"M1","dir":"BUY"} or "SELL" ), verify that H1 State == M1 Direction AND M5 State == M1 Direction (and M5 setup is not expired). If true, execute the dual-position entry immediately and mark the current M5 setup as "used" so it cannot trigger duplicate entries on subsequent M1 alerts.

  • Webhook Connectivity: TradingView requires HTTPS (port 443) or HTTP (port 80) and enforces a 3-second timeout. Please include the complete receiving architecture (e.g., lightweight local reverse proxy or Python/Node webhook relay script) and clear setup instructions so MT5 receives POST requests reliably on Windows/VPS.

2. Dual-Position Entry & Risk Calculation:

  • Upon a valid trigger, open two simultaneous market orders on XAUUSD:

  • Stop Loss (Both Orders): Input in Pips (default: 110 pips, configurable 100–120 pips). Auto-detect broker digits and tick value so pip distance and lot sizing remain accurate across 2-digit or 3-digit Gold brokers.

  • Position 1 (Target 1 — Fixed 1:1):

    • Risk: 0.5% of account balance (configurable).

    • Take Profit: 1.0x SL distance (1:1 R:R).

  • Position 2 (Target 2 — Partial + Runner):

    • Risk: 0.5% of account balance (configurable).

    • Take Profit: Open runner (optional configurable max TP cap).

3. Automated Trade Management Rules:

  • Break-Even at Target 1: The instant Position 1 closes at its 1:1 Take Profit (or price reaches 1.0x SL distance), automatically modify Position 2's Stop Loss to Break-Even ( Entry Price + configurable offset points to cover commission/spread).

  • Partial Close at Target 2 (1:2 R:R): When Position 2 reaches 2.0x SL distance (1:2 R:R), automatically close 50% of its open volume.

    • Minimum Lot Fallback: If Position 2's initial lot size is 0.01 (cannot be split), close 100% at 1:2 R:R instead.

  • Runner Exit Options (Configurable Input):

    • Option 1: Leave open until Break-Even SL, Daily/Weekend Close, or manual close.

    • Option 2: Close remaining runner automatically if an opposite M5 or H1 webhook arrives.

    • Option 3: Optional trailing stop (in pips) activated only after Target 2 (1:2) is hit (must not modify every tick—use step increments to protect FTMO request limits).

4. Daily & Weekend Pre-Close Rule (Mandatory):

  • Close Before Daily Market Break & Weekend Close: Automatically close all open positions managed by this EA 5 minutes before XAUUSD daily market closure (typically 23:55 broker server time before the 1-hour daily rollover break) and 5 minutes before Friday weekend market closure.

  • Make the daily close time, Friday close time, and pre-close offset (default: 5 minutes) configurable in the EA inputs so they can be matched exactly to FTMO's server schedule ( SymbolInfoSessionTrade or manual HH:MM inputs).

  • Also block any new webhook entries during the last 15 minutes (configurable) before daily or weekend market close.

5. FTMO Compliance & Safety Filters (Inputs):

  • Server Request Limit Protection: Ensure order modifications ( OrderModify ) execute strictly once per state change (never in a tick loop) so total daily server requests stay well below FTMO's 2,000/day hyperactivity threshold.

  • Trading Session Window: Configurable Start Hour / End Hour (broker server time) to restrict entries to preferred sessions (e.g., London/NY).

  • Max Spread Filter: Block new entries if XAUUSD spread exceeds [X] points.

  • Max Concurrent Setups / Daily Loss Guard: Optional toggle to prevent opening a new setup while a previous setup is still active, plus an optional daily equity drawdown cut-off.

  • Unique Magic Number: Distinct magic numbers or order comments ( Pos1_T1 , Pos2_Runner ) so the EA reliably tracks both legs without interfering with manual trades.

6. Deliverables:

  • Compiled .ex5 EA file + full .mq5 source code.

  • Webhook relay/proxy files (if applicable) + step-by-step setup guide for TradingView alert JSON formatting and MT5 installation.


Откликнулись

1
Разработчик 1
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(5)
Проекты
6
83%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 4 примера
3
Разработчик 3
Оценка
(10)
Проекты
17
18%
Арбитраж
3
0% / 33%
Просрочено
3
18%
Загружен
4
Разработчик 4
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Работает
5
Разработчик 5
Оценка
(8)
Проекты
12
0%
Арбитраж
5
20% / 80%
Просрочено
2
17%
Свободен
6
Разработчик 6
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
7
Разработчик 7
Оценка
(2)
Проекты
2
0%
Арбитраж
1
0% / 100%
Просрочено
0
Свободен
8
Разработчик 8
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
9
Разработчик 9
Оценка
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
Опубликовал: 4 примера
10
Разработчик 10
Оценка
(4)
Проекты
9
56%
Арбитраж
0
Просрочено
2
22%
Загружен
Опубликовал: 6 примеров
11
Разработчик 11
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
12
Разработчик 12
Оценка
(4)
Проекты
8
0%
Арбитраж
3
33% / 67%
Просрочено
4
50%
Свободен
13
Разработчик 13
Оценка
(188)
Проекты
202
47%
Арбитраж
4
50% / 25%
Просрочено
1
0%
Работает
14
Разработчик 14
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Работает
Похожие заказы
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win
O Trading Ventures 30 - 2000 USD
a trading bot that can open and close trade by its self a stop loss of 1.2 lot size and good tp it should be able to learn trends and learn from its mistakes
Smc 50 - 200 USD
Title: Professional MT5 XAUUSD Multi-Strategy Expert Advisor Developer Needed I am looking for an experienced MQL5 developer to build or improve a fully automated MT5 Expert Advisor for XAUUSD on an Exness hedging account. Requirements: - Five independent trading engines: Rapid, Scalping, Sniper, Trend and Reversal. - Advanced SMC/ICT market structure, liquidity, BOS, CHoCH, order blocks and FVG analysis. - Multiple
Custom MT5 Expert Advisor – Developer Specification 1. Project Objective Develop a fully autonomous, custom MetaTrader 5 Expert Advisor (EA) using native MQL5. The EA must independently analyze financial markets, generate its own trading signals, evaluate opportunities, execute trades, and manage open positions without requiring an external signal provider, another trading bot, or manual intervention. The EA must
نازدك 30+ USD
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
I am looking for an experienced MQL5 developer to recreate my existing MT5 Expert Advisor (DSTR Novaa). I have the original compiled EX5 file, Vantage MT5 live trading history and original Strategy Tester report. Required Trading Logic: EMA Period: 3. BUY when price crosses below EMA 3. SELL when price crosses above EMA 3. Starting Lot: 0.01 (configurable). Martingale Multiplier: 2.0. Maximum Martingale Cycle: 9
CyberShadow AI 30 - 300 USD
I want a bot that’s trades using smc strategy having stop loss and take profit.I want it to be able to trade with small account I want a disciplined robot but a strong one to I also what it to trade using trend line and locate point of interest

Информация о проекте

Бюджет
150 - 200 USD
Сроки выполнения
от 5 до 7 дн.

Заказчик

Размещено заказов1
Количество арбитражей0