MT5 (MQL5) EA — Port my Python DC-WAD Donchian strategy (tick-driven, state machine, partial TP, PSAR/Stoch trailing, optional retracement)

MQL5 Uzman Danışmanlar

İş Gereklilikleri

I have a working Python backtester for my “DC-WAD Donchian” strategy. I need a MetaTrader 5 Expert Advisor (MQL5) for live trading that matches the Python logic as closely as possible (no lookahead).

✅ Critical requirement (must accept)

EA must be tick-driven for entries/exits (touch logic).
Bar-close approximation is not acceptable.


Timeframes

  • Strategy runs on a single Setup Timeframe (HTF) (user input, e.g., M30/H1/H4 etc.)

  • Optional LTF for intraday ambiguity exists in Python, but NOT required for this milestone (we will skip ambiguity mode).


Core logic (must replicate)

1) Donchian + state machine

  • Long/short mirror

  • States: 00 → 01 → 02 → 03

  • Setup01 validity: t+3 is last chance; when count reaches 4 → invalidate/reset

2) WAD filter

  • Compute WAD internally + WAD SMA(n)

  • Optional HTF WAD filter + optional WAD source mode (as per Python)

3) ATR risk filter

  • Reject if risk distance > k * ATR(n)

  • ATR must match Python: ATR = SMA(TrueRange, n) (not Wilder)


Entry modes (inputs)

  1. Normal (breakout) entry

  2. Optional retracement limit entry

  • limit at p% retracement (e.g., 50%)

  • include time window inputs if needed (signal/fill windows)

Required retracement rule:

  • If retracement limit becomes worse than breakout entry:

    • LONG: if limit > breakout_entry → clamp to breakout_entry

    • SHORT: if limit < breakout_entry → clamp to breakout_entry


Trade management

  • TP1 closes 50%

  • TP2 manages remaining 50% via trailing (input select):

    • PSAR trailing OR Stochastic trailing

  • Trailing is tighten-only

  • Trailing starts after TP1 as per Python rules

PSAR freeze rule (must implement):

  • Maintain last_valid_psar

  • LONG: update only when PSAR below close; else freeze

  • SHORT: update only when PSAR above close; else freeze

  • Use closed bars only (no lookahead).


Execution rules (tick-based)

  • Stop/limit triggers by Bid/Ask touch on ticks

  • Partial close logic must work in live + tester

  • Respect spread (Bid/Ask). No “mid price” assumptions.


Logging

  • Export CSV trade log (minimum):

    • entry time/price, exit(s), SL, TP1/TP2, side, session/tag, reason codes, PnL, R-multiple


Deliverables

  • Full .mq5 source, clean + commented

  • Inputs grouped clearly

  • Short README: how to test + any differences vs Python


Dosyalar:

