OPEN-SOURCE SCRIPT

Volume-Price Diff

Script is designed to analize volatility in real-time.

Once added to chart, script starting to collect 2 things:
  1. Ticks count (tc)
  2. Price changing ticks count (pctc)


The pctc/tc ratio may be interpret as a volatility measure.

Label above real-time bar shows:
  1. Ticks count
  2. Price changing ticks count
  3. Ratio between (2) and (1) in percents


Using this indicator trader may detect volatility spikes.
More the "Diff" - less the volatility and vice versa.
Candlestick analysisvolatilityindicatorvolumeanalysisvolumepriceanalysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer