OPEN-SOURCE SCRIPT
已更新 Denies Kresna Zigzag 4

This indicator is a simplified version inspired by the ZigZag Plus algorithm, designed to focus only on the features that matter most: ZigZag swing detection and Support & Resistance levels.
All non-essential components such as volume analysis, alerts, labels, bar coloring, and candle markers have been removed to provide a clean and lightweight charting experience.
Features
Automatic ZigZag swing detection
Dynamic Support and Resistance levels
Lightweight implementation for better performance
Clean chart with no unnecessary visual clutter
How it Works
The indicator identifies swing highs and swing lows using the original trend-switching logic. Every confirmed swing creates a new support or resistance level:
Swing High → Resistance
Swing Low → Support
Support and resistance levels remain active until they are invalidated by price.
Best Used For
Market structure analysis
Identifying swing highs and lows
Support & Resistance trading
Trend reversal confirmation
Price action trading
Notes
This script is intentionally minimalistic. It does not include volume analysis, breakout alerts, candle coloring, or other visual enhancements found in the original implementation.
The goal is to provide a fast, clean, and easy-to-read ZigZag indicator focused purely on market structure.
All non-essential components such as volume analysis, alerts, labels, bar coloring, and candle markers have been removed to provide a clean and lightweight charting experience.
Features
Automatic ZigZag swing detection
Dynamic Support and Resistance levels
Lightweight implementation for better performance
Clean chart with no unnecessary visual clutter
How it Works
The indicator identifies swing highs and swing lows using the original trend-switching logic. Every confirmed swing creates a new support or resistance level:
Swing High → Resistance
Swing Low → Support
Support and resistance levels remain active until they are invalidated by price.
Best Used For
Market structure analysis
Identifying swing highs and lows
Support & Resistance trading
Trend reversal confirmation
Price action trading
Notes
This script is intentionally minimalistic. It does not include volume analysis, breakout alerts, candle coloring, or other visual enhancements found in the original implementation.
The goal is to provide a fast, clean, and easy-to-read ZigZag indicator focused purely on market structure.
版本注释
add break line high to more high, low to more low版本注释
add input to show confirmed diagonal SNR.Show confirm on Break Body will maintain latest solid diagonal SNR which broken by candle body
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。