Back to builder reference

Condition

regime_filter
gate

Uptrend/downtrend regime gate (direction:uptrend|downtrend, indicator:ema_cross|price_vs_ma=ema_cross, fast_period:int=20, slow_period:int=50)

Category

Trend

Discriminator

type = "regime_filter"

Roles

gate

Required fields

directionreqenum: uptrend, downtrend-

Optional fields

fast_periodinteger-
indicatorenum: ema_cross, price_vs_ma-
modeenum: level, cross_in, cross_outFiring mode: 'level' = true every bar the regime condition holds (CompareCondition). 'cross_in' = edge, fires once on the bar the regime activates (cross into the trend). 'cross_out' = edge, fires once on the bar the regime deactivates (cross out of the trend).
slow_periodinteger-
symbolanyOf (2 variants)Reference symbol for regime data (e.g. 'SPY'). None = primary traded symbol.
typestring-
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.