# Gold Market Timing

Buys gold when the S&P 500 earnings yield is higher than the 10-year bond yield by at least a factor of 2.

Canonical: https://prismaticalgos.com/compendium/algo/916-gold-market-timing
Record ID: 916
Catalog rank: 2922 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Unclassified (?)
Source: https://www.quantconnect.com/tutorials/strategy-library/gold-market-timing
Evidence label (unverified): source_code

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

Build warnings: DAILY_LOW_COUNT: daily-or-slower timeframe on a single instrument. Expect well under 100 trades in five years, so a backtest will rarely reach statistical significance on its own.

## Recorded profile

- symbols: XAUUSD
- timeframes: D1
- sessions: Not specified
- market_regime: any

## Indicators

No indicator stack recorded.

## Recorded long-entry rules

- self.securities[self.earnings_yield].price > self.securities[self.bond_yield].price * Decimal(2)

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- self.liquidate()

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: null
- Take profit: null
- Position sizing: set to 0.9 when entering long
