Extracted algorithm research record
Gold H1H4 Trend Continuation EA
Trades in the direction of the H4 trend after an H1 pullback and breakout, with ATR-based stop loss and take profit.
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
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
- XAUUSDm
- Recorded timeframes
- M15
- Recorded sessions
- Not specified
- Recorded regime
- trending
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| EMA | {"period": 50} | close |
| EMA | {"period": 200} | close |
| ATR | {"period": 14} | close |
Extracted strategy rules
Recorded long-entry rules
- Last closed H4 bar closed above EMA 50 and EMA 50 is above EMA 200
- One of the last two closed H1 bars touched the H1 EMA 20 (low below it for buys)
- Last closed H1 bar closed beyond the high of the 15 H1 bars before it
- H1 ATR(14) is at or above its 30-bar average
Recorded short-entry rules
- Last closed H4 bar closed below EMA 50 and EMA 50 is below EMA 200
- One of the last two closed H1 bars touched the H1 EMA 20 (high above it for sells)
- Last closed H1 bar closed beyond the low of the 15 H1 bars before it
- H1 ATR(14) is at or above its 30-bar average
Recorded exit rules
- Hard stop loss: 2.5 x ATR(14) H1
- Take profit: 6 x ATR(14) H1
- Breakeven: 1.5 x ATR, stop moves to 20 points beyond the entry price
- ATR trailing stop: 2 x ATR behind price, checked at most every 30 seconds
- Breakeven and trailing are paused from 23:00 to 00:05 server time
Recorded filters
- spread filter (Max Spread Points default 400 points)
- news filter (optional, not tested)
- Stop loss
- 2.5 x ATR(14) H1, at least the broker's stop or freeze level, twice the current spread, or 50 points, whichever is largest
- Take profit
- 6 x ATR(14) H1
- Position sizing
- 0.25% of equity per trade, calculated from the stop distance, rounded down to the lot step, capped by 'Maximum Lot Size' (default 5.0), broker's volume limit, and 90% of free margin
Questions about this record
What entry rules are recorded for Gold H1H4 Trend Continuation EA?
Long: Last closed H4 bar closed above EMA 50 and EMA 50 is above EMA 200 One of the last two closed H1 bars touched the H1 EMA 20 (low below it for buys) Last closed H1 bar closed beyond the high of the 15 H1 bars before it H1 ATR(14) is at or above its 30-bar average Short: Last closed H4 bar closed below EMA 50 and EMA 50 is below EMA 200 One of the last two closed H1 bars touched the H1 EMA 20 (high above it for sells) Last closed H1 bar closed beyond the low of the 15 H1 bars before it H1 ATR(14) is at or above its 30-bar average These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: XAUUSDm. Timeframes: M15. These are source-recorded labels, not verified execution behavior.