Predictive Ranges [LuxAlgo]

The Predictive Ranges indicator aims to efficiently predict future trading ranges in real-time, providing multiple effective support & resistance levels as well as indications of the current trend direction.

Predictive Ranges was a premium feature originally released by LuxAlgo in 2020.

The feature was discontinued & made legacy, however, due to its popularity and reproduction attempts, we deemed it necessary to release it open source to the community.


The primary purpose of this indicator is to provide potential support & resistance levels on the chart by estimating future trading ranges.

When the price reaches one of the upper/lower levels of the Predictive Ranges we can expect the price to reverse.

If the price exits the predicted range, new levels are given in real-time & they do not repaint. Higher "Factor" values allow returning longer term and wider ranges less susceptible to be exited.

🔹Estimating Trend Directions

Users are able to easily estimate trend directions by looking at the central levels of the predictive ranges, which represent an estimate of the price central tendency.

If this central level increases it means the price is up-trending, if it is decreasing price is down-trending.


  • Length: ATR Length used for the indicator calculation. Higher values will tend to return ranges of equal width.
  • Factor: Control the ranges width. Higher values will return less frequent ranges, each having a higher width.
  • Timeframe: Indicator timeframe output.
  • Source: Input source of the indicator. It is recommended to use input sources on the same scale as the price.

Get access to our exclusive tools:

Join our 150k+ community:

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。