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
93 lines of Pine Script v5 from collections/VectorCandles.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Vector Candles compares current volume against a 10-bar moving average and evaluates volume spread relative to recent highs. Bars are categorized and highlighted as large volume, medium volume, or normal volume, with distinct colors for bullish and bearish closes. The settings allow users to customize colors for each volume and direction tier.
Volume-weighted candlestick recoloring
Large and medium volume threshold detection
Volume spread calculation relative to recent highs
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Large Volume Up Candle Color
color
GREEN_COLOR
lgVolUpCandleColor
Medium Volume Up Candle Color
color
YELLOW_COLOR
mdVolUpCandleColor
Large Volume Down Candle Color
color
PURPLE_COLOR
lgVolDnCandleColor
Medium Volume Down Candle Color
color
PINK_COLOR
mdVolDnCandleColor
Normal Up Candle Color
color
AQUA_COLOR
norUpCandleColor
Normal Down Candle Color
color
RED_COLOR
norDnCandleColor
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.
Vector Candles is an overlay indicator that recolors price candles using PVSRA volume rules taken from the Traders Reality concept. It compares each bar's volume with the average of the previous ten bars and also checks the product of spread and volume against
Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA
This indicator identifies unusually large candles and high trading volume directly on the price chart. It checks whether the current bar range exceeds the maximum high-low range over a specified lookback period. If the range breaks the record with volume below
This indicator recolors price candles from recent volume and range. It marks climax bars when current volume times range exceeds the prior ten-bar peak or volume is at least twice a ten-bar average, and rising bars at one and a half times that average. Bullish
This overlay indicator draws rounded psychological price levels and optional PVSRA vector candle colors on the price chart. It plots quarter, half, and whole levels from a user-set rounding value, with separate color, line style, and width for each. Vector col
This indicator detects institutional or large-scale market activity using candle body size and trading volume. It compares current candle bodies against a 20-period simple moving average and checks for volume spikes above an adjustable moving average filter. I