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

Specifiche

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.


Con risposta

1
Sviluppatore 1
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(5)
Progetti
6
83%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 4 codici
3
Sviluppatore 3
Valutazioni
(10)
Progetti
17
18%
Arbitraggio
3
0% / 33%
In ritardo
3
18%
Caricato
4
Sviluppatore 4
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
In elaborazione
5
Sviluppatore 5
Valutazioni
(8)
Progetti
12
0%
Arbitraggio
5
20% / 80%
In ritardo
2
17%
Gratuito
6
Sviluppatore 6
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
7
Sviluppatore 7
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 4 codici
10
Sviluppatore 10
Valutazioni
(4)
Progetti
9
56%
Arbitraggio
0
In ritardo
2
22%
Caricato
Pubblicati: 6 codici
11
Sviluppatore 11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(4)
Progetti
8
0%
Arbitraggio
3
33% / 67%
In ritardo
4
50%
Gratuito
13
Sviluppatore 13
Valutazioni
(188)
Progetti
202
47%
Arbitraggio
4
50% / 25%
In ritardo
1
0%
In elaborazione
14
Sviluppatore 14
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
In elaborazione
Ordini simili
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
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
I have a Telegram signal bot that trades SPX 0DTE options. Each signal includes: entry time, strike, entry price range, stop (~45% of entry), stepped targets (T1..T10, each step ~50% of entry), and a cancel rule. I have the full archive of its signals and its daily chart images (6 support/resistance lines). Task: Build a Python bot that produces the same entries as the original bot in real time and sends them to
Hello, I need a high-quality, reliable, and well-coded Expert Advisor (EA) for MetaTrader 5. The code must be clean, without errors, and optimized for safe trading. The robot needs to trade based on basic technical indicators. Every trade must have a strict Stop Loss and Take Profit for risk management. Please apply only if you are an experienced MT5 developer with a high rating and clean coding history. Best
I'm looking for a developer to build a simple cloud-based monitoring and alert system for a trading account whose performance statistics are displayed on a third-party website. The system should: 1. Monitor the account's balance, equity and open positions. 2. Calculate the current floating drawdown as a percentage of account balance. 3. Send a single alert, preferably via WhatsApp or alternatively email, when
I need an already developed EA with proven ability to grow small accounts for day trading. It can trade any specific instrument like gold, EURUSD or more than one instrument. Any strategy is welcomed, including scalping in lower timeframes A test version is required before concluding the deal or being selected. Only those with ready products apply No fake EAs needed
Forex Hunter MT5 30 - 250 USD
ثبت طلبك في مواصفات البوت الثاني كذا: الجودة والأمان أهم من السعر، وما يدخل إلا إذا الفرصة قوية، مع حماية عند الخسائر وانقطاع الاتصال وارتفاع السبريد، وتشغيل مستمر على سيرفر، مع اختبارات إلزامية قبل أي تشغيل حقيقي. بهذه الصيغة يصير يشتغل وأنت مرتاح بالِك، لكنه يوقف تلقائيًا وقت عطلة السوق أو أي خلل. بس أكون واضح معك: ما في بوت يضمن عدم الخسارة، خصوصًا بالمضاربات السريعة، هدفنا نقلل المخاطر ونمنع الخسائر غير المنضبطة
SMC Bot Creation 350 - 550 USD
Hello, I am interested in developing a professional MT5 Expert Advisor similar in functionality and technical sophistication to your reference product, Institutional SMC Robot: https://www.mql5.com/en/market/product/187011 I want to develop my own independent EA based on advanced Smart Money Concepts (SMC), with a strong focus on institutional price action, liquidity and market structure. The key functionalities I
(I can't pay 30 for this of course if you can just help.me solve this problem I would appreciate you )It was doing everything perfectly until yesterday this happened this is a python file that copies from telegram Iand send to ea signal if you have any idea what to do or why this happened please tell me
PROJECT: BYBIT PUMP & DUMP EARLY DETECTION ENGINE Fixed Budget: USD $1,000 – Complete Project I am looking for an experienced quantitative trading developer to design, develop, validate and deliver a professional standalone Python 3.12 module for detecting early pump and dump movements on Bybit USDT perpetual futures. IMPORTANT: This is NOT an MT4/MT5 indicator, Expert Advisor or a request to build a complete trading

Informazioni sul progetto

Budget
150 - 200 USD
Scadenze
da 5 a 7 giorno(i)

Cliente

Ordini effettuati1
Numero di arbitraggi0