INVITE-ONLY SCRIPT
Güncellendi

Structural Trend & Fibo Nexus [sky eye]

127
System Philosophy This script is designed to solve a common problem in technical analysis: the conflict between short-term noise and long-term trends. By integrating three distinct technical layers—Momentum, Market Structure, and Price Geometry—this system provides a "Confluence" approach to identifying high-probability reversal zones within an established trend.

Technical Architecture

1. The Macro Momentum Layer (Trend Filter)

Core Logic: Unlike traditional Simple Moving Averages (SMA) which suffer from significant lag, this script utilizes a Zero-Lag Gaussian Filter. The Gaussian algorithm offers superior smoothness while retaining sensitivity to genuine trend reversals.

Multi-Timeframe (MTF) Dashboard: The table in the bottom-right corner computes the Gaussian trend across 5 timeframes (5m, 15m, 30m, 1H, 4H) in real-time.

Function: It acts as a "Trend Compass," ensuring you are aligning your trades with the dominant market flow.

2. The Market Regime Layer (Structure Filter)

Core Logic: A specialized ZigZag algorithm with volatility filtering.

Noise Filtration: The script filters out price movements smaller than a user-defined threshold (Default: 7.5% deviation). This reveals the true market structure of Higher Highs (HH) and Lower Lows (LL) without the distraction of minor consolidations.

Visual Aid:

Blue Background: Indicates a Bullish Structural Leg.

White Background: Indicates a Bearish Structural Leg.

3. The Price Geometry Layer (Entry Triggers)

Core Logic: Automated Fibonacci Retracements.

Dynamic Anchoring: The script automatically identifies the most recent valid ZigZag swing points and projects standard Fibonacci levels.

Key Levels: Focuses on the "Golden Pocket" (0.5 to 0.618) as the primary zone for trend continuation entries.

How to Use: The Confluence Strategy

To maximize the effectiveness of this script, we recommend the "Funnel Method":

Step 1: Check Macro Bias (The Dashboard) Look at the MTF Dashboard. For a high-probability setup, the higher timeframes (e.g., H1 and H4) should show the same color trend direction.

Blue Text = Bullish Bias

White Text = Bearish Bias

Step 2: Verify Structure (The Chart) Ensure the background color of the chart matches the direction of the dashboard.

Do not trade Long against a White background.

Do not trade Short against a Blue background.

Step 3: Await the Pullback (The Entry) Wait for price action to retrace into the Fibonacci levels (0.382, 0.5, or 0.618).

Long Entry: Price dips into the 0.618 zone while the Trend Line remains Blue.

Short Entry: Price rallies into the 0.618 zone while the Trend Line remains White.

Step 4: Risk Management

Stop Loss: Place below the invalidation point (0.786 Fibo level or the previous structural Swing Low).

Take Profit: Target the previous Swing High/Low (0.0 level) and Fibonacci Extensions (-0.272).

Customization

Sensitivity: Users can adjust the Depth and Min Swing % to fit different assets (e.g., Crypto requires higher percentages than Forex).

Visuals: All colors (Candles, Lines, Dashboard) are fully customizable in the settings menu to fit dark/light themes.

Disclaimer: This script is for educational and analytical purposes only. Past performance does not guarantee future results.

沒問題。根據 TradingView 的規則:「English must be predominant (英文必須為主)」以及「Other languages are welcome... but English must appear first (歡迎其他語言,但英文必須在最前面)」。

只要你遵守 「標題全英文」 且 「英文說明在上方,中文說明在下方」,這完全符合規定,不會被下架。

以下是幫你排版好的中英對照版本,請直接複製整段內容(標題請只用英文):

標題 (Title) - 請只填這行英文
Structural Trend & Fibo Nexus System

描述 (Description) - 請複製下方分隔線內的所有內容
System Philosophy This script is designed to solve a common problem in technical analysis: the conflict between short-term noise and long-term trends. By integrating three distinct technical layers—Momentum, Market Structure, and Price Geometry—this system provides a "Confluence" approach to identifying high-probability reversal zones within an established trend.

Technical Architecture

1. The Macro Momentum Layer (Trend Filter)

Core Logic: Unlike traditional Simple Moving Averages (SMA) which suffer from significant lag, this script utilizes a Zero-Lag Gaussian Filter. The Gaussian algorithm offers superior smoothness while retaining sensitivity to genuine trend reversals.

Multi-Timeframe (MTF) Dashboard: The table in the bottom-right corner computes the Gaussian trend across 5 timeframes (5m, 15m, 30m, 1H, 4H) in real-time.

Function: It acts as a "Trend Compass," ensuring you are aligning your trades with the dominant market flow.

2. The Market Regime Layer (Structure Filter)

Core Logic: A specialized ZigZag algorithm with volatility filtering.

Noise Filtration: The script filters out price movements smaller than a user-defined threshold (Default: 7.5% deviation). This reveals the true market structure of Higher Highs (HH) and Lower Lows (LL) without the distraction of minor consolidations.

Visual Aid:

Blue Background: Indicates a Bullish Structural Leg.

White Background: Indicates a Bearish Structural Leg.

3. The Price Geometry Layer (Entry Triggers)

Core Logic: Automated Fibonacci Retracements.

Dynamic Anchoring: The script automatically identifies the most recent valid ZigZag swing points and projects standard Fibonacci levels.

Key Levels: Focuses on the "Golden Pocket" (0.5 to 0.618) as the primary zone for trend continuation entries.

How to Use: The Confluence Strategy

To maximize the effectiveness of this script, we recommend the "Funnel Method":

