OPEN-SOURCE SCRIPT

BO Rule: Full Suite (Auto-Clean)

148
**[English]**
**BO Rule: Ultimate Breakout & Retest Suite (Body Only + Strict Sequence)**

This is a comprehensive Price Action indicator designed for traders who focus on **Structure Break & Retest** setups. Unlike standard fractal indicators, this script employs a strict "New Price Rule" and "Body-Only" logic to filter out noise, combined with a Multi-Timeframe (MTF) Dashboard and Mobile Alerts.

**Key Logic & Unique Features:**

1. **Classic Levels (Body Only):**
* **Logic:** Resistance is defined by a Green candle followed by a Red candle. Support is Red followed by Green.
* **Precision:** The script strictly uses Candle **Bodies** (Open/Close) to define levels and confirm breakouts. Wicks are ignored to avoid volatility fakeouts.

2. **Strict Sequence (New Price Rule):**
* **Reset Logic:** Once a breakout signal is confirmed, all previous structure levels are immediately invalidated.
* The script only scans for *new* structure levels formed *after* the latest confirmed signal. This ensures you are always trading the most current market structure.

3. **Smart Visualization (Auto-Clean):**
* **Queue System:** To keep your chart clean, the script includes a "Display Limit" feature. It only keeps the most recent N signals (e.g., 20) and automatically deletes the oldest ones.

4. **MTF Dashboard & Conflicts:**
* Includes a bottom-right dashboard showing trend directions across 5 user-defined timeframes.
* Displays "Conflict" lines if different timeframes show opposing signals on the same bar.

5. **Filter Duplicates:**
* Option to show only **Trend Reversals** (Buy -> Sell -> Buy) by hiding consecutive signals in the same direction.

6. **Mobile Notifications:**
* Supports custom alerts for specific timeframe reversals, designed to push notifications directly to the TradingView App.

**How to Trade:**
* **Green Dashed Line:** Bullish Confirmation (Body Breakout + Retest).
* **Red Dashed Line:** Bearish Confirmation (Body Breakdown + Retest).
* **Dashboard:** ▲ = Bullish Trend, ▼ = Bearish Trend.

-------------------------------------------------------

**[中文]**
**BO Rule: 經典水平突破回踩策略 (實體判斷 + 嚴格序列 + 自動清理)**

這是一個專為裸K交易者 (Price Action) 設計的完整突破回踩系統。它採用了嚴格的「新價格規則」與「僅看實體」邏輯,並整合了多週期儀表板與手機通知功能。

**核心邏輯與獨特功能:**

1. **經典水平 (僅看實體 Body Only):**
* **定義:** 阻力位由「綠K接紅K」形成;支撐位由「紅K接綠K」形成。
* **過濾:** 系統僅使用 K棒實體 (收盤/開盤) 來定義水平與判斷突破,完全忽略影線 (Wicks),有效避免假突破。

2. **新價格規則 (嚴格序列):**
* **重置機制:** 採用「最新優先」原則。一旦當前訊號確認,之前所有的舊結構水平立即作廢。系統只會尋找在「最新訊號之後」形成的新水平,確保交易邏輯符合當下的市場結構。

3. **智能顯示 (自動清理):**
* **佇列系統:** 為了保持圖表整潔,您可以設定「保留最近 N 個訊號」。系統會自動刪除最舊的線段,避免圖表充滿歷史線條。

4. **多週期 (MTF) 儀表板:**
* 右下角面板可同時監控 5 個不同時間級別的趨勢狀態。
* 若不同週期在同一根 K 棒出現相反訊號,會標記為「衝突」。

5. **過濾重複訊號:**
* 可勾選「只顯示反轉」。若當前是多頭,系統會隱藏後續的多頭訊號,直到出現空頭訊號為止 (呈現:多 -> 空 -> 多)。

6. **手機 App 通知:**
* 支援針對特定週期的反轉訊號發送推播通知。

**使用說明:**
* **綠色虛線**:多頭確認 (實體突破 + 回踩)。
* **紅色虛線**:空頭確認 (實體跌破 + 回踩)。
* **儀表板**:▲ = 多頭趨勢,▼ = 空頭趨勢。

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.