PROTECTED SOURCE SCRIPT
Updated Correlation of Price Spread and Volume

Correlation between candle's price spread (length of candle of each bar) and volume.
Generally, increases in volume precede significant price movements. However, If the price is rising in an uptrend but the volume is reducing, it may show that there’s little interest in the instrument, and the price may reverse.
The closer the correlation is to 1.0, indicates the instruments will move up and down together as it is expected with volume and price spread. So the correlation Indicator aims to display when the price spread and volume is in correlation and not. Blue color represent positive correlation while orange negative correlation. The strength of the correlation is determined by the width of the bands.
Generally, increases in volume precede significant price movements. However, If the price is rising in an uptrend but the volume is reducing, it may show that there’s little interest in the instrument, and the price may reverse.
The closer the correlation is to 1.0, indicates the instruments will move up and down together as it is expected with volume and price spread. So the correlation Indicator aims to display when the price spread and volume is in correlation and not. Blue color represent positive correlation while orange negative correlation. The strength of the correlation is determined by the width of the bands.
Release Notes
Added horizontal lines to indicate the strength of the correlation (default 0.2).Release Notes
Updated the titleRelease Notes
Fix the algorithmRelease Notes
Added yellow line for the correlation with the user-selected instrument.Release Notes
Changed the default length parameterProtected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.