{
  "id": 6514,
  "rank": 2531,
  "name": "SmartLong",
  "aka": [],
  "family": null,
  "subtype": null,
  "one_liner": "Uses SMAs for long entry and exit based on price conditions and stop loss.",
  "market_regime": "any",
  "timeframes": [
    "D"
  ],
  "symbols": [
    "QQQ"
  ],
  "sessions": [],
  "indicators": [
    {
      "name": "SMA",
      "params": {
        "period": 20
      },
      "applied_to": "close"
    },
    {
      "name": "SMA",
      "params": {
        "period": 20
      },
      "applied_to": "volume"
    }
  ],
  "entry_long": [
    "maclose ) and close>close[1] and close>close[5] and time_cond and QQQPriceIsAboveMa"
  ],
  "entry_short": [],
  "exit_rules": [
    "ta.crossunder(close, maclose) or close 0 and time_cond"
  ],
  "filters": [],
  "stop_loss": "strategy.position_avg_price * (1 – longLossPerc)",
  "take_profit": null,
  "position_size": null,
  "evidence_type": "source_code",
  "completeness": 80.0,
  "signal_warnings": null,
  "claim_warnings": null,
  "opacity_warnings": null,
  "build_warnings": null,
  "canonical": "https://prismaticalgos.com/compendium/algo/6514-smartlong",
  "snapshot": "2026-10-31 15:46 UTC",
  "source_url": "https://www.prorealcode.com/topic/conversion-from-a-pine-code-using-smas-for-long-entry-exit/",
  "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."
}
