OPEN-SOURCE SCRIPT

Streak-Range Probability

1 307
Streak × Range Probability tracks two things simultaneously for every candle: how long the current green/red streak is, and how large the candle's range is relative to price.
The range is bucketed into 4 configurable size categories (S/M/L/H) based on the full high-low range as a percentage of price. The thresholds are user-defined, so the indicator adapts to any instrument and timeframe.
Looking back up to 500 candles, it builds a historical probability table showing how often a streak of a given length continued after candles of each range size — broken down as 2→3, 3→4, and 4→5+ continuation rates per bucket.
The purpose is purely observational — to explore whether there is a measurable relationship between candle range size and streak continuation behavior. It is not a trading or betting strategy, and the probabilities shown are historical patterns only so prediction is only hypothetical as suggestion.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.