Home
← All indicators

Market structure · Pine Script v6

Downloads —

Yellow Box Range

A projected range for each session, built from how far 60 minute candles stretched away from an anchor price over the last 50 sessions. It marks where price broke, rejected or retested the levels and counts how often past sessions reached each one.

View on TradingView ↗Download .pine ↓
Yellow Box Range chart example

Overview

Yellow Box Range projects an expected range for each session from how far 60 minute candles have stretched away from an anchor price over the last 50 sessions. The yellow box is the zone where most hourly highs and lows stayed. The average range marks how far breaks of the box have typically gone, and the max range marks the extreme end of the sample. The rest of the indicator marks where price broke, rejected or retested those levels, and counts how often past sessions reached each one.

How it works

Marks

Marks are off by default and can be turned on in Breaks settings. By default a level counts as broken only on a candle close beyond it. With the option off, a wick is enough.

What you see

Settings

Notes

Yellow Box Range source