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에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.