OPEN-SOURCE SCRIPT
Price Prediction Forecast Model

Price Prediction Forecast Model
This indicator projects future price ranges based on recent market volatility.
It does not predict exact prices — instead, it shows where price is statistically likely to move over the next X bars.
How It Works
Price moves up and down by different amounts each bar. This indicator measures how large those moves have been recently (volatility) using the standard deviation of log returns.
That volatility is then:
The further into the future you project, the wider the expected range becomes.
Volatility Bands (Standard Deviation–Based)
The indicator plots up to three projected volatility bands using standard deviation multipliers:
These bands are based on standard deviation of volatility, not fixed probability guarantees.
Optional Drift
An optional drift term can be enabled to introduce a long-term directional bias (up or down).
This is useful for markets with persistent trends.
This indicator projects future price ranges based on recent market volatility.
It does not predict exact prices — instead, it shows where price is statistically likely to move over the next X bars.
How It Works
Price moves up and down by different amounts each bar. This indicator measures how large those moves have been recently (volatility) using the standard deviation of log returns.
That volatility is then:
- Projected forward in time
- Scaled as time increases (uncertainty grows)
- Converted into future price ranges
The further into the future you project, the wider the expected range becomes.
Volatility Bands (Standard Deviation–Based)
The indicator plots up to three projected volatility bands using standard deviation multipliers:
- SD1 (1.0×) → Typical expected price movement
- SD2 (1.25×) → Elevated volatility range
- SD3 (1.5×) → High-volatility / stress range
These bands are based on standard deviation of volatility, not fixed probability guarantees.
Optional Drift
An optional drift term can be enabled to introduce a long-term directional bias (up or down).
This is useful for markets with persistent trends.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.