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.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.