OPEN-SOURCE SCRIPT
Descriptive Statistics [Range, Interquartile Range, Range Ratio]

This indicator compares two measures of price spread: Range and Interquartile Range (IQR). It is designed to describe market structure and volatility without predicting direction.
Range measures the total distance between the highest and lowest values in the dataset. It captures the full extent of price movement, including extreme spikes and wicks.
IQR (Interquartile Range) measures the spread of the middle 50% of data, from Q1 to Q3. It represents the core structure of price movement while reducing the influence of extreme values.
What it shows
1. Range: The total observed price movement over the selected period.
2. IQR: The spread of the central portion of price data (middle 50%).
3. Range / IQR Ratio: A comparison between total movement and core movement.
Key concept
Range reflects total market movement including extremes.
IQR reflects the typical or core movement of price.
Comparing the two helps describe how much of the market movement is driven by extremes versus structured behavior.
The range can be used to determine significant pivot points that once broken can lead to potential continuation after a pull back. Watch for those pivots at the point where the range starts to remain constant after three or more bars.
⚠️ Note
This indicator is for analytical and educational purposes only and does not provide trading signals or directional predictions.
Range measures the total distance between the highest and lowest values in the dataset. It captures the full extent of price movement, including extreme spikes and wicks.
IQR (Interquartile Range) measures the spread of the middle 50% of data, from Q1 to Q3. It represents the core structure of price movement while reducing the influence of extreme values.
What it shows
1. Range: The total observed price movement over the selected period.
2. IQR: The spread of the central portion of price data (middle 50%).
3. Range / IQR Ratio: A comparison between total movement and core movement.
Key concept
Range reflects total market movement including extremes.
IQR reflects the typical or core movement of price.
Comparing the two helps describe how much of the market movement is driven by extremes versus structured behavior.
The range can be used to determine significant pivot points that once broken can lead to potential continuation after a pull back. Watch for those pivots at the point where the range starts to remain constant after three or more bars.
⚠️ Note
This indicator is for analytical and educational purposes only and does not provide trading signals or directional predictions.
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 cualquier 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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga 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 cualquier 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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.