OPEN-SOURCE SCRIPT

ZigZag Break - Zero Lag TF Sync1

1 972
Script Name: ZigZag Break - Zero Lag TF Sync [MSS/Structure Break]
Overview
This indicator is a Multi-Timeframe (MTF) ZigZag and Market Structure monitoring tool, designed to capture "Structural Shifts" without the typical noise of standard indicators. It defines trend changes based on "Confirmed Candle Closes" and "Higher Timeframe Synchronization" as its core disciplinary principles.

Key Features
1. Zero Lag TF Sync
Utilizing lookahead=barmerge.lookahead_on combined with a proprietary logic that calculates based on the "Previous Confirmed Close," this script eliminates repainting while reflecting Higher Timeframe (HTF) structural changes at near-real-time speed. It mirrors the market's physical facts without the lag common in MTF scripts.

2. Evidence-Based Market Structure Shift (MSS)
A break is only acknowledged when a "Candle Closes beyond the boundary." By ignoring mere wick penetrations (noise), the script identifies true structural breaks driven by actual market demand, ensuring you only react to validated trend shifts.

3. Dynamic Vertex Tracking
When a break occurs, the algorithm automatically scans back up to 500 bars to identify the true Extreme High/Low that initiated the move. It doesn't just draw lines; it identifies the "Higher Lows" and "Lower Highs" based on Dow Theory.

4. Compact Status Dashboard
A clean, non-intrusive table in the top-right corner allows you to instantly identify the current market bias—BUY, SELL, or WAIT—keeping your decision-making process transparent and grounded.

Trading Discipline & Philosophy
This tool was developed to synchronize the user's market view with the following principles:

Noise Elimination: Wait for the close to avoid "fakeouts."

Respect for the Flow: Always stay aware of the "Walls" formed by Higher Timeframes.

Clarity of Decision: Complex calculations are handled in the background, presenting only the "Facts" (Lines and Colors) to support your final execution.

Settings
ZigZag Settings: Toggle visibility for Current TF and two customizable Higher Timeframes.

Dow Break Settings: Customize break lines, labels, and background fills.

Alerts: Bilingual (English/Japanese) alert notifications for structural breaks across all monitored timeframes.

ツール名:ZigZag Break - Zero Lag TF Sync [実需/構造ブレイク]
概要 / Overview
このインジケーターは、市場の「構造の変化」をノイズなく捉えるために設計された、マルチタイムフレーム(MTF)対応のジグザグ・ブレイクアウト監視ツールです。
単なる高安値の結線ではなく、**「終値での確定」と「上位足との同期」**を絶対的な規律としています。

主要機能 / Key Features
1. Zero Lag TF Sync(遅延なき上位足同期)
lookahead=barmerge.lookahead_on を活用しつつも、計算には「1本前の確定終値」を用いる独自のロジックを採用。リペイント(後出し)を徹底的に排除しながら、上位足の構造変化をリアルタイムに近い速度でチャート上に鏡のように映し出します。

2. 実需に基づいた構造破壊(Dow Break)
単なるヒゲの更新ではなく、**「終値による境界線の突破」**のみを構造破壊(Market Structure Shift)として受理します。これにより、突発的なスパイクやノイズに惑わされない、実需を伴った潮流の変化を特定します。

3. 自動追跡型ジグザグ(Dynamic Vertex Tracking)
ブレイクが発生した際、その起点を過去500本まで遡り、真の最高値・最安値を頂点として自動同定します。視覚的なジグザグ線だけでなく、ダウ理論に基づいた「押し安値・戻り高値」のラインを自動描画します。

4. マルチタイムフレーム・ステータス
右上のコンパクトなテーブルにより、現在のメイン足の勢力が「BUY(買い)」か「SELL(売り)」かを一目で判別可能です。

ロジックの背後にある規律 / Trading Discipline
このツールは、以下の相場観をユーザーと同期させるために開発されました。

ノイズの排除: 終値確定を待つことで、ダマシを回避する。

潮流への敬意: 常に上位足(Higher Time Frame)の壁を意識する。

判断の透明化: 複雑な計算をバックグラウンドで行い、ユーザーの前には「事実(ラインと色)」のみを提示する。

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.