Session Overlap Volume Pressure Gauge
by @walid_doubts_it
W
Walid Al-Sarraj
@walid_doubts_itOpen sourceformulaMIT
Measures the ratio of bullish to bearish candle body sizes over a rolling window, normalized and smoothed. Designed to go flat and silent outside the London-New York overlap session. Triggers threshold-cross events when buying or selling pressure dominates.
❤ 0 likes💬 0 comments👁 1 views🔖 0 saves⑂ 0 forks4 in use
Sign in to interact.
Try it live
Run the preview to see this indicator plotted on a real chart.
Inputs
Rolling Window Lengthint · default 20
Ratio Smoothing Lengthint · default 5
Signal Line Lengthint · default 9
Alert Threshold (±)float · default 1.5
Outputs / plots
Pressure Line (series)Signal Line (series)Pressure Histogram (series)Bullish Pressure Alert (event)Bearish Pressure Alert (event)
Latest changelog
Initial release.
Version history
v17/22/2026, 6:21:09 PM
Source code
formulalet bull_body = max(close - open, 0)
let bear_body = max(open - close, 0)
let bull_sum = sum(bull_body, window_len)
let bear_sum = sum(bear_body, window_len)
let raw_ratio = if(bear_sum > 0, bull_sum / bear_sum, 1)
let log_ratio = log(max(raw_ratio, 0.0001))
let smoothed = ema(log_ratio, smooth_len)
let z = zscore(smoothed, window_len)
let normalized = clamp(z, -3, 3)
let vol_weight = if(volume > 0, volume / max(sma(volume, window_len), 0.0001), 1)
let pressure = normalized * clamp(vol_weight, 0.5, 2)
let signal_line = sma(pressure, signal_len)
let hist = pressure - signal_line
let bull_cross = crossover(pressure, threshold)
let bear_cross = crossunder(pressure, threshold * -1)
plot("pressure", pressure)
plot("signal", signal_line)
plot("hist", hist)
event("bull_alert", bull_cross)
event("bear_alert", bear_cross)Comments (0)
Sign in to leave a comment.
No comments yet.
Related indicators
Want to use this?
Sign in to preview it live on a chart, fork it into your own Indicators Lab, or use it in a strategy.