How it is calculated
Gaps as in fvg (third candle against the first, at least min_size ATRs), filled or not; the last max_zones per side are kept. When a bar makes a gap, the newest earlier gap of the other side that overlaps it gives the range: from the higher bottom to the lower top. It takes the new gap's side: a bullish gap over a bearish one makes a bullish range. A range ends on a close through its far side.
Reference: ICT liquidity concepts, from public descriptions (#546)
How to read it
A range shows on the third candle of the newer gap, never earlier. The lines show the nearest bullish range (the highest) and bearish one (the lowest); new and broken are 1 on the bar of the event, and at most max_zones ranges per side are kept.
In a strategy
Buy the return into a bullish range: with r = ctx.ind("bpr", atr_length=14, min_size=0.25) a long limit at r.bull_top with the stop below r.bull_bottom.
Inputs
| Input | Type | Default | Range or choices |
|---|---|---|---|
ATR lengthatr_length | Whole number | 14 | min 1, max 500 |
Minimum size (ATR)min_size | Number | 0.25 | min 0, max 10 |
Zones kept per sidemax_zones | Whole number | 20 | min 1, max 500 |
What it draws
| Line | Drawn as |
|---|---|
| Bullish top | Steps |
| Bullish bottom | Steps |
| Bearish top | Steps |
| Bearish bottom | Steps |
Used in
No strategy template reads it yet.