{
  "id": 3367,
  "rank": 2564,
  "name": "Trailing Stop",
  "aka": [
    "Trailing stop non funziona"
  ],
  "family": "K",
  "subtype": "K1",
  "one_liner": "Trailing stop updates position every 10 pips and then increments every 6 pips if in profit.",
  "market_regime": "any",
  "timeframes": [
    "1 Hour",
    "30 minutes"
  ],
  "symbols": [
    "CAC40"
  ],
  "sessions": [
    "08:00-09:00 GMT"
  ],
  "indicators": [],
  "entry_long": [
    "IF Time = 080000 AND not OnMarket THEN COMPRA = Highest[7](high[1]) + 5*pipsize; BUY 1 CONTRACT AT COMPRA STOP"
  ],
  "entry_short": [],
  "exit_rules": [
    "IF LongOnMarket AND close > (TradePrice + (y1 * pipsize)) THEN x1 = (close - tradeprice) / pipsize; IF x1 >= TrailStart THEN Diff1 = abs(TrailStart - x1); Chunks1 = max(0,round((Diff1 / StepSize) + RoundTO)); ProfitPerCent = BasePerCent + (BasePerCent * (Chunks1 * PerCentInc)); y1 = max(x1 * ProfitPerCent, y1); IF y1 THEN SellPrice = Tradeprice + (y1 * pipsize); IF abs(close - SellPrice) > PriceDistance THEN IF close >= SellPrice THEN SELL AT SellPrice STOP ELSE SELL AT SellPrice LIMIT ENDIF ELSE SELL AT Market ENDIF ENDIF",
    "IF ShortOnMarket AND close < (TradePrice - (y2 * pipsize)) THEN x2 = (tradeprice - close) / pipsize; IF x2 >= TrailStart THEN Diff2 = abs(TrailStart - x2); Chunks2 = max(0,round((Diff2 / StepSize) + RoundTO)); ProfitPerCent = BasePerCent + (BasePerCent * (Chunks2 * PerCentInc)); y2 = max(x2 * ProfitPerCent, y2); IF y2 THEN ExitPrice = Tradeprice - (y2 * pipsize); IF abs(close - ExitPrice) > PriceDistance THEN IF close <= ExitPrice THEN EXITSHORT AT ExitPrice STOP ELSE EXITSHORT AT ExitPrice LIMIT ENDIF ELSE EXITSHORT AT Market ENDIF ENDIF ENDIF"
  ],
  "filters": [],
  "stop_loss": "SET STOP pLOSS 70",
  "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/3367-trailing-stop",
  "snapshot": "2026-10-31 15:46 UTC",
  "source_url": "https://www.prorealcode.com/topic/trailing-stop-non-funziona/",
  "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."
}
