Trailing Stop
Trailing stop moves the stop loss after price advances in the trade direction.
Main Inputs
| Input label | Default | What it controls |
|---|---|---|
| Enable trailing stop | Off | Turns automatic trailing on or off. |
| Trailing mode | R | Selects R-based or ATR-based trailing behavior. |
| Trailing activation R | 1.5 | R-based activation threshold. |
| Trailing distance pips, or R distance in R mode | 1.0 | Distance used by the selected trailing mode. |
| ATR trailing period | 20 | ATR period used for ATR trailing. |
| ATR trailing activation multiplier | 10.0 | Activation multiplier for ATR trailing. |
| ATR trailing distance multiplier | 5.0 | Distance multiplier for ATR trailing. |
| Minimum movement before trail update | 0.0 | Extra movement required before the stop is updated again. |
Candle And Swing Trailing
| Input label | Default | What it controls |
|---|---|---|
| Use last candle for trailing stop | Off | Trails from the most recent candle when enabled. |
| Candle trailing buffer pips | 1.0 | Buffer added around the candle level. |
| Use swing high/low trailing | Off | Trails from swing structure when enabled. |
| Swing trailing lookback bars | 20 | Number of bars used to find swing points. |
| Swing trailing buffer pips | 1.0 | Buffer added around the swing point. |
Practical Notes
- R-based trailing follows the initial trade risk.
- ATR trailing adapts to volatility.
- Candle and swing trailing can be useful when you want the stop to follow visible market structure.