OPEN-SOURCE SCRIPT

Trend vs Balance + Alerts

52
This indicator is built to answer one key question before you trade:
Is the market trending or balancing (ranging)?
And it doesn’t just label it — it also gives you a confidence score (0–100%).

It works with two timeframes:

Daily (D): the “base” timeframe — it drives the decision.

H4 (240): the “adjustment” timeframe — it reinforces or weakens what Daily says.

That’s why the final output is COMBO:

COMBO always follows the Daily regime (Bull Trend, Bear Trend, or Balance).

H4 does NOT change the regime, it only adjusts the confidence % depending on whether it agrees or conflicts.

The % is calculated using a checklist-style scoring system (5 points per regime).
Each regime has 5 measurable conditions, each worth 20 points:

3 out of 5 → 60%

5 out of 5 → 100%

What does the checklist measure (pure candle behavior):

Structure: whether price forms a clear staircase (HH/HL for bull trend or LL/LH for bear trend).

Closes: whether candles close near the extremes (trend) or near the middle (balance).

Overlap: whether price is “choppy” with lots of overlap (balance) or cleanly displaced (trend).

Impulse vs pullback: whether one side clearly dominates (trend) or moves are more symmetric (balance).

Breaks: whether price breaks and stays outside (acceptance = trend) or breaks and quickly re-enters (balance).

How to read it quickly:

COMBO = your main playbook (trend strategy or range strategy).

COMBO % = your confidence level (how clear the context is).

If you see a ⚠️, it means strong conflict between Daily and H4 — a “be careful” day.

In short: Daily tells you the market “weather”, and H4 tells you whether today the wind is helping or fighting you.

hace 3 días

Notas de prensa

This updated version adds a practical “decision + alert” layer on top of the original regime detector.

The indicator classifies market conditions into **three regimes**:
**Bull Trend**, **Bear Trend**, or **Balance (Range)** — and assigns a **confidence score (0–100%)**.

It works with **two timeframes**:

* **Daily (D)** is the *anchor* and always defines the final regime.
* **H4 (240)** is an *adjustment layer* that can **increase or decrease the Daily confidence**, but it **does not override** the Daily regime.

The confidence score is built from a checklist-style model (5 points per regime):

1. **Structure** (higher highs/lows or lower highs/lows)
2. **Close location** (closes near extremes vs near the middle)
3. **Overlap** (chop/rotation vs clean displacement)
4. **Impulse vs pullback** (dominant side vs symmetric movement)
5. **Break behavior** (acceptance vs failed break / re-entry)

**COMBO** is the final output:

* **COMBO regime = Daily regime**
* **COMBO % = Daily % adjusted by H4 agreement/conflict** (think “70/30 logic”, fully configurable)

### New: Alerts by confidence %

You can now set alerts that trigger when COMBO reaches a confidence level you choose:

* **COMBO % alert** (any regime)
* **TREND % alert** (trend only, **direction-agnostic** — bull or bear both count)

To reduce “MTF alert noise”, the script includes an option to fire alerts **only when both Daily and H4 bars are confirmed/closed**, making alerts more reliable and avoiding mid-bar flips.

In short: **Daily tells you the market weather, H4 adjusts the confidence, and alerts notify you when the regime becomes strong enough to trade.**

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.