OPEN-SOURCE SCRIPT

T-DOW-FLOW: Final Edition

302
[Title]
T-DOW-FLOW: Market Structure & Smart Pivot Zones

[Description]
[Overview] This indicator is a comprehensive technical analysis tool designed to visualize "Market Structure" based on Dow Theory and precise Supply/Demand Zones. It helps traders identify the true market trend and high-probability reaction levels by analyzing raw price action (ZigZag Pivots) rather than lagging indicators.

The script integrates three core systems:

ZigZag Trend Cloud: Visualizes the market bias (Uptrend/Downtrend).

Smart Pivot Zones (Type 1): Highlights the specific "Wick-to-Body" area of recent pivots.

Auto Density Channels (Type 2): Detects historical support/resistance clusters.

[Detailed Logic & Functionality]

1. ZigZag Trend Identification

Logic: The script utilizes ta.highestbars and ta.lowestbars to detect Swing Highs and Swing Lows.

Trend Cloud:

If the structure creates a Higher High, the background cloud turns Green (Uptrend).

If the structure creates a Lower Low, the background cloud turns Red (Downtrend).

This provides an instant visual filter for "Trend Flow," encouraging traders to trade only in the direction of the dominant market structure.

2. SR Type 1: Smart Pivot Zones (Wick-to-Body)

Unlike standard indicators that draw thin lines at the absolute High/Low, this script focuses on the "Imbalance Zone".

It calculates the price range between the Pivot's Wick and the Pivot's Body (Open/Close) and fills this area with a colored zone.

Why? The area between the wick and body often represents the precise zone where institutional orders were filled, acting as a more reliable support/resistance level than a single price point.

3. SR Type 2: Auto Density Channels

This module scans a significant amount of historical data (default: 300 bars) to find clusters of pivot points.

Areas where multiple pivots align within a specific width are drawn as Channels. These represent strong, long-term psychological levels.

[How to Use]

Trend Filter: Check the Trend Cloud color.

Green: Look for Long opportunities.

Red: Look for Short opportunities.

Entry Trigger: Wait for the price to retrace into a Smart Pivot Zone (Type 1) or an Auto Channel (Type 2).

Look for price rejection (wicks) at these zones in the direction of the Trend Cloud.

Structure Confirmation: Use the ZigZag lines and labels (HH, HL, etc.) to confirm that the market structure is still intact before entering.

[Settings]

ZigZag Settings: Adjust the sensitivity of the trend detection.

SR Type 1: Toggle the "Wick-to-Body" fill and choose between Wicks or Bodies as the primary source.

SR Type 2: Adjust the historical loopback period and channel width sensitivity.

[Disclaimer] This script is for educational and technical analysis purposes only. Past performance does not guarantee future results.

(以下、日本語説明 / Japanese Description)

[概要] このインジケーターは、「ダウ理論」に基づくトレンド判定と、精密な「需給ゾーン(Supply/Demand)」を可視化するための市場構造分析ツールです。 遅行指標を使わず、純粋なプライスアクション(ZigZagピボット)に基づいて、機関投資家の意識する価格帯を特定します。

[機能とロジックの詳細]

1. ZigZagトレンドクラウド

ロジック: 一定期間の高値・安値を検出し、ダウ理論に基づいてトレンドを判定します。

視覚化: 高値切り上げ(上昇トレンド)なら「緑」、安値切り下げ(下落トレンド)なら「赤」の背景色を表示します。これにより、トレードすべき方向(順張り)を一目で判断できます。

2. SR Type 1: スマートピボットゾーン (Wick-to-Body)

単なる水平線ではなく、ローソク足の**「ヒゲ先」から「実体」までの価格差**をゾーンとして塗りつぶして表示します。

理由: ヒゲと実体の間の領域は、大口の注文が執行された(需給の不均衡が発生した)重要なエリアであることが多く、ピンポイントのラインよりも信頼性の高い反発ゾーンとして機能します。

3. SR Type 2: オート・デンシティ・チャネル

過去の長期間(デフォルト300本)のデータをスキャンし、ピボットが密集している価格帯を自動で「チャネル」として描画します。長期的に意識される強力なレジサポ帯です。

[使用方法]

環境認識: 背景のトレンドクラウドの色に従い、目線を固定します。

エントリー: 価格がSRゾーン(Type 1)やチャネル(Type 2)に引きつけて、反発する動きを確認してエントリーします。

構造確認: ZigZagラインとラベル(HH/HLなど)を見て、トレンドが崩れていないことを確認します。

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.