Add Smart Early Exit Logic to Existing XAUUSD M15 EA

Specification

I am looking for an experienced MQL5 developer to research, develop, and integrate a Smart Early Exit system into my existing XAUUSD EA.

The EA is already fully functional. The objective of this job is not to redesign the strategy or modify the entry logic, but to improve how losing trades are managed.

The Early Exit system should identify trades that are showing signs of genuine deterioration and close them before they reach the full Stop Loss, while avoiding unnecessary closure of trades that are temporarily negative but could still recover.

Current Baseline Performance

Backtest period: 01/01/2025 – 31/08/2026

  • Profit Factor: 1.42
  • Total Trades: 2,820
  • Average Win Rate: ~88%
  • Recovery Factor: 3.78
  • Biggest Losing Trade:-12 164.45
  • Biggest Winning Trade:
    5 990.00

The developer will receive the original EA and the baseline backtest/settings used for comparison.

Main Objective

Develop an Early Exit system focused specifically on reducing the impact of losing trades.

The system should distinguish, as much as reasonably possible, between:

  • Normal temporary drawdown that later recovers
  • Genuine trade deterioration that is likely to result in a large loss or full Stop Loss

Possible approaches may include market structure, adverse price movement, volatility/ATR, momentum deterioration, trend deterioration, time in trade, MAE/MFE analysis, or a combination of limited and explainable conditions.

I am open to the developer proposing the most appropriate approach after analyzing the EA and its trade behaviour.

Performance Targets

After implementation, the target is:

  • Profit Factor: ≥ 1.58
  • Recovery Factor: ≥ 3.80
  • Win Rate: 75–80% is acceptable
  • Reduce the biggest losing trade by approximately 10–20%
  • Preserve the biggest winning trade as much as possible
  • Avoid materially increasing Drawdown
  • Avoid excessive reduction in trade frequency

These figures should be treated as optimization/validation targets rather than achieved by simply over-optimizing the backtest.

Important Restrictions

The following parts of the EA should remain unchanged unless explicitly agreed:

  • Entry logic
  • BUY/SELL entry conditions
  • Trading sessions
  • Core strategy logic

The work should focus on trade management and Early Exit logic only.

The Early Exit should primarily affect trades that are already in loss or showing clear deterioration. Profitable trades should not be unnecessarily closed by the new system.

Validation

I want the developer to compare the original EA against the modified EA using the same historical period and settings.

I also prefer the final solution to be validated on Out-of-Sample data or another reasonable validation method to reduce the risk of overfitting.

The final delivery should include:

  • Modified MQL5 source code
  • Early Exit parameters/settings
  • Explanation of the implemented Early Exit logic
  • Before/after backtest comparison
  • Profit Factor
  • Recovery Factor
  • Win Rate
  • Total Trades
  • Maximum Drawdown
  • Biggest Winning Trade
  • Biggest Losing Trade
  • Number/percentage of trades closed by the Early Exit system



Responded

