OPEN-SOURCE SCRIPT
Streak-Range Probability

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.
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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。