INVITE-ONLY SCRIPT
تم تحديثه

trend system configuration [skyeye]

98
System Overview The Structural Trend & Fibo Nexus [Quant] is a comprehensive trading system designed to bridge the gap between discretionary technical analysis and quantitative risk management. It integrates Market Structure identification, Multi-Timeframe (MTF) Momentum, and automated Risk/Reward calculation into a single chart interface.

Core Features & Calculation Logic

1. Market Structure Identification (The Backbone)

Algorithm: Utilizes a filtered ZigZag algorithm. Unlike standard ZigZags, this script incorporates a Min Swing % filter and a Min Bars duration filter.

Logic: It identifies valid Higher Highs (HH) and Lower Lows (LL) only when price moves exceed a specific volatility threshold. This effectively filters out market noise.

Visuals:

Green Background: Indicates a Bullish Structure phase.

Red Background: Indicates a Bearish Structure phase.

2. Zero-Lag Momentum Layer (The Trigger)

Algorithm: A Two-Pole Gaussian Filter.

Logic: Gaussian filters offer superior smoothness compared to Simple or Exponential Moving Averages (SMA/EMA) while significantly reducing lag. This allows for faster reaction to trend reversals without the "whipsaw" effect of noisy moving averages.

MTF Dashboard: The table in the bottom-right corner monitors the Gaussian momentum across 5 timeframes (5m to 4h) in real-time, helping traders align with the dominant trend.

3. Quantitative Risk Engine (The Execution)

Auto-Calculation: When a valid trend reversal signal occurs (Structure Flip + Momentum Cross), the script automatically projects a trade setup.

Dynamic Stop Loss (SL): Calculated using the Average True Range (ATR). This ensures the stop loss adapts to the current market volatility (wider stops in volatile markets, tighter stops in calm markets).

Take Profit (TP) Targets: Automatically projects three fixed Reward-to-Risk (R:R) targets:

TP1: 1:1 R:R

TP2: 1:1.5 R:R

TP3: 1:2 R:R

Visuals: Draws colored boxes and dashed lines on the chart to visualize the potential PnL zones immediately upon signal generation.

Strategy Guide: The "Quant Nexus" Method

Step 1: Structural Bias Observe the background color.

Trade Long only when the background is Green.

Trade Short only when the background is Red.

Step 2: Trend Alignment Check the MTF Dashboard. Ideally, the H1 and H4 timeframes should match the color of your intended trade direction (Green for Long, Purple for Short).

Step 3: Signal Execution Wait for the entry signal (indicated by the Risk/Reward boxes appearing).

Entry: At the close of the signal candle.

Stop Loss: Place your SL at the level indicated by the "Stop Loss" label (based on ATR).

Take Profit: Scale out positions at TP1, TP2, and TP3 levels.

Settings Customization

ZigZag Config: Adjust Depth and Min Swing % to tune the sensitivity of market structure.

MTF Trends: Customize the Alpha to adjust the smoothness of the Gaussian line.

Quant Risk: Toggle Use ATR SL or adjust SL Multiplier to fit your risk appetite.

Disclaimer: This tool is for educational purposes only. Automated signals should always be verified with your own analysis.

(Chinese Translation / 中文說明)

系統概述 Structural Trend & Fibo Nexus [Quant] 是一套綜合交易系統,旨在縮小主觀技術分析與量化風險管理之間的差距。它將市場結構識別、多週期 (MTF) 動能和自動風險/回報計算整合到單一圖表介面中。

核心功能與計算邏輯

1. 市場結構識別 (骨幹)

演算法: 使用經過過濾的 ZigZag 演算法。與標準 ZigZag 不同,本腳本結合了「最小波動百分比」和「最小 K 線數」過濾器。

邏輯: 僅當價格變動超過特定的波動率閾值時,才會識別有效的更高高點 (HH) 和更低低點 (LL)。這有效地過濾了市場雜訊。

視覺效果:

綠色背景: 表示看漲結構階段。

