Техническое задание
I am looking for a developer experienced in EAs, MT5 and trade management optimization to help me add an intelligent early-exit system to my existing XAUUSD trading robot.
The EA is already fully functional and performs best on the M15 timeframe. The entry strategy, BUY/SELL logic, sessions and core structure are already implemented.
The work should focus exclusively on adding early exits for trades that are currently floating in loss, with the objective of reducing large losing trades before they reach the full Stop Loss.
The new exit logic should not interfere with profitable trades or significantly reduce the EA's original trading frequency.
Current EA Status
- Symbol: XAUUSD ONLY
- Platform: MT5
- Main Timeframe: M15
- Broker: UltimaMarkets
- Backtest period: January 2025 – September 2026
- Current Profit Factor: 1.42
- Current Win Rate:88%
- Total trades: approx. 2,820
- EA is fully functional
Optimization Objectives
- Add Smart Early Exit logic only for trades floating in loss
- Target a Profit Factor of at least 1.65
- Maintain a Win Rate of approximately 73–80% or higher
- Preserve at least 85–90% of the original trade frequency
- Avoid reducing total trades by more than approximately 10–15%
- Reduce average loss and large/full Stop Loss trades
- Preferably reduce Drawdown and improve Recovery Factor
- Do not modify the EA's core entry strategy
The exit system may use conditions such as ATR, momentum deterioration, EMA/trend invalidation, RSI, market structure, time in trade, adverse price movement or a combination of filters.
I am open to the developer proposing the most appropriate Smart Exit logic after analyzing the EA and its losing trades.
Expected Deliverables
- Modified .mq5 source code
- Compiled .ex5
- Configurable Smart Loss Exit inputs
- Full backtest results
- Comparison between the original EA and the modified version
- Testing using UltimaMarkets conditions/environment
- Preferably Out-of-Sample / Forward Testing validation to reduce overfitting
I will provide the existing EA source code, current settings and backtest results.
The objective is not to create a new strategy, but to improve the existing EA by reducing the impact of losing trades while preserving its high win rate and trade frequency.