{
  "id": 11581,
  "rank": 794,
  "name": "TrendContinuation and Pullback",
  "aka": [
    "sanqing-ea"
  ],
  "family": null,
  "subtype": null,
  "one_liner": "Dual strategy for XAUUSD on M5 timeframe using EMA and ATR with fixed lot size and risk management.",
  "market_regime": "trending|volatile",
  "timeframes": [
    "M5"
  ],
  "symbols": [
    "XAUUSD"
  ],
  "sessions": [
    "null"
  ],
  "indicators": [
    {
      "name": "EMA",
      "params": {
        "period": 9
      },
      "applied_to": "close"
    },
    {
      "name": "EMA",
      "params": {
        "period": 21
      },
      "applied_to": "close"
    },
    {
      "name": "ATR",
      "params": {
        "period": 14
      },
      "applied_to": "close"
    }
  ],
  "entry_long": [
    "EMA9 > EMA21",
    "Breakout of last two highs by ATR threshold",
    "Candle body reaches minimum ATR ratio"
  ],
  "entry_short": [
    "EMA9 < EMA21",
    "Rebound to trend direction",
    "Shadow rejection of minimum ATR ratio"
  ],
  "exit_rules": [
    "Dynamic SL/TP with phase-based protection"
  ],
  "filters": [
    "ATR/Spread ratio minimum threshold",
    "Daily profit limit of $50"
  ],
  "stop_loss": "Initial SL, then phase-based adjustment",
  "take_profit": "Initial TP, then phase-based adjustment",
  "position_size": "0.01",
  "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/11581-trendcontinuation-and-pullback",
  "snapshot": "2026-10-31 15:46 UTC",
  "source_url": "https://github.com/caoruihua/sanqing-ea",
  "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."
}