紅色背景: 表示看跌結構階段。

2. 零延遲動能層 (觸發器)

演算法: 雙極高斯濾波器 (Two-Pole Gaussian Filter)。

邏輯: 與簡單或指數移動平均線 (SMA/EMA) 相比,高斯濾波器提供了卓越的平滑度,同時顯著減少了延遲。這允許對趨勢反轉做出更快的反應,而不會產生嘈雜均線的「假突破」效應。

MTF 儀表板: 右下角的表格即時監控 5 個時間週期 (5m 至 4h) 的高斯動能,幫助交易者與主趨勢保持一致。

3. 量化風控引擎 (執行)

自動計算: 當有效的趨勢反轉信號出現(結構翻轉 + 動能交叉)時,腳本會自動投射交易計畫。

動態止損 (SL): 使用 平均真實波幅 (ATR) 計算。這確保止損能適應當前的市場波動(波動大時止損較寬,平靜時止損較窄)。

止盈 (TP) 目標: 自動投射三個固定的風險回報比 (R:R) 目標:

TP1: 1:1 盈虧比

TP2: 1:1.5 盈虧比

TP3: 1:2 盈虧比

視覺效果: 在信號產生時,立即在圖表上繪製彩色方框和虛線,以視覺化潛在的盈虧區域。

策略指南:量化共振法

第一步:結構偏差 觀察背景顏色。

背景為 綠色 時,僅考慮做多。

背景為 紅色 時,僅考慮做空。

第二步:趨勢對齊 檢查 MTF 儀表板。理想情況下,H1 和 H4 時間週期應與您的預期交易方向顏色相符(做多為綠色,做空為紫色)。

第三步:信號執行 等待進場信號(由出現的風險/回報框指示)。

進場: 在信號 K 線收盤時。

止損: 將止損設置在「Stop Loss」標籤指示的位置(基於 ATR)。

止盈: 在 TP1、TP2 和 TP3 水平分批獲利了結。

設定自定義

ZigZag 設置: 調整 Depth 和 Min Swing % 以微調市場結構的靈敏度。

MTF 趨勢: 自定義 Alpha 以調整高斯線的平滑度。

量化風控: 切換 Use ATR SL 或調整 SL Multiplier 以符合您的風險偏好。

免責聲明:本工具僅供教育用途。自動信號應始終通過您自己的分析進行驗證。
ملاحظات الأخبار
English Version: Settings & Input Guide
1. 🔍 ZigZag Structure Settings

Depth / Deviation / Backstep: These three parameters control the sensitivity of the ZigZag. A higher Depth makes the indicator look at a larger window to find highs and lows, filtering out minor price fluctuations.

Min Swing %: A volatility filter. If a price move is less than this percentage, the script ignores it. This is key to avoiding noise in sideways markets.

Min Bars Between Swings: Ensures a trend isn't flipped too quickly by requiring a minimum time distance between structural points.

Background Transp: Adjusts the visibility of the Green/Red trend background.

2. 🧭 MTF Multi-Timeframe Trend

Alpha (Sensitivity): Controls the smoothness of the Gaussian line. Lower Alpha = smoother line but more lag; Higher Alpha = more reactive but noisier.

Offset: Shifts the trend detection back by X bars to ensure the "slope" of the trend is stable before signaling.

TF 1 to TF 5: Allows you to select 5 different timeframes (e.g., 5m, 15m, 1h) to monitor on the dashboard. Success increases when the current chart aligns with higher timeframes.

3. 🛡️ Quantitative Risk (SL/TP)

Use ATR SL: When enabled, the stop loss is calculated based on market volatility (ATR).

SL Multiplier: Adjusts the distance of the stop loss. A 2.0 multiplier means the SL is set at 2x the current ATR.

TP 1/2/3 RR: Set your target Reward-to-Risk ratios. The script will automatically draw these levels on your chart upon entry.

中文說明:設定與參數指南 (Algo 版)
1. 🔍 ZigZag 結構設置

