Between¶
Signals · Comparison
True where low <= value <= high.
Between tests whether a value sits inside a range — true when low ≤ value ≤ high. It's the clean way to express "within this band" conditions: RSI between 40 and 60 (neutral), price between two levels, an oscillator in its middle zone. Rather than chaining a Greater Than and a Less Than with an And, Between does it in one block.
How it works¶
The block takes three series — Value (what you're testing), Lo (lower bound), and Hi (upper bound) — and outputs true on each bar where Value is at or between the two bounds. The bounds can be constants (wire Constant blocks for fixed levels) or dynamic series (e.g. Bollinger upper/lower bands), which makes Between a natural fit for "inside the channel" tests.
When to use it¶
Use Between for range and band conditions. With fixed bounds it isolates a zone of an oscillator (e.g. "RSI in the neutral 45–55 band" to detect indecision, or "ADX between 20 and 25" for a borderline regime). With dynamic bounds it shines: feed Bollinger Bands upper and lower in to test "price inside the bands" (i.e. not broken out), or a Supply/Demand Zone's edges to test "price inside the zone." It's a state, so it gates rather than triggers.
Example¶
Inside-the-zone entry: wire price into Value and a demand zone's lower/upper edges into Lo/Hi; the true state means "price is in the zone." Combine with a bullish structure condition through an And gate, take the first bar with an Edge Trigger, and route to a Buy Signal. Backtest in the Tester.
Tips & gotchas¶
- One block instead of two comparisons — cleaner than Greater Than + Less Than + And.
- Dynamic bounds are the power feature — wire band/zone edges in for "inside the channel" tests.
- It's a state — wrap in Edge Trigger for the entry bar only.
- Inclusive bounds — the endpoints count as inside.
Related blocks¶
Inputs¶
| Socket | Type | What to wire in |
|---|---|---|
| Value | series |
Series to test |
| Lo | series |
Lower bound |
| Hi | series |
Upper bound |
Outputs¶
| Output | Type | Plots as | Description |
|---|---|---|---|
| Cond | signal |
Signal arrows | Boolean result of the comparison |
Reference auto-generated from the block catalog · category Signals.