Back to builder reference

Condition

trailing_state
exit

Custom trailing state machine

Category

Risk management

Discriminator

type = "trailing_state"

Roles

exit

Required fields

None.

Optional fields

atr_multnumberATR multiplier for offset
atr_periodintegerATR period for offset calculation
state_idstringID for the trailing state variable
trigger_openum: above, belowTrigger when price goes above or below trailing level
trigger_priceenum: open, high, low, closePrice field to compare against trailing level
typestring-
update_priceenum: open, high, low, closePrice field to track for state updates
update_ruleenum: max, minHow to update state: max (trails up) or min (trails down)
Quawd

A subscription SaaS platform for designing, backtesting, and paper-trading algorithmic trading strategies on equities and crypto — described in plain English to an AI agent, no code required.

© 2026 Quawd. All rights reserved.

Quawd is a software tool, not a broker-dealer or investment adviser, and does not provide investment advice. Trading involves substantial risk of loss. Backtested and hypothetical results have inherent limitations and are not indicative of future performance.