Skip to main content

Overview

Active Buy/Sell Volume displays buy and sell volume as separate series with built-in statistical anomaly detection. Unlike standard volume bars that show total volume, this indicator splits it into aggressive buying and aggressive selling, then highlights bars where volume significantly exceeds the rolling average. This is the go-to indicator for spotting institutional-size activity hidden within normal market noise.

How It Works

For each bar, the indicator:
  1. Separates total volume into buy volume (trades executed at the ask) and sell volume (trades executed at the bid).
  2. Displays them as separate columns in the subchart.
  3. Computes a rolling average and standard deviation over the calculationPeriod.
  4. Flags bars where volume exceeds the rolling mean by more than stdDevMultiplier standard deviations.
  5. Renders anomaly bars in distinct colors and places a dot marker above/below them.

Chart Type

PropertyValue
TypeSubchart
PositionBelow main chart
Data sourceTrade-level buy/sell classification

Settings

Core Parameters

ParameterDescriptionDefault
calculationPeriodLookback period for rolling statistics50
stdDevMultiplierStandard deviations for anomaly threshold2
minVolumeThresholdMinimum volume to consider (filters noise)0

Colors

ParameterDescriptionDefault
buyColorNormal buy volume bar color#22c55e
sellColorNormal sell volume bar color#ef4444
anomalyBuyColorAnomaly buy volume bar color#84cc16
anomalySellColorAnomaly sell volume bar color#f97316
dotSizeSize of anomaly marker dots8

Display Options

ParameterDescriptionDefault
displayModeRendering stylecolumns
highlightAnomaliesEnable anomaly detectiontrue
anomalyThresholdOverride threshold multiplier2.5
anomalyPeriodOverride lookback period50
gradientIntensityFill gradient strength (0-1)0

Anomaly Detection

The anomaly system is the core feature of this indicator. It uses a simple but effective statistical model:
anomaly = (volume - rollingMean) > (stdDevMultiplier * rollingStdDev)
When a bar qualifies as an anomaly:
  • The bar is rendered in the anomaly color (lime green for buy, orange for sell).
  • A dot marker of dotSize pixels is placed above (buy) or below (sell) the bar.

Tuning the Detection

SettingLower ValueHigher Value
calculationPeriodMore sensitive, adapts fasterSmoother baseline, fewer false positives
stdDevMultiplierMore anomalies flaggedOnly extreme outliers flagged
minVolumeThresholdAll volume includedSmall trades filtered out
Anomaly bars in volume often coincide with institutional activity. Look for direction confirmation — an anomaly buy bar at support is more significant than one in the middle of a range.

Interpretation

Normal vs. Anomaly Bars

Normal bars (green/red) represent typical market activity within the expected range. Anomaly bars (lime/orange) represent statistically significant deviations — something unusual happened.

Anomaly Patterns

PatternInterpretation
Single anomaly buy bar at supportPotential institutional buying, strong bounce candidate
Single anomaly sell bar at resistancePotential institutional selling, rejection likely
Consecutive anomaly bars (same direction)Sustained institutional flow, trend continuation
Anomaly buy and sell in same barLarge two-sided activity, likely a significant event
Anomaly bar with no price movementVolume absorbed by passive orders — hidden accumulation/distribution

Volume Asymmetry

When buy anomalies appear but sell volume remains normal (or vice versa), there is a clear directional asymmetry. This is often more significant than overall volume spikes because it shows one-sided aggression.
The minVolumeThreshold parameter is useful on lower timeframes where small trades can create statistical noise. Set it above the typical small-trade size for your market to focus on meaningful activity.

Display Modes

While the default columns mode is most intuitive for volume data, other modes are available:
ModeDescription
columnsSide-by-side buy/sell histogram (default). Best for volume comparison.
lineContinuous lines for buy and sell volume. Useful for trend analysis.
candlesOHLC representation. Less common for this indicator.

Practical Examples

  • Support defense: Price tests support, anomaly buy bar appears — institutional buyer stepping in, strong bounce signal.
  • Breakout confirmation: Price breaks resistance with anomaly buy volume — real demand behind the move.
  • Exhaustion detection: Anomaly sell bar after extended downtrend, price stabilizes — selling climax, potential bottom.
  • Absorption: Anomaly buy bars with flat price — someone is buying heavily but price is not moving, absorption by passive sellers (or vice versa).
Anomaly detection is backward-looking by nature. The rolling period establishes what is “normal,” so the first calculationPeriod bars on any chart will not produce reliable anomaly signals.
  • Delta Volume — net difference (buy minus sell) per bar
  • CVD — cumulative delta for trend analysis
  • Liquidations — forced volume events