Extracted algorithm research record
M1 Gold Hedge
A breakout and hedge recovery Expert Advisor designed for Gold (XAUUSD).
Source & extraction context
Evidence label: backtest_shown (source claim, not independent verification). Recorded completeness: 80.0/100. Neither is a performance result.
Names identify source records. Inclusion is not an endorsement or a claim of authorship, ownership or reuse permission. Check the source license before reusing any implementation.
Extraction warnings
Claim warnings
- RECOVERY SIZING: position size increases after losses (martingale/grid/averaging). Equity curves look smooth until the run that does not recover - judge it on worst-case exposure, not win rate.
Recorded market & execution profile
- Recorded markets
- XAUUSD
- Recorded timeframes
- M1, H1, M5, M15
- Recorded sessions
- London Open 08:00 – 12:00 GMT, London / NY Overlap 12:00 – 17:00 GMT, New York 13:00 – 20:00 GMT
- Recorded regime
- breakout|trending
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| EMA | {"period": 21} | close |
| EMA | {"period": 50} | close |
| ADX | {"period": 14} | close |
| Bollinger Bands | {"deviation": 2.0, "period": 20} | close |
Extracted strategy rules
Recorded long-entry rules
- H1 EMA trend direction is bullish
Recorded short-entry rules
- H1 EMA trend direction is bearish
Recorded exit rules
- Hard take-profit — closes all positions when combined profit reaches the target dollar amount.
- Trailing take-profit — activates above a configurable threshold and steps back from the peak profit.
- Minimum profit floor — no automated close executes unless basket profit exceeds this amount, ensuring every exit is in profit.
Recorded filters
- Trend filter using ADX and Bollinger Bands
- Freeze mode when USD loss or equity drawdown threshold is breached
- Emergency close if account margin level drops below a configurable threshold
- Margin check before every new hedge placement
- Stop loss
- Per-position stop loss in pips (InpPositionSL, default 30)
- Take profit
- Close all positions when basket profit reaches this amount in account currency (InpTargetProfit, default 10.0)
- Position sizing
- Initial lot size for the initial breakout order (InpInitialLot, default 0.01), lot size at each new hedge level is multiplied by InpLotMultiplier (default 1.5)
Questions about this record
What entry rules are recorded for M1 Gold Hedge?
Long: H1 EMA trend direction is bullish Short: H1 EMA trend direction is bearish These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: XAUUSD. Timeframes: M1, H1, M5, M15. These are source-recorded labels, not verified execution behavior.