OPEN-SOURCE SCRIPT

Whale Order Flow Radar [JOAT]

3 520
Whale Order Flow Radar [JOAT]
Reconstructs institutional order-flow pressure from standard OHLCV and flags the footprints large participants leave behind — without needing tick or bid/ask data.

What it is
Most volume tools only tell you that "a lot traded". They do not tell you who was aggressive or which side absorbed the flow. This indicator estimates aggressor pressure from the one thing every chart gives you — the open, high, low, close and volume of each bar — and turns it into a readable map of accumulation, distribution and absorption. It is an original engine built from scratch; it is not a wrapper around a built-in volume study.

How it works
The calculations are transparent and each one is standard statistics applied in a specific way:

Whale prints — every bar's volume is converted to a z-score against a rolling mean and standard deviation (default 50-bar window). A bar is only tagged as a whale print when its volume is a statistical outlier and it closes with conviction (the close lands in the upper or lower third of the bar's range). Requiring both filters separates genuine directional size from random spikes.

Delta proxy — each bar's volume is split into buy volume and sell volume by where price closed inside its own range (close near the high = buyers dominated, close near the low = sellers dominated). Delta is buy minus sell. This is a bounded, non-repainting estimate of aggressor delta; it is a proxy, not true tick delta, and the description is honest about that.

Cumulative delta — the running sum of the delta proxy, with an optional reset per session or week so it does not drift indefinitely.

Absorption — high volume combined with an unusually small range flags a passive iceberg soaking up flow. These are marked separately because they often precede reversals rather than continuations.

Pressure oscillator — a smoothed, volume-normalised delta that drives the colour system and gates the signals so you are reading strength, not every wiggle.

The signals
A Buy prints when a bullish whale print lands while the cumulative delta and an optional trend filter both agree; a Sell is the mirror. Everything is evaluated on the confirmed bar, so a printed signal does not repaint. A minimum-bar spacing control keeps Buy and Sell labels from stacking on lower timeframes.

Trade levels
When enabled, the most recent signal draws an ATR-based ladder: a stop level and three take-profit levels at your chosen R multiples, each labelled with its price on the right edge, so the intended risk and reward are visible at a glance.

The dashboard
A compact panel reports the current trend bias, the pressure reading, a 0–100 conviction estimate for the latest print, the active signal state, and a live win tally (how often the first target was reached before the stop, measured only on already-closed bars with no lookahead). The panel position and text size are adjustable.

How to use it
• Works on any symbol and any timeframe that provides volume; on symbols with no real volume the delta components are less meaningful, which is noted here honestly.
• Treat whale prints and absorption as context, not as automatic entries — combine them with your own structure read.
• Use the trend filter to only take prints in the direction of the higher-level bias, or turn it off for counter-trend fade setups.
• The conviction score and win tally are on-chart context to help you filter, not a performance promise.

Settings
Volume baseline window, whale z-score threshold, conviction fraction, absorption threshold, delta smoothing and reset, trend filter length, ATR risk multiple and target R multiples, plus full visual and dashboard controls.

Originality and usefulness
The value here is the specific combination: a dual-filter whale detector (outlier volume and close-in-range conviction), a bounded close-based delta proxy with cumulative tracking, a separate absorption model, and a normalised pressure oscillator that ties them together into one non-repainting signal. That blend, and the reasoning for it, is what makes it more than a standard volume histogram.

Notes and limitations
• The delta and pressure figures are estimates derived from OHLCV, not exchange order-flow data. They approximate aggressor behaviour; they do not measure it directly.
• No indicator predicts the future. Signals can and will fail, especially in thin or news-driven conditions.
• The win tally reflects only what has already happened on the loaded chart and is not a forecast of future results.
• This is an educational and analytical tool, not financial advice. Manage your own risk.

— made with passion by officialjackofalltrades

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.