Extracted algorithm research record
XAUUSD M15 Trend-Pullback EA
Trades gold on the 15-minute chart, entering in the direction of the higher-timeframe trend, waiting for a pullback into a fast EMA, and exiting based on RSI and ATR.
Source & extraction context
Evidence label: source_code (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
No automated warnings are recorded in this snapshot. This does not establish that the extraction or system is sound.
Recorded market & execution profile
- Recorded markets
- XAUUSD
- Recorded timeframes
- H1
- Recorded sessions
- 07:00-16:00 (London) 13:00-20:00 (New York)
- Recorded regime
- trending
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| EMA | {"period": 200} | close |
| EMA | {"period": 21} | close |
| EMA | {"period": 50} | close |
| RSI | {"period": 14} | close |
| ATR | {"period": 14} | close |
Extracted strategy rules
Recorded long-entry rules
- H1 close > H1 EMA(200) and H1 EMA(200) rising over the last 5 bars
- M15 close > M15 EMA(21)
- bullish bar closing back above the fast EMA with RSI back at or above 50
Recorded short-entry rules
- H1 close < H1 EMA(200) and H1 EMA(200) falling over the last 5 bars
- M15 close < M15 EMA(21)
- bearish bar closing back below the fast EMA with RSI at or below 50
Recorded exit rules
- Stop loss = InpAtrSlMultiplier x ATR(14), widened if broker's stop level or current spread demands it
- Take profit = stop distance x InpRewardRatio
- Breakeven: at InpBreakevenTriggerR the stop moves to entry plus InpBreakevenOffsetR of locked profit
- ATR trailing: once price reaches InpTrailStartR, the stop trails InpTrailAtrMult ATRs behind the current price, updating only when it improves by at least InpTrailStepPoints
- Partial close: at InpPartialTriggerR, InpPartialPercent of the original volume is closed once
Recorded filters
- news filter
- max spread 60 points
- price is more than InpMaxEntryDistAtr ATRs away from the fast EMA
- Stop loss
- InpAtrSlMultiplier x ATR(14), widened if broker's stop level or current spread demands it
- Take profit
- stop distance x InpRewardRatio
- Position sizing
- Lot size is solved so a full stop-out costs InpRiskPercent of account equity, using the symbol's tick value, then clipped to the volume step, min/max lot, and available free margin
Questions about this record
What entry rules are recorded for XAUUSD M15 Trend-Pullback EA?
Long: H1 close > H1 EMA(200) and H1 EMA(200) rising over the last 5 bars M15 close > M15 EMA(21) bullish bar closing back above the fast EMA with RSI back at or above 50 Short: H1 close < H1 EMA(200) and H1 EMA(200) falling over the last 5 bars M15 close < M15 EMA(21) bearish bar closing back below the fast EMA with RSI at or below 50 These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: XAUUSD. Timeframes: H1. These are source-recorded labels, not verified execution behavior.