OPEN-SOURCE SCRIPT
BSP Order Flow Proxy

This indicator is a refined Buy/Sell Pressure (BSP) model designed to approximate order flow dynamics directly from price and volume data.
It estimates the relative dominance of buyers vs. sellers by analyzing candle structure and volume distribution — offering a simple yet powerful proxy for delta-based order flow.
You can toggle between two calculation modes:
• Tick Rule: compares current close vs. previous close (for assets with continuous volume flow).
• Candle Rule: compares close vs. open (for simpler candle-based estimation).
The result is a smoothed delta histogram:
• 🟩 Green bars — buying pressure dominates (demand > supply)
• 🟥 Red bars — selling pressure dominates (supply > demand)
• ⚫ Zero line — neutral or balanced order flow
The built-in HMA and EMA smoothing filters remove short-term noise and emphasize genuine momentum shifts in buyer/seller activity.
This tool is particularly useful for traders who want to:
• Gauge hidden shifts in market control (bullish or bearish pressure)
• Anticipate potential reversals or volume-driven continuations
• Combine volume analytics with technical price action
It estimates the relative dominance of buyers vs. sellers by analyzing candle structure and volume distribution — offering a simple yet powerful proxy for delta-based order flow.
You can toggle between two calculation modes:
• Tick Rule: compares current close vs. previous close (for assets with continuous volume flow).
• Candle Rule: compares close vs. open (for simpler candle-based estimation).
The result is a smoothed delta histogram:
• 🟩 Green bars — buying pressure dominates (demand > supply)
• 🟥 Red bars — selling pressure dominates (supply > demand)
• ⚫ Zero line — neutral or balanced order flow
The built-in HMA and EMA smoothing filters remove short-term noise and emphasize genuine momentum shifts in buyer/seller activity.
This tool is particularly useful for traders who want to:
• Gauge hidden shifts in market control (bullish or bearish pressure)
• Anticipate potential reversals or volume-driven continuations
• Combine volume analytics with technical price action
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。