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

MQL5 Experts

Specification

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


Files:

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

Responded

1
Developer 1
Rating
(15)
Projects
20
0%
Arbitration
2
0% / 100%
Overdue
4
20%
Working
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
Published: 2 articles
3
Developer 3
Rating
(4)
Projects
7
0%
Arbitration
1
100% / 0%
Overdue
3
43%
Loaded
4
Developer 4
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(176)
Projects
227
19%
Arbitration
19
42% / 16%
Overdue
0
Working
6
Developer 6
Rating
(52)
Projects
89
25%
Arbitration
8
75% / 13%
Overdue
44
49%
Free
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
10
Developer 10
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Working
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(103)
Projects
111
31%
Arbitration
3
33% / 33%
Overdue
2
2%
Loaded
13
Developer 13
Rating
(4)
Projects
4
50%
Arbitration
5
0% / 100%
Overdue
0
Free
14
Developer 14
Rating
(13)
Projects
19
32%
Arbitration
6
33% / 50%
Overdue
0
Free
15
Developer 15
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(294)
Projects
469
39%
Arbitration
102
40% / 24%
Overdue
77
16%
Loaded
Published: 2 codes
17
Developer 17
Rating
(64)
Projects
144
46%
Arbitration
19
42% / 16%
Overdue
32
22%
Free
Similar orders
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
Looking to purchase a EA for Gold and US30 with source Requirements: must have proper built in Risk Management Must yield good profit factor and recovery Factor Must work on any Broker Must have less than 15% drawdown Year over Year Z-Score should be high Consecutive Profits Must Outweigh Consecutive losses atleast 3/1 Must be able to work on accounts from 100USD and up Testing must be based off of real Tick Values
I’m looking for a NinjaTrader 8 developer to build or customize a fully automated futures strategy . Goals: Target ~$100/day (consistency over aggression) Long-term survivability (not scalping hype) Requirements: Trade ES/MES or NQ/MNQ Fixed risk per trade Daily profit & loss limits Time/session filters Break-even & trailing stop logic Full NT8 strategy (not indicator) Nice to have: Backtest + optimization
Je cherche un développeur pour un bot Fundednext pour le passage de challenge jusqu'au trading quotidien après le passage.le robot va s'occuper du compte du début à la suite du compte de 15k chez Fundednext.après le passage aux challenges,le robot doit être capable de me fournir 6-10% mensuel de rendement de ce compte. Il doit être capable de passer le challenge dans un bref délai de 2-3 semaine ou soit 10-15 jours

Project information

Budget
50 - 150 USD
Deadline
to 14 day(s)

Customer

Placed orders1
Arbitrage count0