# Step-Based Trailing Stop

A trailing stop that moves only after a certain profit or loss threshold is met, then stays at break-even or the new level.

Canonical: https://prismaticalgos.com/compendium/algo/3304-step-based-trailing-stop
Record ID: 3304
Catalog rank: 1833 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trade & Execution Management (K)
Source: https://www.prorealcode.com/topic/trailing-stop-with-steps/
Evidence label (unverified): source_code

## Scope and 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.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: Not specified
- timeframes: Not specified
- sessions: Not specified
- market_regime: any

## Indicators

- SMA: {"period": 20}; applied to: close
- SMA: {"period": 50}; applied to: close

## Recorded long-entry rules

- close CROSSES OVER Average[20](close)

## Recorded short-entry rules

- close CROSSES under Average[50](close)

## Recorded exit rules

- close >= newStopLevel + (triggerDistance * pointsize) and MoveToBreakEven=1
- close <= newStopLevel - (triggerDistance * pointsize) and MoveToBreakEven=1

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: positionprice - NormalStop*pointsize
- Take profit: newStopLevel + triggerDistance*pointsize
- Position sizing: 1 CONTRACT
