OPEN-SOURCE SCRIPT
Order Imbalance / Volume Regime

A buy-versus-sell volume imbalance proxy using the up-bar / down-bar (tick) rule when level-1 order data is unavailable, plus a percentile-rank regime of total traded volume. Highlights directional pressure and activity bursts. It does NOT generate buy or sell signals.
What it shows
- Cumulative buy-minus-sell volume imbalance over a window, normalised to [-1, 1]
- Volume percentile rank
- Volume regime (Quiet / Normal / High / Burst)
Honest by design
- No buy/sell signals. The imbalance is a descriptive pressure proxy, not a directional call.
- Non-repainting: backward-looking sums on confirmed bars.
Open-source and MIT licensed.
Disclaimer: impersonal educational and analytics tool. This is not investment advice, not a personalised recommendation, and carries no performance guarantee. Past results do not predict future results. You are solely responsible for your own trading decisions.
What it shows
- Cumulative buy-minus-sell volume imbalance over a window, normalised to [-1, 1]
- Volume percentile rank
- Volume regime (Quiet / Normal / High / Burst)
Honest by design
- No buy/sell signals. The imbalance is a descriptive pressure proxy, not a directional call.
- Non-repainting: backward-looking sums on confirmed bars.
Open-source and MIT licensed.
Disclaimer: impersonal educational and analytics tool. This is not investment advice, not a personalised recommendation, and carries no performance guarantee. Past results do not predict future results. You are solely responsible for your own trading decisions.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。