OPEN-SOURCE SCRIPT
MTF Trend Panel [Dow/SMC]

■ 概要
複数の時間足(マルチタイムフレーム:MTF)のトレンド方向をひとつのチャート上で一目で確認できるパネル型インジケーターです。トレンドの判定基準として、「ダウ理論(Dow)」と「スマートマネーコンセプト(SMC)」の2種類のロジックからお好みのものを選択できます。
■ 主な特徴
2種類のトレンド判定ロジック:
Dow(ダウ理論モード): 直近2つのピボットハイ(高値)とピボットロー(安値)を比較し、高値・安値の切り上げで「上昇トレンド」、切り下げで「下降トレンド」と判定します。
SMC(スマートマネーコンセプトモード): ローソク足の終値が直近のピボットハイ、またはピボットローをブレイク(BOS / CHoCH)した方向に基づいてトレンドを判定します。
最大6つの時間足を監視:
月足、週足、日足、4時間足、1時間足、15分足など、監視したい時間足を最大6つまで任意に設定可能です。
カスタマイズ可能なUI:
パネルの表示位置(四隅)や、文字のサイズをチャート環境に合わせて自由に変更できます。
■ 設定項目
判定ロジック設定: ロジックの切り替え(Dow / SMC)、ピボット判定に用いる左右のバー数(Left/Right Bars)
タイムフレーム設定: パネルに表示する6つの時間足(Timeframe 1 ~ 6)
パネル設定: 表示位置(Top Right, Bottom Leftなど)、文字サイズ
----------------------------------------------------------------------------------------
■ Overview
This indicator provides a multi-timeframe (MTF) panel that allows you to check the current trend direction across up to 6 different timeframes at a glance. You can seamlessly switch between two distinct logic modes for trend detection: Dow Theory and Smart Money Concepts (SMC).
■ Key Features
Two Trend Detection Logics:
Dow Mode: Uses classic Dow Theory. It compares the last two Pivot Highs and Pivot Lows. An uptrend is identified by higher highs and higher lows, while a downtrend is identified by lower highs and lower lows.
SMC Mode: Based on Smart Money Concepts. The trend is determined by the closing price breaking the most recent Pivot High or Pivot Low (BOS / CHoCH).
Monitor Up to 6 Timeframes:
Fully customizable. You can set up to 6 timeframes to monitor simultaneously (e.g., 1M, 1W, D, 4H, 1H, 15m).
Customizable UI:
Easily adjust the panel's position on the chart (top-right, bottom-left, etc.) and text size to fit your trading setup.
■ Settings
Logic Settings: Choose between 'Dow' and 'SMC'. Adjust Left/Right bars for Pivot calculations.
Timeframe Settings: Select 6 specific timeframes to display on the panel.
Panel Settings: Select screen position and text size.
複数の時間足(マルチタイムフレーム:MTF)のトレンド方向をひとつのチャート上で一目で確認できるパネル型インジケーターです。トレンドの判定基準として、「ダウ理論(Dow)」と「スマートマネーコンセプト(SMC)」の2種類のロジックからお好みのものを選択できます。
■ 主な特徴
2種類のトレンド判定ロジック:
Dow(ダウ理論モード): 直近2つのピボットハイ(高値)とピボットロー(安値)を比較し、高値・安値の切り上げで「上昇トレンド」、切り下げで「下降トレンド」と判定します。
SMC(スマートマネーコンセプトモード): ローソク足の終値が直近のピボットハイ、またはピボットローをブレイク(BOS / CHoCH)した方向に基づいてトレンドを判定します。
最大6つの時間足を監視:
月足、週足、日足、4時間足、1時間足、15分足など、監視したい時間足を最大6つまで任意に設定可能です。
カスタマイズ可能なUI:
パネルの表示位置(四隅)や、文字のサイズをチャート環境に合わせて自由に変更できます。
■ 設定項目
判定ロジック設定: ロジックの切り替え(Dow / SMC)、ピボット判定に用いる左右のバー数(Left/Right Bars)
タイムフレーム設定: パネルに表示する6つの時間足(Timeframe 1 ~ 6)
パネル設定: 表示位置(Top Right, Bottom Leftなど)、文字サイズ
----------------------------------------------------------------------------------------
■ Overview
This indicator provides a multi-timeframe (MTF) panel that allows you to check the current trend direction across up to 6 different timeframes at a glance. You can seamlessly switch between two distinct logic modes for trend detection: Dow Theory and Smart Money Concepts (SMC).
■ Key Features
Two Trend Detection Logics:
Dow Mode: Uses classic Dow Theory. It compares the last two Pivot Highs and Pivot Lows. An uptrend is identified by higher highs and higher lows, while a downtrend is identified by lower highs and lower lows.
SMC Mode: Based on Smart Money Concepts. The trend is determined by the closing price breaking the most recent Pivot High or Pivot Low (BOS / CHoCH).
Monitor Up to 6 Timeframes:
Fully customizable. You can set up to 6 timeframes to monitor simultaneously (e.g., 1M, 1W, D, 4H, 1H, 15m).
Customizable UI:
Easily adjust the panel's position on the chart (top-right, bottom-left, etc.) and text size to fit your trading setup.
■ Settings
Logic Settings: Choose between 'Dow' and 'SMC'. Adjust Left/Right bars for Pivot calculations.
Timeframe Settings: Select 6 specific timeframes to display on the panel.
Panel Settings: Select screen position and text size.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.