# 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.

Canonical: https://prismaticalgos.com/compendium/algo/10784-gold-h1h4-trend-continuation-ea
Record ID: 10784
Catalog rank: 455 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trade & Execution Management (K)
Source: https://www.mql5.com/en/market/product/202759
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: XAUUSDm
- timeframes: M15
- sessions: Not specified
- market_regime: trending

## Indicators

- EMA: {"period": 50}; applied to: close
- EMA: {"period": 200}; applied to: close
- ATR: {"period": 14}; applied to: close

## 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)

## Risk controls

- 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
