Back to builder reference
Condition
regime_filtergate
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
FieldTypeDescription
directionreqenum: uptrend, downtrend-Optional fields
FieldTypeDescription
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-