MT5 bot EA Specification: Pre-London Range Breakout (Pepperstone Compatible)

Trabajo finalizado

Plazo de ejecución 15 días

Tarea técnica

Purpose

  • Develop an Expert Advisor (EA) for MetaTrader 5.

  • Strategy: Breakout from the pre-London session range with strict risk management and no grid/martingale.

  • Goal: Scalp intraday momentum after London open using pending orders.

  • Broker: Pepperstone (ECN / RAW spreads).

  • Instruments: default EURUSD and XAUUSD (configurable).


Trading Logic

1. Pre-Range Session

  • Time based on server time (TimeTradeServer).

  • Define range between PreRangeStart and PreRangeEnd .

    • Default: 05:00 – 07:15 server time.

  • Record PreHigh (highest price) and PreLow (lowest price) of this window.

  • Range filters:

    • If (PreHigh – PreLow) < MinRangeATR * ATR(14, M5) → skip trading.

    • If (PreHigh – PreLow) > MaxRangePips → skip trading.

2. Entry Window

  • Default: 07:15 – 11:30 (London) and optionally 13:30 – 16:30 (New York).

  • Place pending orders at breakout levels:

    • BUY STOP = PreHigh + BufferPips .

    • SELL STOP = PreLow – BufferPips .

  • Only if all filters are met:

    • Spread ≤ MaxSpreadPoints.

    • ATR(14, M5) within MinATR–MaxATR.

    • Optional: Trend filter → Only Buy if price > EMA200 (M15), only Sell if price < EMA200.

3. Pending Order Management

  • Place both orders (or only one if EMA trend filter applies).

  • Cancel the opposite order once one is triggered.

  • Cancel all untriggered orders when:

    • EntryWindow ends, or

    • Filters fail (spread too wide, volatility too low).

4. Stop Loss / Take Profit

  • SL options:

    • Default: kATR * ATR(14, M5) .

    • Or: opposite side of the pre-range ± buffer (choose the smaller distance).

  • TP = RR * SL (default RR = 1.5 for FX, RR = 2.0 for XAUUSD).

  • Break-even:

    • Move SL to entry after price moves in profit by BE_Trigger * SL (default 1.0).

    • Add offset ( BE_Offset ) if configured.

  • Trailing:

    • Start after TrailTrigger * SL .

    • Trail distance = TrailATR * ATR(14, M5) .

5. Risk Management

  • RiskPerTrade% (default 1%). Lot size calculated dynamically based on SL distance.

  • Use symbol properties ( SYMBOL_TRADE_TICK_VALUE , etc.) to compute correct lot size.

  • Daily loss limit: If equity drops by MaxDailyLoss% (default 3%), no new trades until next day.

  • Max trades per day: e.g., 2.


Inputs (parameters)

  • Session times:

    • PreRangeStart="05:00" , PreRangeEnd="07:15" .

    • EntryWindowStart="07:15" , EntryWindowEnd="11:30" .

    • UseNYWindow=true , NYWindowStart="13:30" , NYWindowEnd="16:30" .

  • Filters:

    • BufferPips=5 (EURUSD), BufferGoldPoints=50 (XAUUSD).

    • MinATR=0.0008 , MaxATR=0.0040 (for EURUSD).

    • MinRangeATR=0.6 , MaxRangePips=25 .

    • MaxSpreadPoints=12 .

    • UseEMATrend=true , EMAPeriod=200 , EMATF=PERIOD_M15 .

  • Stops & Targets:

    • UseATRStop=true , kATR=1.0 .

    • RR=1.5 (EURUSD), RR_XAU=2.0 .

    • UseBreakEven=true , BE_Trigger=1.0 , BE_Offset=2 .

    • UseTrailing=true , TrailTrigger=1.2 , TrailATR=1.0 .

  • Risk settings:

    • RiskPerTrade=1.0 .

    • MaxDailyLoss=3.0 .

    • MaxTradesPerDay=2 .

  • Execution:

    • MaxSlippagePoints=10 .

    • DeleteOppositePendingOnFill=true .

  • Symbols & Magic:

    • Symbols="EURUSD,XAUUSD" .

    • Magic=17092025 .

    • Comment="PreLondonBreakout_Pepperstone" .


EA Architecture

  • OnInit() → load symbols, initialize states.

  • OnTick():

    • Track PreRange highs/lows.

    • Place pending orders only in EntryWindow.

    • Cancel pending orders at window end or after opposite is triggered.

    • Manage active positions (BE, trailing, SL/TP).

  • OnTradeTransaction() → handle fills, update daily P&L, enforce limits.

  • OnDeinit() → clean pending orders.


Additional Requirements

  • Work with multiple symbols (EURUSD, XAUUSD by default).

  • One active trade per symbol.

  • Proper logging: reasons for order placement or cancellation.

  • Draw lines on chart: PreHigh/PreLow, pending orders, SL/TP.

  • Optimizable inputs for backtesting (range times, buffer, ATR multiplier, RR).


Han respondido

