OPEN-SOURCE SCRIPT
Bull/Bear Ownership — MTF Alignment (v6)

Bull/Bear Ownership — MTF Alignment (v6)
Scores who “owns” the market (bulls vs bears) across multiple timeframes and rolls it into a single 0–100 alignment score (50 = neutral). Uses bullish-bar share, body dominance, and regression slope (ATR-normalized). Includes faint MTF trend lines, bar paints, mini table, badge, and 4 alert conditions.
Full description
What it does
This tool measures bull/bear ownership on up to 7 selectable timeframes and combines them into one easy alignment meter.
For each TF it computes:
Share of bullish bars over a lookback (0–1).
Body dominance (−1…+1) = avg(bull bodies) − avg(bear bodies) scaled by total bodies.
Trend slope (−1…+1) = linear regression slope normalized by ATR (dimensionless strength).
These pieces are blended into a per-TF score (−10…+10), weighted by your TF weights, and normalized to a composite 0…100:
Higher = stronger multi-TF bull ownership
Lower = stronger multi-TF bear ownership
50 = neutral / mixed
Visuals
Optional faint regression “trend lines” per TF (green/red by direction).
Bar paints on GO / NO-GO thresholds (default 70 / 30).
Floating badge with the live % and stack state.
Mini table showing each TF’s score % and notes (majority bull/bear, body Δ%, slope×ATR).
Inputs
Timeframes: 7 slots, each with enable + weight (1–5).
Ownership calc: Lookback (bars), slope length, ATR length, blend weights (body vs slope).
Display: trend lines toggle, opacity, bar paints, badge, table, table corner.
Thresholds: GO (bullish) / NO-GO (bearish).
Alerts
GO ✅ (composite ≥ threshold)
NO-GO 🛑 (composite ≤ threshold)
ALL TFs UP ✔ (every enabled TF bullish)
ALL TFs DOWN ✖ (every enabled TF bearish)
Tips
Use a ladder like 60/120/180/240/D (1h/2h/3h/4h/1D).
Give higher TFs more weight for trend trading; raise body dominance weight for “who’s in control,” or slope weight for momentum.
Set ownLen = 1 if you want “who owned the last bar” per TF.
Tune GO/NO-GO for your asset & timeframe; 70/30 is a solid start.
Notes
This is an analysis tool, not financial advice. Backtest and combine with your risk management. uwu 💜
Scores who “owns” the market (bulls vs bears) across multiple timeframes and rolls it into a single 0–100 alignment score (50 = neutral). Uses bullish-bar share, body dominance, and regression slope (ATR-normalized). Includes faint MTF trend lines, bar paints, mini table, badge, and 4 alert conditions.
Full description
What it does
This tool measures bull/bear ownership on up to 7 selectable timeframes and combines them into one easy alignment meter.
For each TF it computes:
Share of bullish bars over a lookback (0–1).
Body dominance (−1…+1) = avg(bull bodies) − avg(bear bodies) scaled by total bodies.
Trend slope (−1…+1) = linear regression slope normalized by ATR (dimensionless strength).
These pieces are blended into a per-TF score (−10…+10), weighted by your TF weights, and normalized to a composite 0…100:
Higher = stronger multi-TF bull ownership
Lower = stronger multi-TF bear ownership
50 = neutral / mixed
Visuals
Optional faint regression “trend lines” per TF (green/red by direction).
Bar paints on GO / NO-GO thresholds (default 70 / 30).
Floating badge with the live % and stack state.
Mini table showing each TF’s score % and notes (majority bull/bear, body Δ%, slope×ATR).
Inputs
Timeframes: 7 slots, each with enable + weight (1–5).
Ownership calc: Lookback (bars), slope length, ATR length, blend weights (body vs slope).
Display: trend lines toggle, opacity, bar paints, badge, table, table corner.
Thresholds: GO (bullish) / NO-GO (bearish).
Alerts
GO ✅ (composite ≥ threshold)
NO-GO 🛑 (composite ≤ threshold)
ALL TFs UP ✔ (every enabled TF bullish)
ALL TFs DOWN ✖ (every enabled TF bearish)
Tips
Use a ladder like 60/120/180/240/D (1h/2h/3h/4h/1D).
Give higher TFs more weight for trend trading; raise body dominance weight for “who’s in control,” or slope weight for momentum.
Set ownLen = 1 if you want “who owned the last bar” per TF.
Tune GO/NO-GO for your asset & timeframe; 70/30 is a solid start.
Notes
This is an analysis tool, not financial advice. Backtest and combine with your risk management. uwu 💜
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。