指定
I need an experienced MQL5 developer to modify my existing MT5 EA by replacing the current entry logic with a new breakout strategy and implementing strict prop-firm safety protections.
The EA must behave exactly as specified below.
If the final EA does not match the logic described, I will request revisions until it does.
SYMBOL AND TIMEFRAME
Symbol: USDJPY
Timeframe: M15 only
TRADING SESSION
Trades may only open between:
06:30 – 12:00 London time
No new trades allowed outside this window.
Open trades may remain active until TP or SL is hit.
MAXIMUM SIGNALS
Maximum 2 trade signals per day.
Only one signal can be active at a time.
Each signal opens two positions.
ENTRY LOGIC (BREAK OF STRUCTURE)
The EA must detect breakout of recent price structure.
Parameter: Lookback candles (default = 5)
BUY SIGNAL
-
Find highest high of the last X candles.
-
If current candle breaks above that level → BUY signal.
SELL SIGNAL
-
Find lowest low of the last X candles.
-
If current candle breaks below that level → SELL signal.
Trades are opened using market orders.
BREAKOUT STRENGTH FILTER (STABILITY TWEAK)(Make this feature configurable in the input section alongside other parameters )
To avoid fake breakouts the breakout candle must meet this condition:
Candle body size ≥ X % of ATR(14)
Default: 30%
If candle body is smaller than this threshold the signal must be ignored.
STOP LOSS LOGIC
Stop loss must be dynamic.
BUY trade
SL = Low of the previous candle
SELL trade
SL = High of the previous candle
Minimum stop loss distance = 10 pips.
If the previous candle SL distance is smaller than 10 pips, SL must default to 10 pips.
POSITION STRUCTURE
Each signal opens TWO positions.
Risk per position configurable.
Default risk: 0.5% equity per position.
Total risk per signal = 1%.
TAKE PROFIT STRUCTURE
Position 1
TP = 1 × SL distance
Position 2
TP = 2 × SL distance
BREAK EVEN / PROFIT LOCK
When price reaches 1R (distance equal to SL):
Position 1 closes automatically.
Position 2 Stop Loss must move to +1R (locking profit).
Position 2 remains open targeting TP = 2R.
SPREAD FILTER
Trades must only open when spread is below configurable threshold.
Default:
Max spread = 1.5 pips (USDJPY)
................................................................................................
SLIPPAGE FILTER
Trades must only open when slippage is below configurable threshold.
Default:
Max spread = 2 pips (USDJPY)
NEWS FILTER
EA must include a working economic news filter.
Block trading before and after high-impact news.
Default values:
Stop trading 30 minutes before high impact news
Resume trading 30 minutes after
Must use reliable news source such as ForexFactory or built-in economic calendar.
PROP FIRM SAFETY CONTROLS
The EA must include protection settings suitable for prop firm rules.
Parameters:
Max daily drawdown %
Max total drawdown %
Max trades per day
Max signals per day
Equity protection stop
If limits are reached, trading must stop automatically.
TRADE RANDOMIZER
Include optional execution randomization to reduce identical trading patterns.
Parameters:
Entry delay randomization (0–3 seconds)
SL/TP slight randomization (0–2 points)
Trade open timing variance
This feature must be optional and configurable.
RISK MANAGEMENT
Risk per position must be adjustable( 0.5% per position per equity by default ).
Examples:
0.3%
0.5%
0.7%
1%
Lot size must automatically calculate based on stop loss distance and account equity.
INPUT PARAMETERS REQUIRED
Lookback candles (default 5)
ATR breakout filter %
ATR period
Minimum stop loss pips
Risk per position
Max daily signals
Trading session start/end
Spread limit
Slippage limit
News filter on/off
News block time
Trade randomizer on/off
Daily drawdown limit
Total drawdown limit
BACKTEST REQUIREMENTS
EA must run correctly in MT5 Strategy Tester.
We only run backtest on (Every tick based on the real ticks)
Developer must verify:
Real tick backtesting compatibility
Correct lot sizing
Correct break-even behavior
No trade duplication
No repainting logic
Visual backtest mode must show trades clearly on chart.
DELIVERABLES
-
Full MT5 EA source code (.mq5)
-
Compiled file (.ex5)
-
Clean and readable code
-
Instructions for installation
-
At least one revision round if small adjustments are needed
The EA must execute trades exactly as described.
Only experienced MT5 developers please.