OPEN-SOURCE SCRIPT

Bull/Bear Ownership — MTF Alignment (v6)

33
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 💜

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.