{
  "id": 4250,
  "rank": 1797,
  "name": "Survival Analysis for Trade Exits",
  "aka": [
    "Competing-Risks Model in MQL5"
  ],
  "family": "A",
  "subtype": "A2",
  "one_liner": "Uses survival analysis to dynamically decide when to exit trades based on real-time market conditions.",
  "market_regime": "any",
  "timeframes": [
    "M30"
  ],
  "symbols": [
    "EURUSD",
    "GBPUSD",
    "USDJPY",
    "XAUUSD"
  ],
  "sessions": [],
  "indicators": [
    {
      "name": "ATR",
      "params": {
        "period": 14
      },
      "applied_to": "close"
    },
    {
      "name": "EMA",
      "params": {
        "period": 50
      },
      "applied_to": "close"
    }
  ],
  "entry_long": [],
  "entry_short": [],
  "exit_rules": [
    "Roll forward hazards from the current bar to the time stop, accumulating cumulative incidence for each cause and the residual probability of still being open at the end.",
    "Close early when the expected value of holding is less than the expected value of closing minus a margin.",
    "Close when the stop-loss hazard runs well above the take-profit hazard on a position in profit."
  ],
  "filters": [
    "SYMBOL_TRADE_TICK_VALUE can be wrong for JPY-quoted pairs"
  ],
  "stop_loss": "Fixed at 1 R",
  "take_profit": "Fixed at R_TP",
  "position_size": "Sized based on risk percentage and hypothetical trade profit",
  "evidence_type": "backtest_shown",
  "completeness": 50.0,
  "signal_warnings": null,
  "claim_warnings": null,
  "opacity_warnings": null,
  "build_warnings": null,
  "canonical": "https://prismaticalgos.com/compendium/algo/4250-survival-analysis-for-trade-exits",
  "snapshot": "2026-10-31 15:46 UTC",
  "source_url": "https://www.mql5.com/en/articles/24106",
  "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."
}
