OPEN-SOURCE SCRIPT

Interquartile range

Updated
This script plots the Interquartile range (difference between 3rd and 1st quartile), providing useful infos about price distribution and volatility . It is designed to work paired with my other script "Moving percentiles channel", but you can also use it alone.

Features:
- You can compute the percentiles using Linear interpolation or Nearest Rank methods
- You can plot not only the Interquartile range, but also the range (difference between 100th and 0 percentiles) or a User defined range (you have to select which percentiles you want to use from the settings)
- The script also plots a signal line that you can use to obtain signals when the Range line crosses the signal line itself. You can plot the signal line using many different MAs ( SMA , EMA , DEMA , TEMA , WMA , VWMA , HMA , ALMA , LSMA , FRAMA ).
- It also plots an histogram that represents the difference between the Range and the Signal line. It will be green colored when positive, and red colored when negative.

Please show me your support and follow me if you like my scripts. Many more of them are coming in the future.
@ Bezzus
Release Notes
Updates:
- Removed unnecessary code lines.

Bezzus
Volatility

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer