1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
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.
Cumulative Volume Delta calculation via lower timeframes
Linear regression slope and R-squared trend qualification
Visual regime background fills and dynamic bias bands
Customizable anchor periods and regression length settings
Optional CVD candlesticks and slope zero-cross markers
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Regression Length (N)
int
30
regLength
Min R²
float
0.3
minR2
Slope Epsilon (deadband)
float
0.0
slopeEps
Flip Confirm Bars (X)
int
1
flipConfirmBars
Swing Strength
int
3
swingStrength
Bias Visual Scale
float
0.8
biasVisualScale
Force Test Bias (debug)
bool
false
forceTestBias
Bypass R² Gate
bool
true
bypassR2
Bypass Structure Gate
bool
true
bypassStructure
Anchor period
timeframe
1D
anchorInput
Use custom timeframe
bool
false
useCustomTimeframeInput
Timeframe
timeframe
1
lowerTimeframeInput
Show all 27 settings
Setting
Type
Default
Variable
Show CVD candles
bool
false
showCvdCandles
Regime background
bool
true
showRegimeBg
BG Opacity (higher = lighter)
int
92
regimeBgOpacity
Show bias band
bool
true
showBiasBand
Band Opacity
int
70
bandOpacity
Show slope
bool
true
showSlope
Show slope EMA
bool
false
showSlopeMA
Slope EMA length
int
8
slopeMaLen
Mark slope zero-cross
bool
true
showSlopeX
Show bias histogram
bool
false
showBiasHist
Show R² lane
bool
false
showR2Lane
Show Min R² gate
bool
true
showR2Gate
R² lane height (0..1)
float
0.25
r2LaneHeight
R² lane vertical offset
float
-0.85
r2LaneOffset
Show unqualified dot
bool
true
showQualDot
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 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
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
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
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
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
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