Definition
Returns 1 if a condition has been true for N consecutive periods in a row, 0 otherwise.
Parameters
Condition, Window
Example condition
`Consecutive True(RSI(AAPL, 14) < 30, 3 days) = 1` (RSI has been oversold for 3 straight days — stronger signal than a single reading)Use in a strategy
Add this indicator to a strategy condition, choose its supported parameters and compare the output with the threshold required by your rule. Preserve the same interval and lookback when comparing backtests.
After saving the condition, inspect its asset, interval, lookback and comparison operator against the parameters above. If no trades occur, check whether the condition ever became true and whether the requested input data exists for that period. A missing input is not a zero-valued signal. An indicator produces an input to a rule. It does not establish future returns, and data availability can differ across assets and periods.