PROTECTED SOURCE SCRIPT
MACD Multi-Timeframe[nakano]

# MACD Multi-Timeframe Dashboard & Oscillator [nakano]
## English Description
### Overview
This comprehensive indicator combines a standard MACD oscillator with a powerful **Multi-Timeframe (MTF) Dashboard**. It allows traders to monitor MACD trends, momentum, and signal crossovers across up to **11 different timeframes** simultaneously, displayed in a customizable table directly on the chart.
### Key Features
* **Massive MTF Support:** Configure up to 11 individual timeframe slots (TF0 to TF10), ranging from 1-minute to monthly charts.
* **Advanced Trend Detection:** The dashboard uses strict logic to identify "Strong Bullish" or "Strong Bearish" conditions, indicated by colored headers and symbols (▲/▼).
* **Momentum Arrows:** Real-time visual cues (↑↑, ↑, ↗, etc.) indicate the strength and direction of the MACD and Signal lines.
* **Repaint Prevention:** Includes a "Wait for Bar Confirmation" feature for both the table and the oscillator to ensure analysis is based only on closed candles.
* **Customizable Design:** Adjust the table position, font size, transparency, and choose which data rows (MACD, Signal, Hist) to display.
* **Flexible Calculation:** Supports both SMA and EMA for MACD lines and Signal line smoothing.
### Visual Guide & Logic
**1. Dashboard Header (Timeframe Label)**
The header background changes color only when a **Strong Trend** is detected.
* **Bullish (Green / ▲):** Golden Cross + Both lines rising + All values (MACD, Signal, Hist) > 0 + Histogram rising.
* **Bearish (Red / ▼):** Dead Cross + Both lines falling + All values (MACD, Signal, Hist) < 0 + Histogram falling.
**2. Histogram Arrows**
Arrows indicate the momentum of the MACD and Signal lines during a crossover.
* **↑↑ / ↓↓ :** **Strongest Trend.** Crossover active, both lines moving in trend direction, AND values are in the correct zone (above/below 0).
* **↑ / ↓ :** **Strong Trend.** Crossover active and both lines moving in trend direction.
* **↗ / ↘ :** **Weak/Developing Trend.** Crossover active but momentum is mixed or lines are not fully aligned.
**3. Text Colors (Momentum)**
* **Colored Numbers (Green/Red):** Indicates momentum is **accelerating** in the trend direction (e.g., Histogram is positive and larger than the previous bar).
* **Black Numbers:** Indicates momentum is **fading** or the histogram has just crossed the zero line.
### Settings
* **MACD Calculation:** Fast/Slow lengths, Source, MA Type (SMA/EMA), and Signal Smoothing.
* **Table Layout:** Position (Top/Middle/Bottom, Left/Center/Right), Size, Transparency, and Row Visibility.
* **Confirmation:** Toggle "Wait for Bar Confirmation" (for Chart or Table) to stop repainting by using only closed bar data.
---
## 日本語 (Japanese Description)
### 概要
このインジケーターは、標準的なMACDオシレーターと、強力な**マルチタイムフレーム(MTF)ダッシュボード**を組み合わせたツールです。最大**11種類の異なる時間足**におけるMACDのトレンド、勢い(モメンタム)、クロスの状況を、チャート上のカスタマイズ可能なテーブルで同時に監視できます。
### 主な機能
* **多機能なMTFサポート:** 1分足から月足まで、最大11個の時間足スロット(TF0~TF10)を個別に設定可能です。
* **高度なトレンド判定:** 厳格なロジックを用いて「強い強気(Strong Bullish)」や「強い弱気(Strong Bearish)」を判定し、ヘッダーの色や記号(▲/▼)で知らせます。
* **モメンタム矢印:** MACDラインとシグナルラインの強さと方向を、矢印(↑↑, ↑, ↗ など)でリアルタイムに可視化します。
* **リペイント(再描画)防止:** テーブルとオシレーターのそれぞれに「確定足のみを使用(Wait for Bar Confirmation)」するオプションがあり、閉じたローソク足のみに基づいた分析が可能です。
* **デザインのカスタマイズ:** テーブルの位置、フォントサイズ、透明度、表示するデータ行(MACD, Signal, Hist)を自由に調整できます。
* **柔軟な計算設定:** MACD線やシグナル線の計算において、SMA(単純移動平均)とEMA(指数平滑移動平均)を選択可能です。
### 表示ロジックの解説
**1. ダッシュボードヘッダー(時間足ラベル)**
**強いトレンド**が検出された場合のみ、ヘッダーの背景色が変化します。
* **強気 (緑 / ▲):** ゴールデンクロス中 + 両線が上昇 + 全値(MACD, Signal, Hist)が0以上 + ヒストグラムが上昇中。
* **弱気 (赤 / ▼):** デッドクロス中 + 両線が下降 + 全値(MACD, Signal, Hist)が0以下 + ヒストグラムが下降中。
**2. ヒストグラムの矢印**
クロス中のモメンタムの強さを矢印で示します。
* **↑↑ / ↓↓ :** **最強のトレンド。** クロス発生中で、両線がトレンド方向に動き、かつ正しいゾーン(0より上/下)にある状態。
* **↑ / ↓ :** **強いトレンド。** クロス発生中で、両線がトレンド方向に動いている状態。
* **↗ / ↘ :** **弱い/発生中のトレンド。** クロス発生中だが、勢いがまちまちか、方向が揃っていない状態。
**3. テキストの色(勢い)**
* **色付きの数値 (緑/赤):** トレンド方向への**勢いが加速している**ことを示します(例:ヒストグラムがプラス圏で、かつ前回より上昇している)。
* **黒色の数値:** **勢いが減衰している**、またはゼロラインをまたいだ直後であることを示します。
### 設定項目
* **MACD Calculation:** 短期/長期の期間、ソース、MAタイプ(SMA/EMA)、シグナル平滑化の設定。
* **Table Layout:** テーブルの位置(9箇所)、サイズ、透明度、表示データ行(MACD/Signal/Hist)の選択。
* **Confirmation:** "Wait for Bar Confirmation" を有効にすると、現在足ではなく「1本前の確定足」を使用するため、リペイント(再描画)を防止できます。
## English Description
### Overview
This comprehensive indicator combines a standard MACD oscillator with a powerful **Multi-Timeframe (MTF) Dashboard**. It allows traders to monitor MACD trends, momentum, and signal crossovers across up to **11 different timeframes** simultaneously, displayed in a customizable table directly on the chart.
### Key Features
* **Massive MTF Support:** Configure up to 11 individual timeframe slots (TF0 to TF10), ranging from 1-minute to monthly charts.
* **Advanced Trend Detection:** The dashboard uses strict logic to identify "Strong Bullish" or "Strong Bearish" conditions, indicated by colored headers and symbols (▲/▼).
* **Momentum Arrows:** Real-time visual cues (↑↑, ↑, ↗, etc.) indicate the strength and direction of the MACD and Signal lines.
* **Repaint Prevention:** Includes a "Wait for Bar Confirmation" feature for both the table and the oscillator to ensure analysis is based only on closed candles.
* **Customizable Design:** Adjust the table position, font size, transparency, and choose which data rows (MACD, Signal, Hist) to display.
* **Flexible Calculation:** Supports both SMA and EMA for MACD lines and Signal line smoothing.
### Visual Guide & Logic
**1. Dashboard Header (Timeframe Label)**
The header background changes color only when a **Strong Trend** is detected.
* **Bullish (Green / ▲):** Golden Cross + Both lines rising + All values (MACD, Signal, Hist) > 0 + Histogram rising.
* **Bearish (Red / ▼):** Dead Cross + Both lines falling + All values (MACD, Signal, Hist) < 0 + Histogram falling.
**2. Histogram Arrows**
Arrows indicate the momentum of the MACD and Signal lines during a crossover.
* **↑↑ / ↓↓ :** **Strongest Trend.** Crossover active, both lines moving in trend direction, AND values are in the correct zone (above/below 0).
* **↑ / ↓ :** **Strong Trend.** Crossover active and both lines moving in trend direction.
* **↗ / ↘ :** **Weak/Developing Trend.** Crossover active but momentum is mixed or lines are not fully aligned.
**3. Text Colors (Momentum)**
* **Colored Numbers (Green/Red):** Indicates momentum is **accelerating** in the trend direction (e.g., Histogram is positive and larger than the previous bar).
* **Black Numbers:** Indicates momentum is **fading** or the histogram has just crossed the zero line.
### Settings
* **MACD Calculation:** Fast/Slow lengths, Source, MA Type (SMA/EMA), and Signal Smoothing.
* **Table Layout:** Position (Top/Middle/Bottom, Left/Center/Right), Size, Transparency, and Row Visibility.
* **Confirmation:** Toggle "Wait for Bar Confirmation" (for Chart or Table) to stop repainting by using only closed bar data.
---
## 日本語 (Japanese Description)
### 概要
このインジケーターは、標準的なMACDオシレーターと、強力な**マルチタイムフレーム(MTF)ダッシュボード**を組み合わせたツールです。最大**11種類の異なる時間足**におけるMACDのトレンド、勢い(モメンタム)、クロスの状況を、チャート上のカスタマイズ可能なテーブルで同時に監視できます。
### 主な機能
* **多機能なMTFサポート:** 1分足から月足まで、最大11個の時間足スロット(TF0~TF10)を個別に設定可能です。
* **高度なトレンド判定:** 厳格なロジックを用いて「強い強気(Strong Bullish)」や「強い弱気(Strong Bearish)」を判定し、ヘッダーの色や記号(▲/▼)で知らせます。
* **モメンタム矢印:** MACDラインとシグナルラインの強さと方向を、矢印(↑↑, ↑, ↗ など)でリアルタイムに可視化します。
* **リペイント(再描画)防止:** テーブルとオシレーターのそれぞれに「確定足のみを使用(Wait for Bar Confirmation)」するオプションがあり、閉じたローソク足のみに基づいた分析が可能です。
* **デザインのカスタマイズ:** テーブルの位置、フォントサイズ、透明度、表示するデータ行(MACD, Signal, Hist)を自由に調整できます。
* **柔軟な計算設定:** MACD線やシグナル線の計算において、SMA(単純移動平均)とEMA(指数平滑移動平均)を選択可能です。
### 表示ロジックの解説
**1. ダッシュボードヘッダー(時間足ラベル)**
**強いトレンド**が検出された場合のみ、ヘッダーの背景色が変化します。
* **強気 (緑 / ▲):** ゴールデンクロス中 + 両線が上昇 + 全値(MACD, Signal, Hist)が0以上 + ヒストグラムが上昇中。
* **弱気 (赤 / ▼):** デッドクロス中 + 両線が下降 + 全値(MACD, Signal, Hist)が0以下 + ヒストグラムが下降中。
**2. ヒストグラムの矢印**
クロス中のモメンタムの強さを矢印で示します。
* **↑↑ / ↓↓ :** **最強のトレンド。** クロス発生中で、両線がトレンド方向に動き、かつ正しいゾーン(0より上/下)にある状態。
* **↑ / ↓ :** **強いトレンド。** クロス発生中で、両線がトレンド方向に動いている状態。
* **↗ / ↘ :** **弱い/発生中のトレンド。** クロス発生中だが、勢いがまちまちか、方向が揃っていない状態。
**3. テキストの色(勢い)**
* **色付きの数値 (緑/赤):** トレンド方向への**勢いが加速している**ことを示します(例:ヒストグラムがプラス圏で、かつ前回より上昇している)。
* **黒色の数値:** **勢いが減衰している**、またはゼロラインをまたいだ直後であることを示します。
### 設定項目
* **MACD Calculation:** 短期/長期の期間、ソース、MAタイプ(SMA/EMA)、シグナル平滑化の設定。
* **Table Layout:** テーブルの位置(9箇所)、サイズ、透明度、表示データ行(MACD/Signal/Hist)の選択。
* **Confirmation:** "Wait for Bar Confirmation" を有効にすると、現在足ではなく「1本前の確定足」を使用するため、リペイント(再描画)を防止できます。
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.