This is originally @cryptorae's script with modifications. A great explanation of function can be found on their Twitter.
Follow me @cryptorae on twitter
H/T @AureliusBTC and @cryptom173 for tweaks and assistance
Added three more setups:
Percent change for the two sets of volume ("retail" and...
The code in contains a simple correlation indicator that can be used as an alternative to Tradingview’s built-in “Correlation Coefficient” indicator. The indicator allows users to correlate up to 3 separate instruments on the same subplot. This allows you, for example, to easily see the correlation of your instrument with stocks, bonds and FX. Alternatively, a...
Graph shows level of correlation between current source and another one and track current value of it. User can select source for comparison, graph period and number of candles for calculation, enter level of significal correlation (+-0.65 by default). Grapf contains 4 plots: Correlation - current level of correlation, Zero line , +Corr_level - minimum level of...