A price-chart overlay that uses cumulative volume delta built from a lower timeframe, one minute by default, to study the cost of buying and selling pressure.
1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
327 lines of Pine Script v6 from CVD_Advanced.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Over-Sold/Bought Cost tracks swing structure in the delta, ranks moves by a high-cost percentile and flags areas that look overbought or oversold. Options let divergences use the delta close or the price close and show a delta-implied close price. Settings include the lower timeframe, the cost rank and the swing length. It relies on an imported library and lower-timeframe data, so results depend on the data available for the symbol.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Lower Timeframe To Calculate CVD
timeframe
1
ltfInput
Use CVD Close For Divergences
bool
false
useCVDclose
Use Price Close For Divergences
bool
false
usePriceclose
Show Delta-Implied Close Price
bool
true
showExpectedClose
High Cost Rank (Higher = Stricter)
float
90
highCostRank
Cost Structure Length (Higher = Bigger Swings)
int
2
costDivLen
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This overlay indicator looks for regular price divergences against a set of oscillators, using pivot highs and lows. It compares those pivots with RSI, MACD and its histogram, stochastic, CCI, momentum, OBV, a directional oscillator, volume-weighted MACD, Chai
This indicator detects regular and hidden divergences across multiple technical factors plotted directly on the price chart. It evaluates price highs and lows against peaks and troughs identified by a five-bar fractal mechanism on RSI, RSI Stochastic, MACD, re
This indicator marks RSI divergences only when price trades beyond daily VWAP standard-deviation bands. It compares recent RSI extremes with price highs and lows over a lookback window, and it treats a divergence as valid only while RSI stays beyond overbought
This indicator builds a momentum score from the rate of change of close, using a lookback that expands or contracts with ATR relative to its standard deviation. It divides that rate of change by price standard deviation, scales the result, and weights it by vo
Nexural QWAP calculates a volume-weighted average price combined with a cumulative volume delta order flow engine directly on the main price chart. It analyzes market structure by detecting volume absorption, liquidity sweeps, price-CVD divergence, stacked imb
This indicator identifies regular and hidden bullish and bearish divergences between price action and multiple technical indicators, including RSI, OBV, MACD, Stochastic, and CCI. It evaluates price and indicator pivots over a configurable lookback window, cal