OPEN-SOURCE SCRIPT

Streak-Range Probability

1 305
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.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.