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. اقرأ المزيد في شروط الاستخدام.