OPEN-SOURCE SCRIPT
Buy vs Sell Liquidity + Difference (Bottom Right)

Script Summary (Short Notes)
⚙️ Purpose
Tracks and displays Buy Volume vs Sell Volume difference during the day, based on candle direction.
Useful for spotting liquidity imbalance between buyers and sellers.
📊 How It Works
Volume Classification
If close > open → counts volume as Buy Volume
If close < open → counts volume as Sell Volume
Aggregation Timeframe
You can select a timeframe (1, 2, 3, 5, 15, 30 mins)
Script recalculates data from that aggregation level.
Daily Reset
At the start of a new trading day, totals reset to zero.
Cumulative Calculation
Adds all buy/sell volumes as the day progresses.
Calculates:
Total Volume
Difference (BUY − SELL)
Percentages (%)
⚙️ Purpose
Tracks and displays Buy Volume vs Sell Volume difference during the day, based on candle direction.
Useful for spotting liquidity imbalance between buyers and sellers.
📊 How It Works
Volume Classification
If close > open → counts volume as Buy Volume
If close < open → counts volume as Sell Volume
Aggregation Timeframe
You can select a timeframe (1, 2, 3, 5, 15, 30 mins)
Script recalculates data from that aggregation level.
Daily Reset
At the start of a new trading day, totals reset to zero.
Cumulative Calculation
Adds all buy/sell volumes as the day progresses.
Calculates:
Total Volume
Difference (BUY − SELL)
Percentages (%)
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.