OPEN-SOURCE SCRIPT
已更新 VIDYA with trend centered SDs with Chandelier Exit By Kidev

This multi-tool overlay combines adaptive averaging, volatility envelopes, and structural swing detection into a single, configurable indicator.
Features
• Selectable MA75 — choose SMA / EMA / WMA / VWMA / HMA as the 75-length baseline.
• MA Trend Mode — optional up/side/down regime coloring driven by MA slope (configurable colors).
• VIDYA (Variable Index Dynamic Average) — adaptive moving average with cross (C>V / C<V) and slope-change signals.
• VIDYA-centered SD Bands — 0.5σ & 2.0σ bands computed around VIDYA to show adaptive volatility envelopes.
• Chandelier Exit (center) — optional ATR-based centerline (toggleable and trend-colored).
• Double ZigZag — two independent ZigZag period settings with HH/LL labeling for swing structure clarity.
• Performance-minded — safe line/label cleanup, limits for stored points, and options to minimize visual clutter.
How to use
• Use the selectable MA as a trend baseline and enable MA Trend Mode to color it by regime (Up / Side / Down).
• Watch VIDYA crosses (C>V / C<V) for momentum shifts and VIDYA slope-change triangles for trend acceleration.
• VIDYA-centered bands show where price is relatively quiet or volatile; the 2σ band can act as a momentum/extreme zone.
• Toggle the Chandelier center on for an ATR-based reference/exit line that complements the VIDYA bands.
• Use the Double ZigZag and HH/LL labels to identify swing structure and potential confirmations of trend breaks.
Notes & customization ideas
• Slope threshold is ATR-based by default but can be tuned to reduce noise.
• VIDYA band lookback uses the SD lookback setting; you can switch to VIDYA’s length for a different feel.
• Add/remove labels or reduce max ZigZag points if you need lighter charts.
This indicator is intended as a toolbox — combine its elements (MA regime, VIDYA bands, chandelier center, ZigZag structure) to build context-aware entries, exits, and market regime analysis rather than as a standalone mechanical system.
Features
• Selectable MA75 — choose SMA / EMA / WMA / VWMA / HMA as the 75-length baseline.
• MA Trend Mode — optional up/side/down regime coloring driven by MA slope (configurable colors).
• VIDYA (Variable Index Dynamic Average) — adaptive moving average with cross (C>V / C<V) and slope-change signals.
• VIDYA-centered SD Bands — 0.5σ & 2.0σ bands computed around VIDYA to show adaptive volatility envelopes.
• Chandelier Exit (center) — optional ATR-based centerline (toggleable and trend-colored).
• Double ZigZag — two independent ZigZag period settings with HH/LL labeling for swing structure clarity.
• Performance-minded — safe line/label cleanup, limits for stored points, and options to minimize visual clutter.
How to use
• Use the selectable MA as a trend baseline and enable MA Trend Mode to color it by regime (Up / Side / Down).
• Watch VIDYA crosses (C>V / C<V) for momentum shifts and VIDYA slope-change triangles for trend acceleration.
• VIDYA-centered bands show where price is relatively quiet or volatile; the 2σ band can act as a momentum/extreme zone.
• Toggle the Chandelier center on for an ATR-based reference/exit line that complements the VIDYA bands.
• Use the Double ZigZag and HH/LL labels to identify swing structure and potential confirmations of trend breaks.
Notes & customization ideas
• Slope threshold is ATR-based by default but can be tuned to reduce noise.
• VIDYA band lookback uses the SD lookback setting; you can switch to VIDYA’s length for a different feel.
• Add/remove labels or reduce max ZigZag points if you need lighter charts.
This indicator is intended as a toolbox — combine its elements (MA regime, VIDYA bands, chandelier center, ZigZag structure) to build context-aware entries, exits, and market regime analysis rather than as a standalone mechanical system.
發行說明
VIDYA (Variable Index Dynamic Average)An adaptive moving average that adjusts its sensitivity based on market volatility (Efficiency Ratio).
Changes color dynamically: green in uptrends, orange/red in downtrends.
Optional signals for price ↔ VIDYA crosses and slope-change detection.
Trend-Centered Standard Deviation Bands (SDs)
Bands built around VIDYA, at 0.5σ and 2.0σ from the VIDYA center.
Center and outer band fill shows expansion/contraction in volatility.
Bands adjust directionally with the VIDYA slope (different for uptrend vs. downtrend).
Chandelier Exit (Center Line Only)
A volatility-based trailing stop system using ATR.
The indicator plots the Chandelier Exit center line, color-coded by trend (green = bullish, red = bearish).
Helps define stop-loss zones and trend reversals.
MA75 (Selectable Baseline)
A baseline moving average (default length = 75), with selectable type: SMA, EMA, WMA, VWMA, HMA.
Optional trend-mode coloring:
Lime = Uptrend
Orange = Sideways
Red = Downtrend
Double ZigZag with HH/LL Labels
Two independent ZigZag layers with adjustable periods.
Detects higher highs (HH), lower highs (LH), higher lows (HL), and lower lows (LL).
Helps visualize swing structure and trend shifts.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。