PROTECTED SOURCE SCRIPT

ZigZag Strict & Smart Divergence

42
This is not a traditional ZigZag. This script implements an advanced State Machine designed to filter market noise and identify only the most significant price swings (Major Turning Points) .

The core strength lies in its Strict AND Confirmation logic: a new swing is confirmed only when two conditions are met simultaneously: sufficient Price Deviation (e.g., 0.4%) AND sufficient Time/Bar Count (e.g., 5 bars) . This ensures the indicator is Non-Repainting and highly reliable.

Divergences (Regular and Hidden) are calculated exclusively between these Confirmed and Frozen extreme points, providing high-probability reversal and continuation signals, free from the noise of minor price fluctuations. Use this tool to visualize true market structure and execute precision trades based on validated momentum shifts.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.