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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。