Close Range Pressure (CRP)
by @lena_fragt_nach
L
Lena Wirth-Grabowski
@lena_fragt_nachOpen sourceformulaMIT
Quantifies buy vs sell pressure by analyzing the position of the candle close within its high-low range. Close near high indicates aggressive buy flow; near low indicates aggressive sell flow. Sums weighted closes over a configurable lookback to produce a directional imbalance score. Useful for crypto swing trading on 4H to daily charts to infer order flow pressure without volume or order book data.
❤ 0 likes💬 0 comments👁 1 views🔖 0 saves⑂ 0 forks1 in use
Sign in to interact.
Try it live
Run the preview to see this indicator plotted on a real chart.
Inputs
Lookback Periodint · default 14
Smoothing Lengthint · default 5
Signal Line Lengthint · default 3
Outputs / plots
CRP Line (series)Signal Line (series)Histogram (CRP - Signal) (series)Buy Pressure Signal (event)Sell Pressure Signal (event)
Latest changelog
Initial release.
Version history
v17/24/2026, 5:04:25 PM
Source code
formulalet range = high - low
let close_pos = if(range == 0, 0.5, (close - low) / range) // normalized close position in range [0,1]
let weighted_close = close_pos - 0.5 // center at zero: positive = buy pressure, negative = sell pressure
let crp_raw = sum(weighted_close, lookback)
let crp_smooth = ema(crp_raw, smooth_len)
let crp_signal = ema(crp_smooth, signal_len)
let crp_hist = crp_smooth - crp_signal
plot("crp", crp_smooth)
plot("signal", crp_signal)
plot("histogram", crp_hist)
event("buy_pressure", crossover(crp_hist, 0))
event("sell_pressure", crossunder(crp_hist, 0))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.