# Golden-Loyalty-Bot

Trend-following strategy on XAUUSD with pullbacks to EMA17, validated by multiple filters and dynamic position sizing.

Canonical: https://prismaticalgos.com/compendium/algo/12645-golden-loyalty-bot
Record ID: 12645
Catalog rank: 2505 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://ctrader.com/products/4413
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: IMPLAUSIBLE PROFIT FACTOR: claimed 6.28. Over any real sample this is far outside what retail FX sustains.; THIN SAMPLE: 84 trades - below the ~100 needed before a win rate or profit factor carries much information.

## Recorded profile

- symbols: XAUUSD
- timeframes: M5
- sessions: Not specified
- market_regime: trending

## Indicators

- EMA: {"period": 17}; applied to: close
- EMA: {"period": 200}; applied to: close
- EMA: {"period": 30}; applied to: close
- MACD: {}; applied to: close
- ADX: {"period": 14}; applied to: close
- HTF EMA: {"period": 200}; applied to: close

## Recorded long-entry rules

- price > EMA200, EMA17 > EMA30, price touches EMA17, next candle closes above EMA17, MACD Histogram positive

## Recorded short-entry rules

- price < EMA200, EMA17 < EMA30, price touches EMA17, next candle closes below EMA17, MACD Histogram negative

## Recorded exit rules

- Not specified.

## Recorded filters

- ADX banded between 26 and 40 with ascending slope in last 3 candles
- HTF EMA200 with consistent slope, price on correct side of EMA200
- optional HTF regime filter with minimum spread, ATR, and ADX in HTF
- optional EMA Spread M5 filter with minimum spread between EMA17 and EMA200
- operational filters with maximum spread, trade cap per day, daily loss cap in USD, cooldown after consecutive losses

## Risk controls

- Stop loss: anchored to EMA30 ± buffer, with clamp min and max in pips
- Take profit: TP1 at 1:2 risk, TP2 at 1:4 risk, TP3 with trailing stop
- Position sizing: dynamic, calculated as units = risk_USD / (slPips × PipSize)
