Stops & exits

Stop loss - swing high / lowest low

Stop placed at the recent swing high (for shorts) or lowest low (for longs). Structure-based.

1 min readUpdated Jun 19, 2026

Reads an indicator that tracks the recent high or low (e.g. a rolling extreme like a Donchian boundary) and uses that price as the stop level.

Shape

"stop_loss": {
  "type": "highest_high",
  "indicator": "donchian_lower"
}

(For shorts, point at a highest_high-style indicator.)

Params

  • indicator - column name with the swing level.

Usage

  • Trend follow: stop below the most recent swing low for a long.
  • Donchian breakouts: pair with Donchian upper/lower.

Pitfalls

  • Set once at entry. Doesn't trail. For trailing behavior, use trailing_stop.
  • A wide swing-low stop can produce trades with very poor R:R. Combine with a max-stop-distance check.
Stop loss - swing high / lowest low | Help Center | LucraX · LucraX