Depth / Deviation / Backstep: 這三個參數控制 ZigZag 的靈敏度。較大的 Depth 會讓指標在更大的視窗內尋找高低點,從而過濾掉微小的價格波動。

過濾幅度 % (Min Swing %): 波動率過濾器。如果價格波動小於此百分比,腳本將忽略它。這是避免在橫盤市場中產生雜訊的關鍵。

過濾 K 線數: 要求結構點之間必須間隔至少一定數量的 K 線,防止趨勢翻轉過快。

背景透明度: 調整圖表綠/紅趨勢背景的深淺。

2. 🧭 MTF 多週期趨勢

Alpha (靈敏度): 控制高斯濾波線的平滑度。較低的 Alpha 線條較平滑但較遲滯;較高的 Alpha 反應較快但較多雜訊。

Offset (偏移): 將趨勢檢測向後移動 X 根 K 線,確保趨勢「斜率」在發出信號前已穩定。

週期 1 至 5: 允許你選擇 5 個不同的時間週期(如 5m, 15m, 1h)在儀表板監控。當前圖表與高時區對齊時,勝率最高。

3. 🛡️ 量化風控 (止盈止損)

使用 ATR 動態止損: 開啟後,止損將根據市場波動率 (ATR) 自動計算。

止損 ATR 倍數: 調整止損距離。2.0 倍表示止損設在 2 倍 ATR 的位置。

TP 1/2/3 盈虧比: 設定你的目標風險回報比。腳本會在進場時自動在圖表上繪製這些水平。

Part 2: Configuration 版 (第一組 - 高過濾版)
核心定位:具備「回撤確認」機制的防禦型結構指標。

English Version: Settings & Input Guide (Unique Features)
In addition to the standard settings above, this version includes specific confirmation logic:

1. 🔍 Advanced Structure Confirmation

ZigZag Confirm Bars: The number of candles required to "lock" a new structural direction. This prevents early entry before a reversal is solid.

Pullback Threshold: (Unique Feature) A value between 0.1 and 0.9. It requires the price to "pull back" or retrace a portion of the previous swing before a signal is triggered. A 0.3 value means price must retrace 30% to confirm the strength of the new trend.

2. 📐 Fibonacci Retracement

Enable Level 0.236 - 0.786: Toggle specific Fibonacci levels to be drawn automatically from the latest ZigZag swing.

Label Location: Choose where the price labels appear (Left, Right, Top, Bottom) to keep your chart clean.

中文說明:設定與參數指南 (Configuration 版)
除了上述標準設置外,此版本還包含特有的確認邏輯:

1. 🔍 高階結構確認

ZigZag 確認 K 線數: 鎖定新結構方向所需的 K 線數量。這可以防止在反轉尚未穩固前過早進場。

回撤確認閾值: (獨家功能) 數值介於 0.1 到 0.9 之間。它要求價格在新趨勢觸發信號前,必須先完成前一段波動一定比例的「回調」。例如 0.3 表示必須回撤 30% 才能確認新趨勢的強度。

2. 📐 Fibonacci 回撤設置

啟用級別 0.236 - 0.786: 開關特定的斐波那契水平,這些線會根據最新的 ZigZag 波段自動繪製。

標籤位置: 選擇價格標籤顯示的位置(左、右、上、下),以保持圖表整潔。

"The indicator does not repaint confirmed historical signals. The Fibonacci levels and Risk/Reward boxes are drawn based on real-time data to assist in visual backtesting and trade planning." (本指標不會重繪已確認的歷史信號。斐波那契水平與風控方框是根據實時數據繪製,旨在輔助視覺回測與交易規劃。)
ملاحظات الأخبار
"The indicator does not repaint confirmed historical signals. The Fibonacci levels and Risk/Reward boxes are drawn based on real-time data to assist in visual backtesting and trade planning." (本指標不會重繪已確認的歷史信號。斐波那契水平與風控方框是根據實時數據繪製,旨在輔助視覺回測與交易規劃。)

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.