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 Orderflow Pressure builds a weighted blend of volume delta, close location within the bar range, and body size relative to ATR, then applies a z-score, winsorizing, and an EMA. Relative volume, regression slope, and R-squared act as confidence filters, and confirmed slope flips can mark regime changes. Optional marks flag absorption and exhaustion, with optional CVD candles, a regime background, and a last-bar HUD. It does not place trades or set exits.
Weighted delta, close-location, and displacement pressure
Relative volume confidence filter
Z-score clipping and EMA smoothing
Absorption and exhaustion marks
Optional CVD candles, regime background, and last-bar HUD
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Anchor period
timeframe
1D
anchorInput
Use custom timeframe
bool
false
useCustomTimeframeInput
Lower timeframe
timeframe
1
lowerTimeframeInput
RVOL Lookback
int
20
lenRVOL
Z-Score Lookback
int
50
zLen
Pressure Smoothing (EMA)
int
5
smoothLen
Weight: Delta
float
0.60
wDelta
Weight: CLV (close-in-range)
float
0.25
wCLV
Weight: Displacement (body/ATR)
float
0.15
wDisp
Z Clip (winsorize)
float
3.0
clipZ
Min RVOL (confidence)
float
1.2
minRVOL
Pressure Slope Regression Length (N)
int
30
regLength
Show all 26 settings
Setting
Type
Default
Variable
Min R²
float
0.30
minR2
Flip Confirm Bars
int
1
flipConfirm
Slope Epsilon (deadband)
float
0.0
slopeEps
Show marks
bool
true
showMarks
Absorption: Min RVOL
float
1.5
absorbRVOL
Absorption: Min |zΔ|
float
1.2
absorbZ
Absorption: Max |Body|/ATR
float
0.25
absorbBodyATR
Exhaustion: Min |zΔ| prior bar
float
1.8
exhaustZ
Show CVD candles
bool
false
showCvdCandles
Regime background
bool
true
showRegimeBg
BG Opacity (higher = lighter)
int
92
regimeBgOp
Band Opacity
int
70
bandOpacity
Show simple HUD (last bar)
bool
false
showHUD
Plot Scale Multiplier
float
100.0
scaleMult
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.
Calculates the standard Money Flow Index (MFI) oscillator alongside an exponential moving average signal line in a separate pane. The script visually highlights trend conditions through dynamic ribbon filling, optional difference histogram bars, and overbought
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
Range Volume Change compares volume inside a chosen session window with the same window on the previous day and plots that change as a percentage. It accumulates volume during the window and, when enabled, volume outside it, drawing growing columns in a separa
This indicator builds a footprint of estimated buy and sell volume across price rows and plots it in a separate pane. It fills rows from bar low to high, stores volume per row, and draws buy and sell volume boxes, volume-profile boxes, row labels, and cumulati
This indicator measures directional momentum by evaluating candlestick body proportions and volume over a user-defined lookback window. It computes the ratio of candle body to total range, weights the cumulative value by volume and absolute body size, and dete
This indicator builds an aggregate oscillator in a separate pane. It scales open, high, low, close, and volume into a 0 to 1 range, then averages scaled readings from MACD, a MACD histogram, RSI, stochastic, CCI, momentum, OBV, a directional index, volume-weig