Back to builder reference
Condition
consecutiveentryexit
Condition true for N consecutive bars (or N of M with strict=false) — e.g. close > SMA(100) for 5 consecutive bars. The window INCLUDES the current bar, so for 'X now but not in the preceding N bars' use window_bars=N+1 with min_true=2; window_bars=N with min_true=1 can never fire alongside X
Category
Temporal
Discriminator
kind = "consecutive"
Roles
entry, exit
Required fields
None.
Optional fields
None.