JPEG
1.jpeg
120.2 Kb
JPEG
2.jpeg
60.4 Kb
JPEG
3.jpeg
198.7 Kb
JPEG
4.jpeg
70.5 Kb
JPEG
5.jpeg
222.0 Kb
JPEG
6.jpeg
105.7 Kb
JPEG
7.jpeg
118.3 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(15)
Projeler
20
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
4
20%
Yüklendi
2
Geliştirici 2
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 2 makale
3
Geliştirici 3
Derecelendirme
(4)
Projeler
7
0%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
3
43%
Yüklendi
4
Geliştirici 4
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(176)
Projeler
227
19%
Arabuluculuk
20
40% / 20%
Süresi dolmuş
0
Çalışıyor
6
Geliştirici 6
Derecelendirme
(52)
Projeler
89
25%
Arabuluculuk
8
75% / 13%
Süresi dolmuş
44
49%
Serbest
7
Geliştirici 7
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
9
Geliştirici 9
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
10
Geliştirici 10
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Çalışıyor
11
Geliştirici 11
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
(103)
Projeler
111
31%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
2
2%
Yüklendi
13
Geliştirici 13
Derecelendirme
(4)
Projeler
4
50%
Arabuluculuk
5
0% / 100%
Süresi dolmuş
0
Serbest
14
Geliştirici 14
Derecelendirme
(13)
Projeler
19
32%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
0
Serbest
15
Geliştirici 15
Derecelendirme
(1)
Projeler
1
100%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
16
Geliştirici 16
Derecelendirme
(294)
Projeler
469
39%
Arabuluculuk
102
40% / 24%
Süresi dolmuş
77
16%
Yüklendi
Yayınlandı: 2 kod
17
Geliştirici 17
Derecelendirme
(64)
Projeler
144
46%
Arabuluculuk
19
42% / 16%
Süresi dolmuş
32
22%
Serbest
Benzer siparişler
Hello, I’m looking for an experienced MT4 (MQL4) developer to convert the Lucky Reversal indicator from indicatorspot.com into a fully functional Expert Advisor (EA). Project Scope Code an MT4 EA that replicates the exact logic and signals of the Lucky Reversal indicator Trades should open and close automatically based on the indicator’s rules Must match indicator behavior 1:1 (no approximations) EA Requirements MT4
This is a request for a formal price quote only. No work should begin until the quote is accepted. I am requesting a quantitative audit of an existing trading strategy. Scope (strict): 10-year historical backtest Full performance metrics (expectancy, win rate, profit factor, max drawdown, trade distribution) Identification of logical flaws, bias, and overfitting Rule-based corrections only if justified by data
I am looking for a senior MQL5 developer to build a custom MT5 Expert Advisor using a dual-engine grid structure (BUY + SELL operating independently). The EA will be used in a real operating business with live clients, so the implementation must be clean, deterministic and reliable. I already have a complete specification describing all the required logic (entry rules, grid logic, basket TP, break-even behavior
I would like to request the development of an Expert Advisor (EA) for MetaTrader 5 with the following specifications: 1. Instruments: NASDAQ (US100) Dow Jones (US30) DAX (DE40) 2. Opening Range Selection: The EA should allow me to manually select a specific time range on the chart. Example: US100 opening range from 14:30 UTC to 14:45 UTC (15-minute opening range for the US market). The EA should automatically
Hello, I have the code for an indicator file that works with binary options. I want to make a simple modification to it that won't take much effort for professionals. In short, the modification I want is that if the strategy's conditions are met, a buy or sell signal should appear at 17:55. The strategy works exclusively on the 5-minute timeframe, and I want to delay the signal by 7 minutes so that it appears and
描述(项目概述): 我需要为 MetaTrader 5 平台开发一个功能完整的智能交易系统( 专家顾问 ),用于交易 XAUUSD (伦敦金)。该 艺电 的核心是基于一份详细的技术规格书,实现一个多指标共振、多层条件过滤的短线反转策略。 1. 核心策略逻辑简述: 交易品种与周期:主交易周期为 M30 ,需在代码内部动态读取 H4 周期进行趋势过滤,并监控 M5 周期以执行复杂的出场逻辑。 入场机制:采用 “ 价格触发 -> 成交量确认 -> 多指标渐进式达标 ” 的严格流程。入场信号需在特定时间窗口内,同时满足布林带突破及 5 个动量指标( CCI、RSI、MFI, 威廉指标, 随机指标)的超买 / 超卖条件,并受 H4 级别趋势过滤器约束。 出场机制:采用三层递进逻辑,包括动态保本移动、 M5 周期指标集体反转信号以及基于 K 线形态的趋势反转终极止损。
SMC, etc.) - Backtest results and the set files you used - Whether you’re willing to make minor tweaks so I can use it as my own If the performance looks good, we can discuss adjustments and next steps. My requirements are screenshot, backtes results, demo fileS Let me know if you have anything that fits the bill
iF you already have an successful MT4 EA for scalping in M5 XAUUSD [and eventually EURUSD and USDJPY] working essentially ON the trend when there is an Break Of Structure but also on reversal eventually with strategy Martingale with param ON/OFF eventually with strategy Grid with param ON/OFF eventually with HEDGING with param ON/OFF and on each trade : Stop loss, Trailing sl without High Frequency Trades [means
"I'm searching for a genuinely aggressive, high-risk / ultra-high-reward Expert Advisor (EA) optimized for MetaTrader 5 , capable of running on a very small real account of $100 (or cent/micro account equivalent). Key requirements: Strategy type : Preferably martingale , grid + martingale hybrid , aggressive scalping with recovery , or any other explosive growth-oriented approach (Bollinger/martingale, hedging grid
looking for EA using zone recovery strategy. would like to make small per cent daily with small drawdown. it is a martingale hedge system. Please make the entry based on your own judgement

Proje bilgisi

Bütçe
50 - 150 USD
Son teslim tarihi
to 14 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0