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

İş tamamlandı

Tamamlanma süresi: 15 gün

İş Gereklilikleri

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


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(18)
Projeler
22
9%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
1
5%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(250)
Projeler
313
28%
Arabuluculuk
34
26% / 65%
Süresi dolmuş
10
3%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(22)
Projeler
29
3%
Arabuluculuk
4
25% / 0%
Süresi dolmuş
3
10%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(442)
Projeler
570
37%
Arabuluculuk
106
39% / 33%
Süresi dolmuş
17
3%
Serbest
5
Geliştirici 5
Derecelendirme
(238)
Projeler
281
77%
Arabuluculuk
12
75% / 0%
Süresi dolmuş
4
1%
Serbest
6
Geliştirici 6
Derecelendirme
(8)
Projeler
12
0%
Arabuluculuk
22
0% / 77%
Süresi dolmuş
4
33%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(60)
Projeler
87
29%
Arabuluculuk
24
13% / 58%
Süresi dolmuş
7
8%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(140)
Projeler
149
41%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
1
1%
Çalışıyor
9
Geliştirici 9
Derecelendirme
(19)
Projeler
23
48%
Arabuluculuk
10
0% / 100%
Süresi dolmuş
2
9%
Serbest
10
Geliştirici 10
Derecelendirme
(304)
Projeler
310
69%
Arabuluculuk
2
100% / 0%
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
11
Geliştirici 11
Derecelendirme
(325)
Projeler
506
19%
Arabuluculuk
33
42% / 30%
Süresi dolmuş
34
7%
Meşgul
12
Geliştirici 12
Derecelendirme
(452)
Projeler
565
26%
Arabuluculuk
24
42% / 38%
Süresi dolmuş
85
15%
Serbest
Yayınlandı: 6 kod
13
Geliştirici 13
Derecelendirme
(104)
Projeler
167
25%
Arabuluculuk
23
9% / 78%
Süresi dolmuş
16
10%
Çalışıyor
14
Geliştirici 14
Derecelendirme
(309)
Projeler
554
35%
Arabuluculuk
78
32% / 42%
Süresi dolmuş
200
36%
Yüklendi
15
Geliştirici 15
Derecelendirme
(13)
Projeler
13
38%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
8%
Serbest
Benzer siparişler
Chin 30 - 300 USD
i want to add the 30m time frame in the ema section high ema is 1h low ema is 5m i want u to add a mid ema so i can use 3 time frames
I’ve been following your profile and I'm interested in your expertise with the ATAS API and C# development. I have a clear technical scope for a high-performance M1 indicator focused on Binary Options and Scalping. ​The core logic is based on institutional Order Flow convergence: ​Stacked Imbalances: 300% ratio with a minimum of 3 consecutive levels. ​Delta/Price Divergence: Filtering for market exhaustion (New Highs
Hello, Please read the full specification before applying. This project is NOT about building an EA from scratch. I already have a fully working MT5 Expert Advisor. The EA already includes a dashboard, risk management, and some protection systems, but it needs a few more features . So I need an experienced MQL5 developer to modify my existing MT5 EA by replacing the current entry logic with a new breakout strategy
Copying third party from telegram. I have quite a number of them There is many different of them, I will consolidate all of them and send you Usually is a price range, so when hit the range will trigger Option for both fix or scale with equity I would like to have both, option to choose to follow the SL/TP signal provided or not This copier will trigger my DCA bot function. So don’t need set max position limit and
can you help me with editing the existing ATR Trailing Stop Indicator to include a logic to include additional script, where my ninZaRenko bars when it closes above OR below the dynamic stop line, I will be out of trade. Please remember, in this Indicator, now when the price touches the stop line, I am stopped out .. . I want to edit the script, in lieu of the price touch, I like to update this logic to when the bar
TORUNZ 😎 30+ USD
The robot should use different indicators for a example smart money indicator and market structure structure and break indicators in order for it to enter the market, it should also be able to tell false breakouts is the Bollinger indicator, and if the market is confirmed to be profitable,the robot should rebuy or resell the market according to the predictions made, it should execute the trades if the market reverses
I need an advisor created that opens a position with 0.10 lot size when a bull cross arrow appears on the m5 time frame and closes the trade after exactly one candle stick, the ea does the same thing over and over, a bull cross appear on m5 timeframe, and it opens 1 position with 0.10 lot size, and closes it after one candlestick on m5... If possible, provide a demo version
Description I am looking for an experienced MQL5 developer to investigate and fix a suspected memory or resource usage issue in my MT5 Expert Advisor. The EA itself works correctly from a strategy and trading logic perspective . The trading model must remain exactly as it currently operates. I am not looking for any changes or optimisation to the strategy . The goal of this job is purely to identify and fix a
Busco un robot para trading de scalping en oro o forex, el robot debe ser rentable en esos mercados, podemos automatizar mi estrategia basada en medias móviles con estrategia de scalping o bien si él desarollador tiene uno que funcione así y sea rentable podemos ver la opción de un demo o cuenta de lectura para estar seguros de la rentabilidad en el robot
MT4 EA TO TAKE TRADES FROM (A) HYDRA TREND RIDER AND (B) IQ GOLD GANN LEVELS ON MQL5.COM The MT4 version of these two indicators can be found on the mql5.com website with the following links: Hydra Trend Rider: https://www.mql5.com/en/market/product/111010?source=Site +Profile+Seller IQ Gold Gann Levels: https://www.mql5.com/en/market/product/134335?source=Site +Profile+Seller (1) ENTRY (a) Hydra Trend Rider

Proje bilgisi

Bütçe
30 - 50 USD