1
Desarrollador 1
Evaluación
(22)
Proyectos
28
7%
Arbitraje
9
33% / 33%
Caducado
1
4%
Trabaja
2
Desarrollador 2
Evaluación
(295)
Proyectos
367
30%
Arbitraje
37
27% / 65%
Caducado
10
3%
Trabaja
Ha publicado: 10 ejemplos
3
Desarrollador 3
Evaluación
(22)
Proyectos
29
3%
Arbitraje
4
25% / 0%
Caducado
3
10%
Libre
4
Desarrollador 4
Evaluación
(443)
Proyectos
570
37%
Arbitraje
106
39% / 33%
Caducado
17
3%
Libre
5
Desarrollador 5
Evaluación
(265)
Proyectos
313
75%
Arbitraje
16
75% / 0%
Caducado
6
2%
Trabaja
6
Desarrollador 6
Evaluación
(10)
Proyectos
13
0%
Arbitraje
24
0% / 79%
Caducado
4
31%
Libre
7
Desarrollador 7
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
8
Desarrollador 8
Evaluación
(186)
Proyectos
200
47%
Arbitraje
4
50% / 25%
Caducado
1
1%
Trabaja
9
Desarrollador 9
Evaluación
(19)
Proyectos
23
48%
Arbitraje
10
0% / 100%
Caducado
2
9%
Libre
10
Desarrollador 10
Evaluación
(330)
Proyectos
335
72%
Arbitraje
2
100% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
11
Desarrollador 11
Evaluación
(329)
Proyectos
515
19%
Arbitraje
35
46% / 31%
Caducado
34
7%
Trabaja
12
Desarrollador 12
Evaluación
(453)
Proyectos
566
26%
Arbitraje
24
42% / 38%
Caducado
85
15%
Libre
Ha publicado: 6 ejemplos
13
Desarrollador 13
Evaluación
(111)
Proyectos
184
25%
Arbitraje
25
16% / 76%
Caducado
16
9%
Libre
14
Desarrollador 14
Evaluación
(319)
Proyectos
574
35%
Arbitraje
83
31% / 45%
Caducado
207
36%
Libre
15
Desarrollador 15
Evaluación
(15)
Proyectos
15
33%
Arbitraje
1
0% / 100%
Caducado
1
7%
Libre
Solicitudes similares
Gold robot 30 - 300 USD
أكيد، إذا كنت تقصد مشروع بوت الذهب والمحلل، فهذا يحدث لنا اللي بنينا عليه إلى الآن : وال الماكانه رومان التركيز على الذهب XAUUSD فقط أولًا ، والبيتكوين بعد استقرار نسخة الذهب شيطاني بوت أصلي بلغ MQL5 على MT5 ، ويتم تنفيذه لدى Exness أيام السكالبينج، مع التقاط عدة احتمالات صحيحة يوميا دون إجبار البوت على الدخول سي آلي بالكامل بعد الإعداد: تحليل، دخول، وقف، إدارة أندرويد وخروج الفريمات البداية كانت M3 تعطيل وM15
Aziz Toure 50 - 400 USD
I am an independent trader and entrepreneur based in Côte d’Ivoire. I work in financial markets, analyze trading opportunities, and provide digital financial services. I am also interested in international trade, online business, and developing long-term business activities
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
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
Phixfx 30 - 150 USD
Project Brief: Multi-Asset EA/Indicator Optimization, Debugging, and Futures Strategy Refinement ​1. Project Overview & Objective ​I am looking for an experienced algorithmic developer to inspect, debug, optimize, and enhance an existing automated trading system. The system combines custom indicators and execution logic across Forex and Futures markets. ​The primary goals of this project are: ​Debug existing logic
​I am looking for an experienced MQL5 developer to build a fully automated MetaTrader 5 Expert Advisor (EA) optimized primarily for XAUUSD (Gold), featuring a clean Tkinter-style telemetry dashboard control concept or customizable input parameters. ​1. Core Strategy Rules (Full-Body Engulfing) ​Signal Identification: The EA must scan completed candles across multiple selectable timeframes (e.g., 1M, 5M, 15M, 30M, 1H)
I want NinjaTrader to behave like Tradovate. When I hover over a candlestick, the cursor should automatically snap to the center of that candle across all open charts. For example, when I hover over a 30-minute candle, the cursor should align with the center of the corresponding candles on the 15-minute and other chart timeframes. I also want vertical lines drawn on one chart to automatically align with the center of
I am commissioning the development and reverse-engineering of a commercial-grade, multi-strategy quantitative trading portfolio modeled on proven institutional frameworks (Reference methodology: https://whop.com/the-agent-algo/products/ ). The goal is to develop a standalone, fully owned commercial trading system covering Nasdaq (NQ) and Gold (XAUUSD) with an integrated licensing engine ready for commercial
USD54 Applications The bot should open trades when the price breaks out of the band by a specified percentage, for example, 0.10%. If the price breaks above the band, the bot should open a long position. If the price breaks below the band, it should open a short position. The bot should also open trades when the price touches a band: Bullish band cross: When a bullish cross occurs between the bands, the bot should
#property strict #property version "1.00" #property description "EMA Trend + Pullback + Engulfing EA" // Include the standard MT5 trade library. #include <Trade/Trade.mqh> CTrade trade; //============================================================== // INPUT SETTINGS //============================================================== // Trend indicators input int FastEMA = 20; input int SlowEMA = 50; // Pullback

Información sobre el proyecto

Presupuesto
30 - 50 USD