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

Trabalho concluído

Tempo de execução 15 dias

Termos de Referência

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).


Respondido

1
Desenvolvedor 1
Classificação
(19)
Projetos
23
9%
Arbitragem
6
33% / 50%
Expirado
1
4%
Ocupado
2
Desenvolvedor 2
Classificação
(255)
Projetos
318
29%
Arbitragem
34
26% / 65%
Expirado
10
3%
Livre
3
Desenvolvedor 3
Classificação
(22)
Projetos
29
3%
Arbitragem
4
25% / 0%
Expirado
3
10%
Trabalhando
4
Desenvolvedor 4
Classificação
(442)
Projetos
570
37%
Arbitragem
106
39% / 33%
Expirado
17
3%
Livre
5
Desenvolvedor 5
Classificação
(240)
Projetos
283
77%
Arbitragem
12
75% / 0%
Expirado
4
1%
Livre
6
Desenvolvedor 6
Classificação
(9)
Projetos
13
0%
Arbitragem
23
0% / 78%
Expirado
4
31%
Livre
7
Desenvolvedor 7
Classificação
(60)
Projetos
87
29%
Arbitragem
24
13% / 58%
Expirado
7
8%
Carregado
8
Desenvolvedor 8
Classificação
(147)
Projetos
156
42%
Arbitragem
3
33% / 33%
Expirado
1
1%
Carregado
9
Desenvolvedor 9
Classificação
(19)
Projetos
23
48%
Arbitragem
10
0% / 100%
Expirado
2
9%
Livre
10
Desenvolvedor 10
Classificação
(308)
Projetos
313
70%
Arbitragem
2
100% / 0%
Expirado
0
Livre
Publicou: 1 código
11
Desenvolvedor 11
Classificação
(328)
Projetos
512
19%
Arbitragem
33
45% / 30%
Expirado
34
7%
Carregado
12
Desenvolvedor 12
Classificação
(452)
Projetos
565
26%
Arbitragem
24
42% / 38%
Expirado
85
15%
Trabalhando
Publicou: 6 códigos
13
Desenvolvedor 13
Classificação
(105)
Projetos
172
25%
Arbitragem
23
9% / 78%
Expirado
16
9%
Trabalhando
14
Desenvolvedor 14
Classificação
(313)
Projetos
559
35%
Arbitragem
80
31% / 44%
Expirado
203
36%
Livre
15
Desenvolvedor 15
Classificação
(13)
Projetos
13
38%
Arbitragem
1
0% / 100%
Expirado
1
8%
Livre
Pedidos semelhantes
I need a professional MT5 Expert Advisor (EA) built with clean, modular code. This is an advanced strategy combining liquidity concepts, controlled DCA, hedge protection, and strict risk management. Core Requirements: Entry Logic (ALL must align): Liquidity sweep (Previous Day High/Low breakout and return) EMA50 and EMA200 trend alignment Higher timeframe bias (H1 or H4) RSI confirmation Bollinger Band entry Filters
I need a professional MQL5 developer. BEFORE I SHARE ANY DETAILS: 1. You must sign a PERPETUAL NDA with no expiration date 2. NDA includes €100,000 penalty for any breach 3. I require full .mq5 source code ownership 4. Developer must have 500+ completed jobs, 4.9+ rating Budget: €1500 EUR Duration: 14 days Start your application with "RULER" to prove you read this
Pip Scalper Bot 60+ USD
i want a trading bot that is aleast 98% sure,and cam also do scalping 99% correct using smart money concept, ICT, ALL technical analysis on it and also put risk management on it
Greetings I need MT5 developer that has expertise in developing a custom indicator for mt5 boom and crash based on my exact details and requirements which would be discuss later. Kindly bid for this project if it is something you can handle for me
AI Trading MQL5: Maximizing Profit from a $10 Investment Achieving significant profits from a small initial capital like $10 in AI trading with MQL5 requires a highly strategic and disciplined approach. While the potential for exponential growth exists, it's crucial to manage expectations and understand the inherent risks. **Key Strategies for Small Capital AI Trading:** 1. **Low-Risk, High-Probability
I’m looking for an experienced NinjaTrader developer to complete an existing custom indicator. The project is already partially built and is well organized, completely functional, and well documented. The former developer experienced some personal difficulties and unfortunately cannot continue. Key Requirement (Read Carefully): You MUST have direct, hands-on experience with NinjaTrader and NinjaScript (C#) . This is
I need a professional developer to help me create an EA using RSI and Moving averages.The strategies are well organised and everything is in order. I will send all the details in the inbox
Powerful 30 - 100 USD
I really want a powerful developed EA that can generate a minimum of 10% every month without martingale, greed or any dangerous strategy for sale. Developer must provide the mql5 file or the raw file for modification etc
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT
Hello, I’m looking for an experienced developer who can help convert an existing cTrader indicator into a fully functional Quantower indicator . I already have the complete source code for the cTrader indicator (written in C#) , and I would like the same logic, behavior, and visual output to be accurately replicated in Quantower

Informações sobre o projeto

Orçamento
30 - 50 USD