1
Developer 1
Rating
(622)
Projects
726
34%
Arbitration
47
49% / 40%
Overdue
14
2%
Loaded
2
Developer 2
Rating
(398)
Projects
516
23%
Arbitration
61
57% / 25%
Overdue
60
12%
Working
3
Developer 3
Rating
(1)
Projects
3
0%
Arbitration
0
Overdue
0
Working
4
Developer 4
Rating
(22)
Projects
28
7%
Arbitration
9
33% / 33%
Overdue
1
4%
Working
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(258)
Projects
269
29%
Arbitration
2
50% / 0%
Overdue
3
1%
Working
Published: 2 codes
7
Developer 7
Rating
(20)
Projects
28
39%
Arbitration
8
25% / 38%
Overdue
2
7%
Loaded
Published: 8 articles, 35 codes
8
Developer 8
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
9
Developer 9
Rating
(13)
Projects
22
41%
Arbitration
8
0% / 50%
Overdue
3
14%
Free
10
Developer 10
Rating
(3)
Projects
9
67%
Arbitration
0
Overdue
0
Working
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
(9)
Projects
11
27%
Arbitration
0
Overdue
2
18%
Working
Published: 1 code
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(2)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
16
Developer 16
Rating
(211)
Projects
274
21%
Arbitration
24
54% / 17%
Overdue
0
Working
17
Developer 17
Rating
(54)
Projects
66
41%
Arbitration
15
27% / 60%
Overdue
1
2%
Loaded
18
Developer 18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
(59)
Projects
92
42%
Arbitration
4
0% / 100%
Overdue
3
3%
Working
20
Developer 20
Rating
(25)
Projects
33
18%
Arbitration
6
50% / 33%
Overdue
4
12%
Free
21
Developer 21
Rating
(6)
Projects
8
38%
Arbitration
1
100% / 0%
Overdue
2
25%
Free
22
Developer 22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Developer 23
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
24
Developer 24
Rating
(64)
Projects
144
46%
Arbitration
21
38% / 24%
Overdue
32
22%
Free
Similar orders
I need a professional AI-assisted Forex trading Expert Advisor (EA) for MetaTrader 5. The EA should not be based on a simple single indicator strategy. I want a robust multi-factor trading system that can analyze market conditions, trend, momentum, volatility, price action and risk before entering a trade. Requirements: Forex trading on MT5 Automated analysis and trade execution Dynamic entry and exit decisions Stop
Hey guys, I’ve got an MT4 HFT EA that’s showing strong results on an IC Markets demo account, and I'm looking to move it over to MT5. Does anyone have a solid MT5 version that performs well on IC Markets? Having the source code (MQL5) included would be awesome. Thanks for any leads
Scalping EA/straddle 30 - 200 USD
Title: Custom EA: Dynamic Trailing Limit Grid with Volatility/Velocity Filter and Auto SL/TP Description: I am looking for an experienced MQL5 programmer to develop a high-performance, robust Expert Advisor (EA) for MetaTrader 5. The strategy relies on dynamic trailing limit orders that automatically adjust to market price changes, featuring a safety buffer during high-velocity price spikes. The EA must include the
Should be as it but no alarms, also we need to add a deep search so he can see all the preves candles and a memory function so its not slowing down the indicator. for higher time frames daily 4h 1h around 365 days and for lower time frames we do up to 20k bars but both flexible so i can change it later. the memory is important so the indicator is not always recalculating everything when a new candle shows especially
Hi, I need an experienced NinjaTrader 8/NinjaScript developer to finish or rebuild an automated futures strategy, ideally by the end of this week. I already have the complete TradingView Pine Script reference strategy, an existing ~2,000-line NinjaScript implementation, Playback logs, and known historical benchmark trades. MOST IMPORTANT REQUIREMENT: TRADINGVIEW ↔ NINJATRADER PARITY. The Pine Script is the reference
PHANTOM PROTOCOL V1 35 - 150 USD
PHANTOM PROTOCOL V1 – MT5 EXPERT ADVISOR SPECIFICATION Develop a professional MetaTrader 5 (MT5) Expert Advisor named “PHANTOM PROTOCOL V1”. PRIMARY MARKET: - XAUUSD (Gold) - Designed primarily for M15 and H1 timeframes. - The EA must work with both 3-digit and 2-digit gold pricing where applicable. TRADING LOGIC: Use pure price-action and market-structure analysis rather than relying on a single indicator. The EA
I need an experienced trading-data specialist who can help me obtain 3–4 years of historical market data compatible with NinjaTrader 8 . The data will be used for trading strategy development, backtesting, and analysis
Need aggressive M1 gold scalper rewrite of Dev3 + 8 strategies. INPUTS: RiskPercent=3, TP=400, SL=300, MaxTrades=6, Mode=BOTH, DailyProfit 15%, DailyLoss -10% LOT = Balance * RiskPercent / 1000 - works for Cent R350 and $1000. 8 STRATEGIES any true = open instantly, check 1 sec: 1 EMA8/21 cross 2 RSI14 30/70 + engulf 3 Engulfing candle 4 BB 20,2 breakout 5 FVG grab M1 6 M5 trend + M1 entry 7 Wick rejection >2 8
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Gold hunter v5 30+ USD
*TITLE:* 5 Trades EA - EMA20/50 + RSI - Safe for Small Account *SPECIFICATION:* I need MT5 EA - Source Code .mq5 *Logic:* Buy: EMA20 > EMA50 and RSI(14) 45-70 Sell: EMA20 < EMA50 and RSI(14) 30-55 Timeframe M15, Symbol XAUUSD and all Forex *Trade Management:* Max 5 trades at same time. Fixed lot 0.01. No martingale. No lot increase. Distance between trades 150 points. Do not open all 5 at same price. Max 5 total

Project information

Budget
100 - 200 USD
VAT (17%): 17 - 34 USD
Total: 117 - 234 USD
For the developer
90 - 180 USD
Deadline
from 14 to 30 day(s)

Customer

Placed orders1
Arbitrage count0