OPEN-SOURCE SCRIPT
Volatility Quality Histogram (NicoadW)

This indicator is based on the Volatility Quality Index ( VQI ) by Thomas Stridsman.
It shows the slope of the VQI in form of a histogram.
The VQI is calculated in the following Steps:
1. Applying a WeightedMovingAverage with the onto the low, open, high, close and prior close
2. Calculating the true range and the range from the results of step 1 and setting them into relation
3. Calculating a weighted lumpsum of the results from step 2 (This is the value of the widely known VQI )
4. The change from the current value of step 3 compared to the last value is the VQI-Slope
5. The VQI-Slope is filtered by only recogning changes greater as the User-Input
6. If the Slope is rising, its considered a long trend and if its falling its considered a short trend
User Inputs
Valuation Period: Length of the WMAs
Filter in Pips: minimum change of the VQI-Slope to result in a Trend-Change
Visuals
Inrease the size of the Signal: Highligts the Trend-Changes
Color Chart Bars: Colors the bars of the main chart depending on the trend given by the VQI
It shows the slope of the VQI in form of a histogram.
The VQI is calculated in the following Steps:
1. Applying a WeightedMovingAverage with the onto the low, open, high, close and prior close
2. Calculating the true range and the range from the results of step 1 and setting them into relation
3. Calculating a weighted lumpsum of the results from step 2 (This is the value of the widely known VQI )
4. The change from the current value of step 3 compared to the last value is the VQI-Slope
5. The VQI-Slope is filtered by only recogning changes greater as the User-Input
6. If the Slope is rising, its considered a long trend and if its falling its considered a short trend
User Inputs
Valuation Period: Length of the WMAs
Filter in Pips: minimum change of the VQI-Slope to result in a Trend-Change
Visuals
Inrease the size of the Signal: Highligts the Trend-Changes
Color Chart Bars: Colors the bars of the main chart depending on the trend given by the VQI
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
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.