Sequences: setups that happen in steps
Sweep, reclaim, retest, inside a bar limit.
A sequence waits for its steps in order, within a number of bars. Later steps can refer to the bar where an earlier step happened, such as sweep.high. reset_if abandons the attempt. The sequence gives you .completed.
sequence liquidity_grab within 30 bars:step sweep: low < lowest(low, 20)[1]step reclaim: close > sweep.highstep retest: low <= reclaim.close and close > reclaim.closereset_if: close < sweep.lowExamples: Sweep and Reclaim, Renko Pullback, State Machine Momentum.