OPEN-SOURCE SCRIPT
Directional Movement Index Multi-Timeframe

Overview
This Pine Script indicator is a comprehensive Directional Movement Index (DMI) Multi-Timeframe tool designed to help traders analyze trend strength and direction across multiple time periods simultaneously.
Main Components
The indicator displays three main components:
ADX (Average Directional Index): Measures the strength of a trend regardless of direction
DI+ (Plus Directional Indicator): Indicates the strength of upward price movements
DI- (Minus Directional Indicator): Indicates the strength of downward price movements
Visual Features
Dynamic Color-Coded Histogram
The indicator features a dynamic color-coded histogram for ADX values:
Gray: When ADX is below the low threshold (default 15), indicating a ranging market
Light colors: When ADX is between the low threshold and main threshold (default 25), suggesting weak trend formation
Strong blue/red: When ADX exceeds the main threshold, indicating a strong trending market (blue for DI+ dominance, red for DI- dominance)
Trading Signals
The script generates several types of trading signals:
Triangle arrows: Appear at the bottom when market transitions from ranging to trend expansion
Upward triangles for bullish signals when DI+ strengthens from low ADX state
Downward triangles for bearish signals when DI- strengthens from low ADX state
Cross markers: Indicate when DI+ and DI- cross each other
Golden crosses show bullish momentum
Death crosses show bearish momentum
Multi-Timeframe Panel
A key feature is the multi-timeframe panel displayed in the bottom-right corner. This panel shows ADX values across four different timeframes that users can customize (default: 15 minutes, 1 hour, 4 hours, and daily). Each cell is color-coded based on ADX strength and directional bias, allowing traders to quickly assess trend alignment across multiple timeframes without switching charts.
Customization Options
The indicator includes extensive customization options:
Colors: Adjust colors for all visual elements
Parameters: Modify ADX smoothing period and DI calculation length
Thresholds: Set custom threshold values for trend determination
Timeframes: Choose which timeframes to display in the panel
Panel appearance: Adjust size, cell width, and text size
Alert Conditions
Built-in alert conditions are available for various scenarios including:
DI crossovers
Signal arrows
Trend transitions
This enables automated notification when specific market conditions occur.
日本語説明
概要
このPine Scriptインジケータは、複数の時間軸にわたってトレンドの強さと方向を同時に分析するための包括的なDMI(方向性移動指数)マルチタイムフレームツールです。
主要コンポーネント
インジケータは3つの主要コンポーネントを表示します:
ADX(平均方向性指数): 方向に関係なくトレンドの強さを測定
DI+(プラス方向性指標): 上昇の価格動きの強さを示す
DI-(マイナス方向性指標): 下降の価格動きの強さを示す
視覚的特徴
動的色分けヒストグラム
インジケータはADX値に対して動的な色分けヒストグラムを特徴としています:
グレー: ADXが低閾値(デフォルト15)を下回る場合、レンジ相場を示す
薄い色: ADXが低閾値と主要閾値(デフォルト25)の間にある場合、弱いトレンド形成を示唆
強い青/赤: ADXが主要閾値を超える場合、強いトレンド相場を示す(DI+優勢で青、DI-優勢で赤)
取引シグナル
スクリプトは複数のタイプの取引シグナルを生成します:
三角矢印: 市場がレンジ状態からトレンド拡張に移行する際にチャート下部に表示
低ADX状態からDI+が強くなる際の強気シグナルには上向き三角
DI-が強くなる際の弱気シグナルには下向き三角
十字マーカー: DI+とDI-が交差する時を示す
ゴールデンクロスは強気の勢いを示す
デッドクロスは弱気の勢いを示す
マルチタイムフレームパネル
重要な機能は、右下角に表示されるマルチタイムフレームパネルです。このパネルは、ユーザーがカスタマイズできる4つの異なる時間軸(デフォルト:15分、1時間、4時間、日足)にわたってADX値を表示します。各セルはADXの強さと方向性バイアスに基づいて色分けされており、チャートを切り替えることなく複数の時間軸でのトレンド整合性を素早く評価できます。
カスタマイズオプション
インジケータには豊富なカスタマイズオプションが含まれています:
色設定: すべての視覚要素の色の調整
パラメータ: ADX平滑化期間とDI計算長の変更
閾値: トレンド判断のためのカスタム閾値の設定
時間軸: パネルに表示する時間軸の選択
パネル外観: サイズ、セル幅、テキストサイズの調整
アラート条件
様々なシナリオに対してアラート条件が組み込まれています:
DIクロスオーバー
シグナル矢印
トレンド転換
これにより、特定の市場条件が発生した際の自動通知が可能です。
This Pine Script indicator is a comprehensive Directional Movement Index (DMI) Multi-Timeframe tool designed to help traders analyze trend strength and direction across multiple time periods simultaneously.
Main Components
The indicator displays three main components:
ADX (Average Directional Index): Measures the strength of a trend regardless of direction
DI+ (Plus Directional Indicator): Indicates the strength of upward price movements
DI- (Minus Directional Indicator): Indicates the strength of downward price movements
Visual Features
Dynamic Color-Coded Histogram
The indicator features a dynamic color-coded histogram for ADX values:
Gray: When ADX is below the low threshold (default 15), indicating a ranging market
Light colors: When ADX is between the low threshold and main threshold (default 25), suggesting weak trend formation
Strong blue/red: When ADX exceeds the main threshold, indicating a strong trending market (blue for DI+ dominance, red for DI- dominance)
Trading Signals
The script generates several types of trading signals:
Triangle arrows: Appear at the bottom when market transitions from ranging to trend expansion
Upward triangles for bullish signals when DI+ strengthens from low ADX state
Downward triangles for bearish signals when DI- strengthens from low ADX state
Cross markers: Indicate when DI+ and DI- cross each other
Golden crosses show bullish momentum
Death crosses show bearish momentum
Multi-Timeframe Panel
A key feature is the multi-timeframe panel displayed in the bottom-right corner. This panel shows ADX values across four different timeframes that users can customize (default: 15 minutes, 1 hour, 4 hours, and daily). Each cell is color-coded based on ADX strength and directional bias, allowing traders to quickly assess trend alignment across multiple timeframes without switching charts.
Customization Options
The indicator includes extensive customization options:
Colors: Adjust colors for all visual elements
Parameters: Modify ADX smoothing period and DI calculation length
Thresholds: Set custom threshold values for trend determination
Timeframes: Choose which timeframes to display in the panel
Panel appearance: Adjust size, cell width, and text size
Alert Conditions
Built-in alert conditions are available for various scenarios including:
DI crossovers
Signal arrows
Trend transitions
This enables automated notification when specific market conditions occur.
日本語説明
概要
このPine Scriptインジケータは、複数の時間軸にわたってトレンドの強さと方向を同時に分析するための包括的なDMI(方向性移動指数)マルチタイムフレームツールです。
主要コンポーネント
インジケータは3つの主要コンポーネントを表示します:
ADX(平均方向性指数): 方向に関係なくトレンドの強さを測定
DI+(プラス方向性指標): 上昇の価格動きの強さを示す
DI-(マイナス方向性指標): 下降の価格動きの強さを示す
視覚的特徴
動的色分けヒストグラム
インジケータはADX値に対して動的な色分けヒストグラムを特徴としています:
グレー: ADXが低閾値(デフォルト15)を下回る場合、レンジ相場を示す
薄い色: ADXが低閾値と主要閾値(デフォルト25)の間にある場合、弱いトレンド形成を示唆
強い青/赤: ADXが主要閾値を超える場合、強いトレンド相場を示す(DI+優勢で青、DI-優勢で赤)
取引シグナル
スクリプトは複数のタイプの取引シグナルを生成します:
三角矢印: 市場がレンジ状態からトレンド拡張に移行する際にチャート下部に表示
低ADX状態からDI+が強くなる際の強気シグナルには上向き三角
DI-が強くなる際の弱気シグナルには下向き三角
十字マーカー: DI+とDI-が交差する時を示す
ゴールデンクロスは強気の勢いを示す
デッドクロスは弱気の勢いを示す
マルチタイムフレームパネル
重要な機能は、右下角に表示されるマルチタイムフレームパネルです。このパネルは、ユーザーがカスタマイズできる4つの異なる時間軸(デフォルト:15分、1時間、4時間、日足)にわたってADX値を表示します。各セルはADXの強さと方向性バイアスに基づいて色分けされており、チャートを切り替えることなく複数の時間軸でのトレンド整合性を素早く評価できます。
カスタマイズオプション
インジケータには豊富なカスタマイズオプションが含まれています:
色設定: すべての視覚要素の色の調整
パラメータ: ADX平滑化期間とDI計算長の変更
閾値: トレンド判断のためのカスタム閾値の設定
時間軸: パネルに表示する時間軸の選択
パネル外観: サイズ、セル幅、テキストサイズの調整
アラート条件
様々なシナリオに対してアラート条件が組み込まれています:
DIクロスオーバー
シグナル矢印
トレンド転換
これにより、特定の市場条件が発生した際の自動通知が可能です。
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.