Step 1: Check Macro Bias (The Dashboard) Look at the MTF Dashboard. For a high-probability setup, the higher timeframes (e.g., H1 and H4) should show the same color trend direction.

Blue Text = Bullish Bias

White Text = Bearish Bias

Step 2: Verify Structure (The Chart) Ensure the background color of the chart matches the direction of the dashboard.

Do not trade Long against a White background.

Do not trade Short against a Blue background.

Step 3: Await the Pullback (The Entry) Wait for price action to retrace into the Fibonacci levels (0.382, 0.5, or 0.618).

Long Entry: Price dips into the 0.618 zone while the Trend Line remains Blue.

Short Entry: Price rallies into the 0.618 zone while the Trend Line remains White.

Step 4: Risk Management

Stop Loss: Place below the invalidation point (0.786 Fibo level or the previous structural Swing Low).

Take Profit: Target the previous Swing High/Low (0.0 level) and Fibonacci Extensions (-0.272).

Customization

Sensitivity: Users can adjust the Depth and Min Swing % to fit different assets (e.g., Crypto requires higher percentages than Forex).

Visuals: All colors (Candles, Lines, Dashboard) are fully customizable in the settings menu to fit dark/light themes.

Disclaimer: This script is for educational and analytical purposes only. Past performance does not guarantee future results.

(Chinese Translation / 中文說明)

系統設計理念 本腳本旨在解決技術分析中常見的痛點:短期雜訊與長期趨勢之間的衝突。透過整合三個不同的技術層面——動能 (Momentum)、市場結構 (Market Structure) 和價格幾何 (Price Geometry)——本系統提供了一種「共振」方法,用於識別既定趨勢中的高勝率反轉區域。

技術架構解析

1. 宏觀動能層 (趨勢過濾)

核心邏輯: 不同於傳統簡單移動平均線 (SMA) 存在明顯延遲,本腳本採用零延遲高斯濾波器 (Zero-Lag Gaussian Filter)。高斯演算法在保持對趨勢反轉敏感的同時,提供了卓越的平滑度。

多週期 (MTF) 儀表板: 右下角的表格即時計算 5 個時間週期 (5m, 15m, 30m, 1H, 4H) 的高斯趨勢。

功能: 它充當「趨勢指南針」,確保您的交易與市場主趨勢資金流向一致。

2. 市場狀態層 (結構過濾)

核心邏輯: 帶有波動率過濾的專用 ZigZag 演算法。

雜訊過濾: 腳本會過濾掉小於用戶設定閾值(預設:7.5% 偏差)的價格波動。這揭示了更高的高點 (HH) 和更低的低點 (LL) 的真實市場結構,而不受微小盤整的干擾。

視覺輔助:

藍色背景: 表示看漲結構波段。

白色背景: 表示看跌結構波段。

3. 價格幾何層 (進場觸發)

核心邏輯: 自動化 斐波那契回撤 (Fibonacci Retracements)。

動態錨定: 腳本會自動識別最近有效的 ZigZag 轉折點並繪製標準斐波那契水平。

關鍵水平: 聚焦於「黃金口袋」(0.5 到 0.618) 作為趨勢延續進場的主要區域。

如何使用:漏斗共振策略

為了最大化此腳本的效果,建議使用**「漏斗法」**:

第一步:檢查宏觀偏差 (儀表板) 查看 MTF 儀表板。對於高勝率設置,較大的時間週期(例如 H1 和 H4)應顯示相同的趨勢顏色方向。

藍色文字 = 看漲偏差

白色文字 = 看跌偏差

第二步:驗證結構 (圖表) 確保圖表的背景顏色與儀表板的方向相符。

背景為白色時,不要做多。

背景為藍色時,不要做空。

第三步:等待回調 (進場) 等待價格行為回撤至斐波那契水平 (0.382, 0.5 或 0.618)。

多單進場: 價格回踩 0.618 區域,且趨勢線保持藍色。

空單進場: 價格反彈至 0.618 區域,且趨勢線保持白色。

第四步:風險管理

止損 (SL): 設置在失效點下方(0.786 Fibo 水平或前一個結構低點)。

止盈 (TP): 目標設為前一個波段高點/低點 (0.0 水平) 和斐波那契擴展位 (-0.272)。

自定義設置

靈敏度: 用戶可以調整 Depth (深度) 和 Min Swing % (最小波動百分比) 以適應不同的資產(例如:加密貨幣通常需要比外匯更高的百分比)。

視覺效果: 所有顏色(蠟燭、線條、儀表板)均可在設置選單中完全自定義,以適應深色/淺色主題。

免責聲明:本腳本僅供教育和分析用途。過去的表現不保證未來的結果。
Sürüm Notları
Key Fixes Summary:

1. Stabilized Recursive Calculation
Changed the original simple calculation to the `calc_gaussian` function.
Used `var` variables to maintain state and added initialization logic.
Ensuring consistent calculation results across different devices.

2. MTF Data Request Fix
Added the `gaps=barmerge.gaps_off` parameter.
Ensuring data consistency across multiple timeframes and preventing discrepancies between mobile and desktop displays.

3. Array Safety Check
Checked the size before accessing array elements.
Preventing crashes caused by insufficient historical data.

4. Function Return Type Consistency
`add_to_zigzag_fibo` and `update_zigzag_fibo` consistently return `true`.
Preventing type incompatibility errors.

5. New Settings
Expanded the tag position options to 4 (Left/Right/Top/Bottom).
Keep existing configurations unchanged.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.