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

MQL5 Esperti

Specifiche

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


File:

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

Con risposta

1
Sviluppatore 1
Valutazioni
(15)
Progetti
20
0%
Arbitraggio
2
0% / 100%
In ritardo
4
20%
In elaborazione
2
Sviluppatore 2
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 2 articoli
3
Sviluppatore 3
Valutazioni
(4)
Progetti
7
0%
Arbitraggio
2
50% / 50%
In ritardo
3
43%
Caricato
4
Sviluppatore 4
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
5
Sviluppatore 5
Valutazioni
(176)
Progetti
227
19%
Arbitraggio
20
40% / 20%
In ritardo
0
Caricato
6
Sviluppatore 6
Valutazioni
(52)
Progetti
89
25%
Arbitraggio
8
75% / 13%
In ritardo
44
49%
Gratuito
7
Sviluppatore 7
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
9
Sviluppatore 9
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
In elaborazione
10
Sviluppatore 10
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
1
0% / 100%
In ritardo
0
In elaborazione
11
Sviluppatore 11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(103)
Progetti
111
31%
Arbitraggio
3
33% / 33%
In ritardo
2
2%
Caricato
13
Sviluppatore 13
Valutazioni
(4)
Progetti
4
50%
Arbitraggio
5
0% / 100%
In ritardo
0
Gratuito
14
Sviluppatore 14
Valutazioni
(13)
Progetti
19
32%
Arbitraggio
6
33% / 50%
In ritardo
0
Gratuito
15
Sviluppatore 15
Valutazioni
(1)
Progetti
1
100%
Arbitraggio
0
In ritardo
0
Gratuito
16
Sviluppatore 16
Valutazioni
(294)
Progetti
469
39%
Arbitraggio
102
40% / 24%
In ritardo
77
16%
Caricato
Pubblicati: 2 codici
17
Sviluppatore 17
Valutazioni
(64)
Progetti
144
46%
Arbitraggio
19
42% / 16%
In ritardo
32
22%
Gratuito
Ordini simili
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
Hi, is this signal enough for a bot to trade on attached images. its literally just a telegram channel I have access to, the trader avg's 10% weekly for the last 2 years, but I do not have the time to copy trade so wanted to find a solution, all he does is send TV screenshots of his entry/sl/tp and then sends updates as he manages the trade. I thought about hiring someone in a similar timezone to the trader (hes in
Modifiedea 30+ USD
Please my robot doesn’t open trades and I also believe it the ma crossover and others please I want the ma crossover to be fixed.also add trade directions to parameter for both, only sell, or only buys. Please also correct the balance drawdown and equity drawdown if it’s not working.the ea would be carefully tested for assessment l. Also source code will be handed before Payment. Only 30bucks for budget
I need an MT4/MT5 EA modification. Requirements: 1. Equity protection based on DAILY and TOTAL drawdown 2. Automatically close all trades when limit is hit 3. Disable trading after drawdown hit 4. Email notification when: - Daily loss limit reached - Total loss limit reached 5. EA must work on multiple accounts simultaneously 6. Clean and error-free code 7. Compatible with MT5 (or MT4 mention yours)
If you have profitable strategy or profitable EA on the gold pair without martingale / Hedge, then share me the EA with expiry time to back test and to test on the live market. Platform: MT5 pair: Gold Non-Martingale, No Hedging. Need Source Code
This indicator will code into MT5 EA. Trade on live, demo and strategy tester. No repaint, no redraw and stable on chart. 1. Include all inputs variable and value, Lots size in points adjustable, TP in points true or false adjustable, SL in points true or false adjustable, close position on opposite signal true or false, Use pending order true or false, use BE points true or false, use slippage point true or false
Good day, I am searching the very high level expert, which could create the auto-trade robot and I would like to order the trading robot for GOLD XAU/USD auto-trade on MetaTrader. I could pay a lot for the institutional grade auto-trade robot, just contact me and let me know what level of the robot you could offer and we will negotiate the price

Informazioni sul progetto

Budget
50 - 150 USD
Scadenze
a 14 giorno(i)

Cliente

Ordini effettuati1
Numero di arbitraggi0