PROTECTED SOURCE SCRIPT
Chainbey AI - 4H Dynamic Range (Auto Reset + Alert)

📌 Chainbey AI – 4H Dynamic Range (Auto Reset + Strong Breakout Alerts)
Chainbey AI – 4H Dynamic Range is a professional, clean, and non-repainting range-based indicator designed to identify high-probability market structure on the 4H timeframe and help traders execute precisely on lower timeframes (5m / 15m).
This tool automatically detects the active 4H range (mother candle), continuously updates it, and resets only after a confirmed strong breakout, keeping your chart clean and focused on what really matters.
🔍 How It Works
✅ 4H Dynamic Range Detection
Automatically marks the current active 4H range using:
High & Low lines
Background fill with adjustable opacity
The range stays active as long as price remains inside it.
🔁 Smart Auto Reset Logic
The range is not reset by random wicks.
It resets only when a strong 4H breakout is confirmed (based on your selected rules).
When broken, the old range is cleared and a new 4H range is detected automatically.
🔔 Alerts (Very Important)
This indicator includes two powerful alert types:
1️⃣ New 4H Range Found
Triggered when:
A strong breakout is confirmed
The indicator resets and starts tracking a new 4H range
📢 Use this alert to know when market structure has changed.
2️⃣ Strong 4H Range Breakout (UP / DOWN)
Triggered when:
A confirmed 4H candle close breaks above or below the range
Optional ATR buffer and impulse strength filters are satisfied
📢 Use this alert to prepare for continuation, trend shift, or pullback trades.
✅ Alerts are based on confirmed 4H candles, making them stable and non-repainting.
⚙️ Strong Breakout Filtering (User Adjustable)
You can choose how strict the breakout confirmation should be:
Close only
Close + ATR buffer (recommended)
Close + ATR buffer + impulse candle strength
This helps eliminate fake breakouts and noise.
🎯 Best Use Case
Identify HTF structure
Trade range highs / lows
Confirm breakouts before entering
Perfect for Forex, Gold (XAUUSD), Crypto, Indices
🧠 Why Chainbey AI?
Chainbey AI focuses on clarity, confirmation, and discipline—not over-signals or clutter.
If you want to trade what matters, not what moves randomly, this indicator is built for you.
📌 Tip:
For alerts, use “Once per bar close” for the most reliable results.
Chainbey AI – 4H Dynamic Range is a professional, clean, and non-repainting range-based indicator designed to identify high-probability market structure on the 4H timeframe and help traders execute precisely on lower timeframes (5m / 15m).
This tool automatically detects the active 4H range (mother candle), continuously updates it, and resets only after a confirmed strong breakout, keeping your chart clean and focused on what really matters.
🔍 How It Works
✅ 4H Dynamic Range Detection
Automatically marks the current active 4H range using:
High & Low lines
Background fill with adjustable opacity
The range stays active as long as price remains inside it.
🔁 Smart Auto Reset Logic
The range is not reset by random wicks.
It resets only when a strong 4H breakout is confirmed (based on your selected rules).
When broken, the old range is cleared and a new 4H range is detected automatically.
🔔 Alerts (Very Important)
This indicator includes two powerful alert types:
1️⃣ New 4H Range Found
Triggered when:
A strong breakout is confirmed
The indicator resets and starts tracking a new 4H range
📢 Use this alert to know when market structure has changed.
2️⃣ Strong 4H Range Breakout (UP / DOWN)
Triggered when:
A confirmed 4H candle close breaks above or below the range
Optional ATR buffer and impulse strength filters are satisfied
📢 Use this alert to prepare for continuation, trend shift, or pullback trades.
✅ Alerts are based on confirmed 4H candles, making them stable and non-repainting.
⚙️ Strong Breakout Filtering (User Adjustable)
You can choose how strict the breakout confirmation should be:
Close only
Close + ATR buffer (recommended)
Close + ATR buffer + impulse candle strength
This helps eliminate fake breakouts and noise.
🎯 Best Use Case
Identify HTF structure
Trade range highs / lows
Confirm breakouts before entering
Perfect for Forex, Gold (XAUUSD), Crypto, Indices
🧠 Why Chainbey AI?
Chainbey AI focuses on clarity, confirmation, and discipline—not over-signals or clutter.
If you want to trade what matters, not what moves randomly, this indicator is built for you.
📌 Tip:
For alerts, use “Once per bar close” for the most reliable results.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.