The Impossible Gold — Optimisation Settings
The Impossible Gold v2.1 is a session-breakout EA for XAUUSD M5, now with optional progressive take-profit extension. The attached TheImpossibleGold_21_Opt.set is an optional input profile, separate from the EA's built-in defaults. Compared with the previous v2 profile, 58 of the 66 settings present in both files are unchanged; eight values differ and the v2.1 file includes additional inputs. Use the v2.1 file with the v2.1 EA.
Download the v2.1 .set file attached to this post. For questions, leave a comment below or send a private message.
The Impossible Gold has been tested across multiple broker conditions. For live raw-ECN execution on XAUUSD, we recommend RoboForex for tighter pricing and cleaner fills with this strategy profile.
Open Recommended Raw ECN Broker (RoboForex)
⚠️ IMPORTANT
The attached file is an optional test profile, not a universal recommendation. Check all inputs against your broker and account conditions before use.
- Test on a demo account before considering live use
- Past performance and backtest results do not guarantee future results
- The developer is not responsible for any losses incurred on live or personal accounts
Links
| The Impossible Gold on MQL5 Market |
| Open Recommended Raw ECN Broker (RoboForex) |
| MQL5 Seller Profile |
| Discord Community — signals and trader chat |
Default Parameters
The values below are from the optional TheImpossibleGold_21_Opt.set profile, not a statement of the EA's built-in defaults. Broker conditions and execution affect results; validate settings in Strategy Tester and on demo before live use.
Strategy
| Parameter | Profile value |
|---|---|
| LookbackBars | 36 |
| BufferPips | 2.5 |
| MinRangePips | 20.0 |
| MaxRangePips | 1500.0 |
| MinScoreToTrade | 60 |
Session
| Parameter | Profile value |
|---|---|
| SessionStart | 2 GMT |
| SessionEnd | 19 GMT |
| ExcludeStart | 12 |
| ExcludeEnd | 15 |
| BlockWednesday | true |
Risk and Trade Management
| Parameter | Profile value |
|---|---|
| RiskPerTrade | 1.5% |
| CompoundAggressive | true |
| TP_Pips | 300 |
| SL_Pips | 38 |
| MaxSpread | 6 pips |
| SpreadMultiplier | 1 |
| MaxOpenTrades | 1 |
| MaxTradesPerDay | 10 |
| DebugMode | false |
| MagicNumber | 778899 |
Breakeven
| Parameter | Profile value |
|---|---|
| UseBreakeven | true |
| BreakevenTrigger | 22 pips |
| BreakevenOffset | 3 pips |
Trailing Stop
| Parameter | Profile value |
|---|---|
| UseTrailingStop | true |
| TrailingStart | 50 pips |
| TrailingStep | 10 pips |
Progressive TP
| Parameter | Profile value | Meaning |
|---|---|---|
| EnableTPExtension | true | Progressive TP extension is enabled in the attached set. |
| ExtendTPTriggerATR | 1.0 | Trigger distance multiplier; this is not an ATR calculation. |
| ExtendTPByPips | 14 | Distance added to the TP each time it extends. |
| ExtendTPMaxCount | 0 | Maximum extensions per position; 0 means unlimited. |
| ExtendTPRatchetSL | false | Optional SL advance by the extension distance; only applies when trailing is off. |
As price approaches the current TP, the EA checks a trigger window calculated as ExtendTPByPips × ExtendTPTriggerATR. With this profile, that window and each outward TP step are 14 pips. The process can repeat without a set count limit. The optional SL ratchet is off. Broker stop/freeze levels can prevent a modification, and breakeven or trailing management may close a position before an extended TP is reached. This feature does not guarantee additional profit.
Regime Filter
| Parameter | Profile value |
|---|---|
| EnableRegimeFilter | true |
| RegimeEMAPeriod | 50 |
| RegimeLookback | 4 |
| RegimeMinSlope | 0.30 |
Version 2.1 Set Profile
The attached .set file carries forward most of the previous profile: 58 of 66 settings found in both files retain the same value. Eight shared settings have changed. The profile is provided for testing and broker-specific adjustment; these changes are not a claim of improved results.
| Setting | v2 profile | v2.1 profile |
|---|---|---|
| UseBreakeven | false | true |
| BreakevenTrigger / BreakevenOffset | 50 / 5 pips | 22 / 3 pips |
| SL_Pips | 55 | 38 |
| MaxSpread | 50 | 6 pips |
| SpreadMultiplier | 5 | 1 |
| TrailingStart / TrailingStep | 15 / 20 pips | 50 / 10 pips |
Five progressive-TP inputs are new in v2.1. The attached set has EnableTPExtension=true and DebugMode=false. You can disable TP extension in the EA inputs if you want to compare the profile with the feature off.
The v2.1 set is not a guarantee of future or live performance. Results depend on symbol specifications, spread, execution, and account settings. Test with the same broker conditions you intend to use, then validate on demo.
How to Load a Set File
- Download the attached TheImpossibleGold_21_Opt.set file
- Open MT5 and attach the EA to XAUUSD M5
- In the EA inputs tab, click Load and browse to the downloaded file
- Click OK — all parameters are applied
To return to defaults at any time, click Reset in the inputs tab.
Version History
| Date | Set File | Changes |
|---|---|---|
| Oct 2026 | v2.1 (current) | Added progressive TP extension inputs, optional SL ratchet, and dashboard status. The attached profile carries forward most v2 values with the documented changes above; TP extension is enabled in this set. |
| Apr 2026 | v2.0 | Genetic re-optimisation and updated strategy, session, stop, spread, and trailing profile. |
| Feb 2026 | v1.0 | Initial release. Default parameters. SL=25, TP=300, SessionStart=10, SpreadMultiplier=3. |
Past performance does not guarantee future results. Trading involves significant risk. Only trade with capital you can afford to lose.


