OPEN-SOURCE SCRIPT

Price Volume Harmony Indicator [Nasan]

Aggiornato
The indicator "Price Volume Harmony Indicator [Nasan]" (abbreviated as PVHI) combines relative volume intensity (RVI) and relative price change (PC) to identify potential synergy or divergence between price and volume movements. Let's break down the key components and discuss how to interpret the output:

Relative Volume Intensity (RVI):

It calculates the mean volume intensity using simple moving averages (SMA) of different periods (5, 8, 13, and 144).
It then computes point volume intensity based on the current volume compared to the previous bar's volume.
The final RVI is a combination of mean and point volume intensities.
Relative Price Change (PC):

It calculates the median absolute deviation (MAD) and the price change relative to MAD for three different lengths (5, 8, and 13).
The average relative PC is a weighted combination of the three PC values.
Normalization:

RVI and PC are normalized using Z-scores (standard scores) to bring them to the same scale. This enables easier comparison.
Histogram Plotting:

The RVI and PC are plotted as histograms below the main price chart. Green color bars represent RVI, and blue color bars indicate PC. The RVI bars are light green when the RVI values are decreasing compared to previous bar. Similarly, when PC bars are light blue it indicates that the PC values are decreasing compared to previous bars.

There is a zero line +/- 0.5 SD lines movements above and below the SD lines are practically
significant.

Interpretation :
(1) Strong Bullish Movement [Price Increases (PC) , Volume Increases(RVI)]:
This is when both the green bars (RVI) and blue bars (PC) increases and are on the same side above zero .

(2) Strong Bearish Movement [Price Decreases (PC) , Volume Increases(RVI)]:
This is when the green bars (RVI) increases and blue bars (PC) decreases. The green bars above zero but blue bars below zero.
(3) Weak Bullish Movement [Price Increases (PC) , Volume Decreases (RVI)]:
This is when the green bars (RVI) decreases and are below zero but the blue bars (PC) increases and are above zero .

(2) Weak Bearish Movement [Price Decreases (PC) , Volume Decreases (RVI)]:
This is when both the green bars (RVI) and blue bars (PC) decreases. The green bars and blue bars are below zero.
This output is slightly hard to read but with practice can be read easily.
Note di rilascio
Introduced another factor in calculation of the Relative volume intensity, Time Normalized Volume Intensity: Version 2 includes a new component called Time_Normalized_Volume_Intenstiy, calculated using a function that Trading view has release calculates relative volume ratios by comparing current volume at a particular time with average volume over previous n days at the same time, for example at 9:15 AM. This is a significant addition compared to Version 1. This accounts for volume spikes which are just time dependent like the spike in volume at the opening of a day. The default is ~0.33% weight is given to Point Volume Intensity, Mean volume Intensity and Time Normalized Volume Intensity. This captures a more compressive snapshot of volume compared to its historical value.
pricevolumeanalysisPrice Volume Trend (PVT)statisticsVolume

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità