# Gold Trend Sentinel

A slow, rule-based gold trend follower with a 3 x ATR stop that trails behind the best price.

Canonical: https://prismaticalgos.com/compendium/algo/11227-gold-trend-sentinel
Record ID: 11227
Catalog rank: 1015 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://github.com/allanninal/gold-trend-sentinel
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

Claim warnings: THIN SAMPLE: 85 trades - below the ~100 needed before a win rate or profit factor carries much information.
Build warnings: MT4_ONLY: the captured source is MQL4 / written for MetaTrader 4. It needs porting (order functions, indicator handles) before it runs on MT5.

## Recorded profile

- symbols: XAUUSD
- timeframes: H4
- sessions: any
- market_regime: trending

## Indicators

- UT Bot: {"atr_period": 10, "key": 1.5, "period": 10}; applied to: close
- Supertrend: {"atr_period": 10, "multiplier": 3}; applied to: close
- Daily EMA: {"period": 200}; applied to: close

## Recorded long-entry rules

- close above UT Bot line on this and previous bar
- last completed daily close above EMA(200)
- Supertrend(10, 3) on (H+L)/2 is up
- close above UT Bot line on this bar

## Recorded short-entry rules

- close below UT Bot line on this and previous bar
- last completed daily close below EMA(200)
- Supertrend(10, 3) on (H+L)/2 is down
- close below UT Bot line on this bar

## Recorded exit rules

- opposite signal closes the trade and opens the other side at the same open

## Recorded filters

- news filter
- max spread 7 pips

## Risk controls

- Stop loss: 3 x ATR(14) away, which then trails 3 x ATR behind the best price since entry, tightened once per H4 bar and never loosened
- Take profit: no target
- Position sizing: fixed 0.01 lot, or the broker's minimum when that is larger
