OPEN-SOURCE SCRIPT

Short Pressure Index

160
Overview
A composite 0-100 "short pressure" score built from three independently computed components (volume climax, MA deviation, and bearish-bar momentum), with optional automatic exchange routing for crypto and FINRA short-volume data substitution for stocks — so the same score means something comparable across very different asset classes.

How it's calculated
1. Volume pressure: the fraction of high-significance volume (climax or above-average bars, per a PVSRA-style multiplier check) that occurred on bearish closes over a rolling window. For US stocks with FINRA short volume enabled, this component is swapped for the actual reported short-volume ratio instead.
2. MA deviation pressure: how far below (in ATR multiples) price sits from its moving average, rescaled to 0-100 over a rolling window.
3. Momentum pressure: the % of the last N bars that closed bearish.

The three are averaged and smoothed with an EMA to produce the SPI line, which gets its own signal-line EMA and histogram. For crypto, price/volume can be routed to a more liquid exchange feed (e.g. Bitfinex) since the chart's native feed may be sparse; unsupported symbol types can be suppressed entirely rather than plotting a meaningless value.

How to use it
Readings above the high threshold (default 70) suggest broad short-side pressure building across all three components; below the low threshold (default 30) suggests minimal short pressure. The histogram and signal-line crosses give earlier, more granular entries than waiting for a threshold cross. For US equities, "Use FINRA Short Volume" swaps in real reported short-sale data for a more direct read than the volume-climax proxy alone.

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.