OPEN-SOURCE SCRIPT

Relative Volume Intensity Control Chart

업데이트됨
***NOTE THE VOLUME OSCILATOR PROVIDED AT THE BOTTOM IS FOR COMPARSION AND IS NOT PART OF THE INDICATOR****
This indicator provides a comprehensive and a nuanced representation of volume relative to historical volume. The indicator aims to provide insights into the relative intensity of trading volume compared to historical data. It calculates two types of relative volume intensity: mean volume intensity and point volume intensity. The final indicator, "Relative_volume_intensity," is a combination of these two.

1. Point Volume Intensity:
Calculate the ratio of the current volume to the corresponding SMA from the previous period for each of the periods.
Normalize each ratio by dividing it by the corresponding normalized SMA.
Assign weights to each normalized ratio and calculate the point volume intensity.
Point volume intensity calculates the intensity of the current trading volume at a specific point in time relative to its historical moving average. It assesses how much the current volume deviates from the previous historical average for different lookback periods(current volume/ average volume of previous n days). The calculation involves dividing the current volume by the corresponding previous historical moving average and normalizing the result. The purpose of point volume intensity is to capture the immediate impact of the current volume on the overall intensity, providing a more dynamic and responsive measure.

2. Mean Volume Intensity:
Calculate the simple moving averages (SMA) of the volume for different periods (5, 8, 13, 21, 34, 55, 89, 144).
Normalize each SMA by dividing it by the SMA with the longest lookback (144).
Assign weights to each normalized SMA and calculate the mean volume intensity.

Mean volume intensity, on the other hand, takes a broader approach by looking at the mean (average) of various historical moving averages of volume. Instead of focusing on the current volume alone, it considers the historical average intensity over multiple periods. The purpose of mean volume intensity is to provide a smoother and more stable representation of the overall historical volume intensity. It helps filter out short-term fluctuations and provides a more comprehensive view of how the current volume compares to historical norms.

Purpose of Both:
Both point volume intensity and mean volume intensity contribute to the calculation of the final indicator, "Relative_volume_intensity." The idea is to combine these two perspectives to create a more comprehensive measure of relative volume intensity. By assigning equal weights to both components and taking a balanced approach, the indicator aims to capture both short-term spikes in volume and trends in volume intensity over a relatively extended periods.

In calculation of both point volume intensity and mean volume intensity, shorter-term moving averages (e.g., 5, 8) have higher weights, suggesting a greater emphasis on recent volume behavior.

Visualization:
The script then calculates the mean and standard deviation of the relative volume intensity over a specified lookback length.
Plot lines for the centerline (mean), upper and lower 3 standard deviations, upper and lower 2 standard deviations, and upper and lower 1 standard deviation.
Plot the relative volume intensity as a step line with diamond markers.
It is displayed like a control chart where we can see how the relative intensity is behaving when compared to longer historical lookback period.
릴리즈 노트
Introduced another factor, Time Normalized 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.
controlchartsrelativevolumevolumeanalysisvolumeoscillatorVolume

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항