Inside Bar¶
Indicators · Price Action
True when this bar's range sits entirely inside the prior bar (high ≤ prior high AND low ≥ prior low).
Inside Bar fires when the current bar's whole range sits inside the previous bar — its high is at-or-below the prior high and its low is at-or-above the prior low. It marks a bar of contraction and indecision, the classic coil that often precedes a breakout.
How it works¶
From the bars input it checks high ≤ prior high AND low ≥ prior low. When both hold, the signal is True; otherwise False. It compares against the immediately prior bar only. Lookahead-free, no parameters.
When to use it¶
Use it as a compression/continuation setup: an inside bar after a strong move is a pause you can trade the break of, and a run of inside bars marks a tightening range. It's most powerful combined with a breakout trigger — the inside bar defines the coil, and a close beyond the mother bar's high or low is the entry.
Example¶
Inside-bar breakout: when Inside Bar is true, capture the prior bar's high with Value When, then go long on a CrossesAbove of that level on the next bars. Feed the entry into the Tester.
Tips & gotchas¶
- Inclusive bounds (
≤/≥) — an equal high or low still counts as inside. - One-bar comparison — it looks only at the immediately prior bar.
- Opposite of Outside Bar; pair with a breakout trigger rather than trading it alone.
Related blocks¶
Inputs¶
| Socket | Type | What to wire in |
|---|---|---|
| Bars | bars |
Price bars. |
Outputs¶
| Output | Type | Plots as | Description |
|---|---|---|---|
| Inside | signal |
Signal arrows | Inside bar. |
Reference auto-generated from the block catalog · category Indicators.