Optimised Set Files for The Impossible EA
The Impossible EA — Settings and Optimisation Reference
This post covers the default parameters for The Impossible EA v4.91, the v4 optimised .set file changes, and how to load a .set file in MT5.
Looking for The Impossible Gold (XAUUSD) settings? See the dedicated Gold Optimisation Settings.
Signal: mql5.com/en/signals/2362924
The EA works out of the box — click Reset in the inputs tab and trade. Default parameters are genetically optimised on 3 years of EURUSD M5 data (2023-2025).
Important — Broker Spread Impact: EURUSD results are highly sensitive to broker spreads. The pullback strategy targets just 20 pips TP and breakout targets 31 pips — at these levels, even 1 pip of extra spread costs 3-5% of profit per trade, compounding over hundreds of trades. For best results, use a broker with tight EURUSD spreads.
Default Parameters (v4.91)
Pullback Strategy
| Parameter | Default |
|---|---|
| PB_Enabled | true |
| TP_Pips | 20 |
| SL_Pips | 5 |
| PB_TrendEMA | 50 |
| PB_PullbackEMA | 20 |
| PB_RSI_Low / High | 40 / 60 |
| PB_MinADX / MaxADX | 15 / 35 |
| PB_MinEMASlope | 0.12 |
| PB_SessionStart / End | 9 / 12 GMT |
| PB_TradeDirection | 1 (Buy Only) |
| PB_MinBarsBetween | 11 |
| PB_MaxLossesPerDay | 3 |
| PB_MaxTradesPerDay | 2 |
| PB_BlockWednesday | true |
| PB_BlockFriday | true |
| PB_BlockDNRegime | true |
Breakout Strategy
| Parameter | Default |
|---|---|
| BO_Enabled | true |
| BO_TP_Pips / SL_Pips | 31 / 12 |
| BO_LookbackBars | 60 |
| BO_BufferPips | 3.0 |
| BO_MinRange / MaxRange | 10 / 80 |
| BO_SessionStart / End | 8 / 16 GMT |
| BO_ExcludeStart / End | 14 / 15 |
| BO_SellExcludeStart / End | 10 / 12 |
| BO_BuyExcludeStart / End | 8 / 10 |
| BO_BuyExclude2Start / End | 14 / 15 |
| BO_MinBarsBetween | 5 |
| BO_BlockTuesday | true |
| BO_BlockWednesday | true |
| BO_BlockFriday | true |
RSI Reversal Strategy
| Parameter | Default |
|---|---|
| RSI_Enabled | true |
| RSI_TP_Pips / SL_Pips | 6 / 6 |
| RSI_Period | 8 |
| RSI_Oversold / Overbought | 30 / 70 |
| RSI_MaxADX | 25 |
| RSI_SessionStart / End | 6 / 16 GMT |
| RSI_BlockWednesday | true |
Risk and Trade Management
| Parameter | Default |
|---|---|
| RiskPerTrade | 3.0% |
| CompoundAggressive | true |
| MaxOpenTrades | 1 |
| MaxDailyLoss | 30% |
| MaxDrawdown | 50% |
| MaxSpread | 20 |
| CooldownBars | 4 |
| MaxTradesPerHour | 10 |
| UseBreakeven | true (trigger 10, offset 3) |
| UseTrailingStop | true (start 10, step 6) |
| SpreadMultiplier | 3 |
| EnableShield | true (400% arm, 10% DD) |
Regime Filter
| Parameter | Default |
|---|---|
| EnableRegimeFilter | true |
| RegimeEMAPeriod | 50 |
| RegimeLookback | 4 |
| RegimeMinSlope | 0.30 |
| RegimeDirectional | false |
| RegimeAllowFlat | false |
News Filter
| Parameter | Default |
|---|---|
| EnableNewsFilter | true |
| NewsMinutesBefore | 30 |
| NewsMinutesAfter | 15 |
v4 Optimised Set File
v4 is a reliability upgrade over v3. The v3 .set was OHLC-optimised with a 5-pip SL that showed strong in-sample results — but on Every Tick (Random Delay), the tight SL was affected by real spreads and slippage. v4 fixes this with wider SL/TP calibrated to actual ATR, reduced risk sizing, and a consecutive-loss circuit breaker.
What changed from defaults to v4:
| Parameter | Default | v4 | Why |
|---|---|---|---|
| SL_Pips | 5 | 10 | 5 pips too tight for real tick data — normal spread/slippage triggers stop before move develops |
| TP_Pips | 20 | 15 | ATR=1.8 pips/bar — 20 pips rarely reached in current conditions |
| RiskPerTrade | 3.0% | 2.0% | Reduced position sizing with wider SL — same dollar risk per trade |
| MaxSpread | 20 | 35 | Was blocking valid trades — raised but still protective |
| CooldownBars | 4 | 6 | Reduces revenge trading after SL streaks |
| MaxConsecLosses | 0 (off) | 3 | Global circuit breaker pauses ALL strategies after 3 consecutive losses until next day |
| PB_MaxTradesPerDay | 2 | 3 | Wider SL = fewer stops hit, allow more opportunity |
| PB_TradeDirection | 1 (Buy Only) | 0 (Both) | Allows sell trades — regime filter handles direction |
| PB_SessionStart / End | 9 / 12 | 7 / 15 | Wider pullback window to catch more setups |
| RSI_Enabled | true | false | Minimal contribution in recent data — disabled to reduce noise |
| BreakevenTrigger | 10 | 8 | Proportional to new SL=10 (80% trigger ratio) |
| TrailingStart | 10 | 8 | Earlier trailing engagement with wider SL |
| TrailingStep | 6 | 5 | Tighter trail step — locks profit faster on real tick data |
| RegimeMinSlope | 0.30 | 0.10 | Flat markets kept EA inactive at 0.30 — lowered threshold |
| RegimeAllowFlat | false | true | Allows trading when weekly regime is flat |
Consecutive Loss Circuit Breaker (new in v4): MaxConsecLosses=3 pauses all strategies after 3 consecutive losses until the next trading day. On EA restart, RecoverStatsFromHistory() rebuilds the loss counter from broker deal history — no state is lost on restart or reconnection.
All other parameters remain at defaults — the full reference is in the tables above. To request the v4 .set file, leave a comment below or send a private message.
How to Load a Set File
- Download the .set file (request via comment or PM)
- Open MT5 and attach the EA to the correct chart (EURUSD M5)
- In the EA inputs tab, click Load and browse to the downloaded file
- Click OK — all parameters are loaded at once
To return to defaults at any time, click Reset in the inputs tab.
Links
The Impossible EA (EURUSD) — FREE | Live Signal
The Impossible Gold (XAUUSD) — FREE | Live Signal
For questions or .set file requests, use the Comments below or send a private message.
Past performance does not guarantee future results. Trading involves significant risk. Only trade with capital you can afford to lose.