PROTECTED SOURCE SCRIPT
Bulls vs Bears % Table

Bulls vs Bears % Box
What it does
Shows a compact on-chart box with the percentage of volume attributed to Bulls vs Bears over a window you choose. It’s a fast market-internals glance to gauge who’s in control right now.
What’s original/useful
Configurable inference: choose how “bull/bear” is defined (Tick-Rule, Candle Body, Heikin-Ashi Body, or VWAP comparison).
Flexible windowing: Session (RTH) reset or Rolling N bars—match your intraday workflow.
Clean UI: tiny table with custom colors and nine anchor placements; designed to overlay any layout without clutter.
How it works (simple)
For each bar, the script infers direction with one of four rules and assigns that bar’s volume to Bulls or Bears:
Tick-Rule (close vs previous close) – responsive in chop (default).
Body (close vs open) – classic candle color approach.
Heikin-Ashi Body – smoother trend read using HA open/close.
VWAP (close vs VWAP) – bull if the bar closes above VWAP, bear if below.
Optional: doji split 50/50. The box displays the Bull % and Bear % of the accumulated window.
Settings
Window: Session (RTH) with editable hours/days, or Rolling N bars.
Direction Rule: Tick-Rule, Body, Heikin-Ashi Body, or VWAP.
Doji Handling: Split doji volume 50/50 (on/off).
Placement: 9 anchors (Top/Middle/Bottom × Left/Center/Right).
Colors: Header, background, border, and dominant/sub text colors for Bulls/Bears.
How to read it
Bulls % > Bears % → buyer dominance; continuation more likely.
Bears % > Bulls % → seller dominance; watch for rallies to fail.
Extreme imbalance (e.g., >60–70% one side) → strong push but also pullback risk as the move matures.
Limitations & transparency
Uses volume-based inference, not true bid/ask delta (TradingView does not expose tape-level buy/sell splits).
Results vary by rule/window; pick one and stay consistent for your playbook.
No forward-looking data; no lookahead is used. This is not a signal generator or a strategy.
Best practices
Index futures/indices intraday: Session (RTH) + Tick-Rule is a solid default.
Trend days: try Heikin-Ashi Body for smoother dominance.
Mean-reversion: watch for extremes reverting toward balance.
No external code reused.
What it does
Shows a compact on-chart box with the percentage of volume attributed to Bulls vs Bears over a window you choose. It’s a fast market-internals glance to gauge who’s in control right now.
What’s original/useful
Configurable inference: choose how “bull/bear” is defined (Tick-Rule, Candle Body, Heikin-Ashi Body, or VWAP comparison).
Flexible windowing: Session (RTH) reset or Rolling N bars—match your intraday workflow.
Clean UI: tiny table with custom colors and nine anchor placements; designed to overlay any layout without clutter.
How it works (simple)
For each bar, the script infers direction with one of four rules and assigns that bar’s volume to Bulls or Bears:
Tick-Rule (close vs previous close) – responsive in chop (default).
Body (close vs open) – classic candle color approach.
Heikin-Ashi Body – smoother trend read using HA open/close.
VWAP (close vs VWAP) – bull if the bar closes above VWAP, bear if below.
Optional: doji split 50/50. The box displays the Bull % and Bear % of the accumulated window.
Settings
Window: Session (RTH) with editable hours/days, or Rolling N bars.
Direction Rule: Tick-Rule, Body, Heikin-Ashi Body, or VWAP.
Doji Handling: Split doji volume 50/50 (on/off).
Placement: 9 anchors (Top/Middle/Bottom × Left/Center/Right).
Colors: Header, background, border, and dominant/sub text colors for Bulls/Bears.
How to read it
Bulls % > Bears % → buyer dominance; continuation more likely.
Bears % > Bulls % → seller dominance; watch for rallies to fail.
Extreme imbalance (e.g., >60–70% one side) → strong push but also pullback risk as the move matures.
Limitations & transparency
Uses volume-based inference, not true bid/ask delta (TradingView does not expose tape-level buy/sell splits).
Results vary by rule/window; pick one and stay consistent for your playbook.
No forward-looking data; no lookahead is used. This is not a signal generator or a strategy.
Best practices
Index futures/indices intraday: Session (RTH) + Tick-Rule is a solid default.
Trend days: try Heikin-Ashi Body for smoother dominance.
Mean-reversion: watch for extremes reverting toward balance.
No external code reused.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.