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 LuxAlgo indicators:

Join our 100k+ community:

All scripts & content provided by LuxAlgo are for informational & educational purposes only. Past performance does not guarantee future results.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


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.

Want to use this script on a chart?