Indicator · Pine Script v6 · Own pane

Alighten CVD Regression Bias

by alighten-dev

This indicator calculates intrabar Cumulative Volume Delta (CVD) using lower timeframe data and applies linear regression to determine market bias.

View on GitHub

GitHub stars14on the repository
Pine versionv6current
Lines of code268
Settings27inputs
LicenceNone stated
Last update13 days ago15 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Alighten CVD Regression Bias evaluates regression slope and R-squared values across a chosen anchor period to identify volume-driven trend regimes. Plotted in a separate pane, the script displays background regime coloring, dynamic bias bands, slope lines, zero-cross indicators, and optional CVD candles. Key settings allow users to adjust the regression length, R-squared qualification gates, swing strength, and volume delta anchor timeframes.

Details

Published by

alighten-dev on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Volume, Trend

Markets

Any symbol

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Regression Length (N)int30regLength
Min R²float0.3minR2
Slope Epsilon (deadband)float0.0slopeEps
Flip Confirm Bars (X)int1flipConfirmBars
Swing Strengthint3swingStrength
Bias Visual Scalefloat0.8biasVisualScale
Force Test Bias (debug)boolfalseforceTestBias
Bypass R² GatebooltruebypassR2
Bypass Structure GatebooltruebypassStructure
Anchor periodtimeframe1DanchorInput
Use custom timeframeboolfalseuseCustomTimeframeInput
Timeframetimeframe1lowerTimeframeInput
Show all 27 settings
SettingTypeDefaultVariable
Show CVD candlesboolfalseshowCvdCandles
Regime backgroundbooltrueshowRegimeBg
BG Opacity (higher = lighter)int92regimeBgOpacity
Show bias bandbooltrueshowBiasBand
Band Opacityint70bandOpacity
Show slopebooltrueshowSlope
Show slope EMAboolfalseshowSlopeMA
Slope EMA lengthint8slopeMaLen
Mark slope zero-crossbooltrueshowSlopeX
Show bias histogramboolfalseshowBiasHist
Show R² laneboolfalseshowR2Lane
Show Min R² gatebooltrueshowR2Gate
R² lane height (0..1)float0.25r2LaneHeight
R² lane vertical offsetfloat-0.85r2LaneOffset
Show unqualified dotbooltrueshowQualDot
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.

Similar Pine Scripts

This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Trend Following Setup - Sideways Market Skipper

This indicator combines Chaikin Money Flow (CMF), a SuperTrend baseline, and an Average True Range (ATR) calculation inside a separate sub-pane. It calculates a standard 20-period CMF plotted as a line and colored histogram columns around a zero baseline, trac

Indicator v6 TrendVolume
Updated 6 months ago · Apache-2.0 GitHub repository of Institutional View: CMF & SuperTrend

Nexural Pressure Pro

by JasonTeixeira
9 stars

Nexural Pressure Pro is a composite pressure indicator that measures directional market momentum using volume-weighted directional movement, order flow delta, aggression, and efficiency ratio metrics. It filters out low-activity bars using configurable volume

Indicator v6 Oscillators & momentumVolume
Updated 12 days ago · Custom licence GitHub repository of Nexural Pressure Pro
6 stars

Capital41 Fusion Oscillator v3 measures multi-condition market confluence in a separate pane with a smoothed composite score ranging from 0 to 100. It evaluates four criteria: EMA trend direction, RSI oversold or overbought turns, Williams %R thresholds, and A

Indicator v6 Oscillators & momentumTrend
Updated 8 weeks ago · MIT GitHub repository of Capital41 Fusion Oscillator v3

Adaptive MA Slope

by capissimo
114 stars

This indicator calculates Kaufman's Adaptive Moving Average (KAMA) on a chosen price source and determines trend direction based on the slope across a configurable lookback window. Signals can be filtered by short-term volatility expansion using ATR comparison

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Adaptive MA Slope
92 stars

This indicator plots a volume-weighted average price of the typical price on the chart and colors that line by ADX strength. It draws a standard-deviation envelope around VWAP and tints the fill green when plus DI leads and red when minus DI leads. Triangle ma

Indicator v5 TrendOscillators & momentum
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev VWAP x ADX Explosion

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers