{
  "id": 2840,
  "rank": 1286,
  "name": "Golden Cross and Dead Cross",
  "aka": [
    "Using Moving Averages with an EA (Sample Source Code)"
  ],
  "family": "A",
  "subtype": "A9",
  "one_liner": "Enters long on Golden Cross and short on Dead Cross using moving averages.",
  "market_regime": "trending|null",
  "timeframes": [
    "null"
  ],
  "symbols": [
    "null"
  ],
  "sessions": [
    "null"
  ],
  "indicators": [
    {
      "name": "EMA",
      "params": {
        "period": 50
      },
      "applied_to": "close"
    }
  ],
  "entry_long": [
    "The value of the previous moving average is higher than the shorter-term moving average.",
    "The value of the moving average two periods ago is lower than the shorter-term moving average.",
    "The value of the moving average two periods ago is lower than the value of the previous short-term moving average."
  ],
  "entry_short": [
    "The value of the previous moving average is lower than the shorter-term moving average.",
    "The value of the moving average two periods ago is higher than the shorter-term moving average.",
    "The value of the moving average two periods ago is higher than the value of the previous short-term moving average."
  ],
  "exit_rules": [
    "Entry orders are managed only with stop loss orders and take profit limit orders."
  ],
  "filters": [
    "null"
  ],
  "stop_loss": "Stoploss value from the mid-term MA",
  "take_profit": "same distance as stop orders but on the positive side",
  "position_size": "null",
  "evidence_type": "source_code",
  "completeness": 50.0,
  "signal_warnings": null,
  "claim_warnings": null,
  "opacity_warnings": null,
  "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."
  ],
  "canonical": "https://prismaticalgos.com/compendium/algo/2840-golden-cross-and-dead-cross",
  "snapshot": "2026-10-31 15:46 UTC",
  "source_url": "https://www.mql5.com/en/code/46426",
  "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."
}
