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
工作中
相似订单
Forex Hunter MT5 30 - 250 USD
ثبت طلبك في مواصفات البوت الثاني كذا: الجودة والأمان أهم من السعر، وما يدخل إلا إذا الفرصة قوية، مع حماية عند الخسائر وانقطاع الاتصال وارتفاع السبريد، وتشغيل مستمر على سيرفر، مع اختبارات إلزامية قبل أي تشغيل حقيقي. بهذه الصيغة يصير يشتغل وأنت مرتاح بالِك، لكنه يوقف تلقائيًا وقت عطلة السوق أو أي خلل. بس أكون واضح معك: ما في بوت يضمن عدم الخسارة، خصوصًا بالمضاربات السريعة، هدفنا نقلل المخاطر ونمنع الخسائر غير المنضبطة
Hello, I am an independent developer selling an Expert Advisor (EA) on the MQL5 Market. I am looking for an experienced Forex affiliate marketing company or professional marketer to promote my existing MT5 trading robot to customers worldwide. My proposed partnership offers a 35% commission per verified sale, with the possibility of a long-term collaboration. I would like to know: Do you promote third-party MT5
MT5 Expert Advisor Development Brief — Forex Project objective I am looking for an experienced MQL5 developer to build a bespoke, fully automated Expert Advisor for MetaTrader 5. The EA will be used on both proprietary trading firm (prop-firm) accounts and my own live trading account. My priorities, in order, are: 1. Low drawdown and robust risk management. 2. Consistent, repeatable profitability. 3. Reliable
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical

项目信息

预算
150 - 200 USD
截止日期
从 5 到 7 天

客户

所下订单1
仲裁计数0