PROTECTED SOURCE SCRIPT
Güncellendi MA Multi-Timeframe[nakano]

## MA Multi-Timeframe[nakano]
### Overview (概要)
This indicator displays up to 10 highly customizable Moving Averages (MAs) on the chart. More importantly, it provides a comprehensive status table to visualize the relationships between these MAs (Golden/Dead Cross, Perfect Order) across multiple standard timeframes, offering a powerful at-a-glance view of the market's condition.
このインジケーターは、最大10本の高度にカスタマイズ可能な移動平均線(MA)をチャート上に表示します。さらに、これらのMA間の関係性(ゴールデンクロス/デッドクロス、パーフェクトオーダー)を複数の主要な時間足にわたって視覚化する、包括的なステータスパネルを提供し、市場の状況を一目で強力に把握することを可能にします。
### Key Features (主な機能)
#### Versatile Moving Averages (多機能な移動平均線)
Display up to 10 MAs simultaneously.
最大10本のMAを同時に表示できます。
Each MA can be configured with its own period, type (SMA/EMA), and timeframe.
各MAはそれぞれ、期間、種類(SMA/EMA)、時間足を個別に設定可能です。
Easily toggle the visibility of each MA from the settings panel.
不要なMAは、設定画面から簡単に表示/非表示を切り替えられます。
#### Multi-Timeframe Status Table (マルチタイムフレーム・ステータステーブル)
The table, displayed in a corner of the chart, shows the status of the following rules across multiple timeframes (1m, 5m, 15m, 1H, 4H, 1D, 1W):
チャートの隅に表示されるテーブルで、以下のルールの状態を複数の時間足(1m, 5m, 15m, 1H, 4H, 1D, 1W)で一覧できます。
* **Golden Cross / Dead Cross (GC/DC)**
* `GC` / `DC`: Indicates a simple crossover has occurred. (単純なクロス状態を示します。)
* `GC ↑` / `DC ↓`: Indicates a stronger state where both the short-term and long-term MAs are sloped in the same direction as the cross. (短期・長期MAが両方とも同じ方向の傾きを持った、より強い状態を示します。)
* **Perfect Order (PO)**
* `PO`: Indicates that the short, mid, and long-term MAs are aligned in the correct sequence. (短期・中期・長期MAが順番通りに並んだ状態です。)
* `PO ↑` / `PO ↓`: Indicates a very strong state where a Perfect Order is active *and* all three MAs are sloped in the same direction. (パーフェクトオーダー状態で、かつ3本のMA全てが同じ方向の傾きを持った、非常に強い状態を示します。)
#### "Notice" Signal (注意喚起シグナル)
This feature detects a potential upcoming crossover and provides a warning by changing the text color in the status table to yellow. You can choose from three detection methods:
この機能は、転換の予兆を検知し、テーブルセルの**文字色を黄色に変えて**注意を促します。判定ロジックは以下の3種類から選択できます。
1. **MA Proximity (デフォルト)**: Triggers a notice when two MAs are converging and their distance is within a specified percentage of the price. (2本のMAが指定した割合(%)以内に接近し、かつ収束している場合に注意喚起します。)
2. **BB Squeeze**: Triggers a notice when the Bollinger Bands narrow to a specified threshold (Bollinger Bandwidth), indicating a volatility squeeze that often precedes a breakout. (ボリンジャーバンドの幅が指定した閾値を下回った(スクイーズした)場合に注意喚起します。市場のエネルギーが溜まっている状態を示唆します。)
3. **BB Prediction (EMA Only)**: A predictive model that checks if a crossover would occur on the next bar if the price were to touch the lower (for pre-GC) or upper (for pre-DC) Bollinger Band. *This mode only works when both compared MAs are set to EMA.* (現在がGCの場合、「次の足で価格がBB下限にタッチしたらDCするか?」を予測します。(逆も然り)精度の都合上、このロジックはMAの種類が両方ともEMAの場合のみ機能します。)
#### MA Settings Table (設定確認用テーブル)
A secondary, optional table that displays a summary of the settings for all currently active MAs. This is useful for quickly reviewing your configuration without opening the settings panel.
現在チャートに表示しているMAの設定(種類、期間、時間足)を一覧表示する、もう一つのテーブルです。設定画面を開かずに、現在の設定を素早く確認したい場合に便利です。
### Settings (設定項目)
The settings are organized into logical groups for intuitive configuration:
設定は、以下の論理的なグループに分かれています。
1. **Moving Averages**: Configure the basic settings for all 10 MAs (period, type, color, etc.). (10本のMAの基本的な設定(期間、種類、色など)を行います。)
2. **Multi-Timeframe Status Table**: Configure everything related to the main status table, including its visibility, position, font size, and the analysis rules (GC/DC, PO, and Notice Signals). (メインのステータステーブルに関するすべての設定(表示/非表示、位置、フォントサイズ、分析ルール、注意喚起ロジック)をここで行います。)
3. **Chart Display & Colors**: Configure chart visuals, such as the fill area between MAs and the main colors used by the indicator. (チャート上の塗りつぶしエリアや、インジケーター全体で使う色の設定を行います。)
4. **MA Settings Table**: Configure the secondary debug/settings table. (設定確認用テーブルの表示/非表示やレイアウトを設定します。)
### How to Use (利用方法)
By getting a comprehensive overview of trend direction and momentum across multiple timeframes on a single chart, this tool can assist in making more informed trading decisions. For example, a trader might use it to confirm a strong uptrend on higher timeframes before looking for pullback entries on a lower timeframe.
複数の時間足のトレンド方向や勢いを一枚のチャートで俯瞰することで、より精度の高いエントリー・エグジットの判断材料とすることができます。例えば、上位足で強いトレンドが出ていることを確認しながら、下位足での押し目買いや戻り売りを狙うといった使い方が考えられます。
---
*This script is provided for informational and educational purposes only. It is not financial advice. Please use it at your own risk.*
*このスクリプトは、情報提供および教育目的でのみ提供されます。これは投資助言ではありません。ご自身の責任においてご使用ください。*
### Overview (概要)
This indicator displays up to 10 highly customizable Moving Averages (MAs) on the chart. More importantly, it provides a comprehensive status table to visualize the relationships between these MAs (Golden/Dead Cross, Perfect Order) across multiple standard timeframes, offering a powerful at-a-glance view of the market's condition.
このインジケーターは、最大10本の高度にカスタマイズ可能な移動平均線(MA)をチャート上に表示します。さらに、これらのMA間の関係性(ゴールデンクロス/デッドクロス、パーフェクトオーダー)を複数の主要な時間足にわたって視覚化する、包括的なステータスパネルを提供し、市場の状況を一目で強力に把握することを可能にします。
### Key Features (主な機能)
#### Versatile Moving Averages (多機能な移動平均線)
Display up to 10 MAs simultaneously.
最大10本のMAを同時に表示できます。
Each MA can be configured with its own period, type (SMA/EMA), and timeframe.
各MAはそれぞれ、期間、種類(SMA/EMA)、時間足を個別に設定可能です。
Easily toggle the visibility of each MA from the settings panel.
不要なMAは、設定画面から簡単に表示/非表示を切り替えられます。
#### Multi-Timeframe Status Table (マルチタイムフレーム・ステータステーブル)
The table, displayed in a corner of the chart, shows the status of the following rules across multiple timeframes (1m, 5m, 15m, 1H, 4H, 1D, 1W):
チャートの隅に表示されるテーブルで、以下のルールの状態を複数の時間足(1m, 5m, 15m, 1H, 4H, 1D, 1W)で一覧できます。
* **Golden Cross / Dead Cross (GC/DC)**
* `GC` / `DC`: Indicates a simple crossover has occurred. (単純なクロス状態を示します。)
* `GC ↑` / `DC ↓`: Indicates a stronger state where both the short-term and long-term MAs are sloped in the same direction as the cross. (短期・長期MAが両方とも同じ方向の傾きを持った、より強い状態を示します。)
* **Perfect Order (PO)**
* `PO`: Indicates that the short, mid, and long-term MAs are aligned in the correct sequence. (短期・中期・長期MAが順番通りに並んだ状態です。)
* `PO ↑` / `PO ↓`: Indicates a very strong state where a Perfect Order is active *and* all three MAs are sloped in the same direction. (パーフェクトオーダー状態で、かつ3本のMA全てが同じ方向の傾きを持った、非常に強い状態を示します。)
#### "Notice" Signal (注意喚起シグナル)
This feature detects a potential upcoming crossover and provides a warning by changing the text color in the status table to yellow. You can choose from three detection methods:
この機能は、転換の予兆を検知し、テーブルセルの**文字色を黄色に変えて**注意を促します。判定ロジックは以下の3種類から選択できます。
1. **MA Proximity (デフォルト)**: Triggers a notice when two MAs are converging and their distance is within a specified percentage of the price. (2本のMAが指定した割合(%)以内に接近し、かつ収束している場合に注意喚起します。)
2. **BB Squeeze**: Triggers a notice when the Bollinger Bands narrow to a specified threshold (Bollinger Bandwidth), indicating a volatility squeeze that often precedes a breakout. (ボリンジャーバンドの幅が指定した閾値を下回った(スクイーズした)場合に注意喚起します。市場のエネルギーが溜まっている状態を示唆します。)
3. **BB Prediction (EMA Only)**: A predictive model that checks if a crossover would occur on the next bar if the price were to touch the lower (for pre-GC) or upper (for pre-DC) Bollinger Band. *This mode only works when both compared MAs are set to EMA.* (現在がGCの場合、「次の足で価格がBB下限にタッチしたらDCするか?」を予測します。(逆も然り)精度の都合上、このロジックはMAの種類が両方ともEMAの場合のみ機能します。)
#### MA Settings Table (設定確認用テーブル)
A secondary, optional table that displays a summary of the settings for all currently active MAs. This is useful for quickly reviewing your configuration without opening the settings panel.
現在チャートに表示しているMAの設定(種類、期間、時間足)を一覧表示する、もう一つのテーブルです。設定画面を開かずに、現在の設定を素早く確認したい場合に便利です。
### Settings (設定項目)
The settings are organized into logical groups for intuitive configuration:
設定は、以下の論理的なグループに分かれています。
1. **Moving Averages**: Configure the basic settings for all 10 MAs (period, type, color, etc.). (10本のMAの基本的な設定(期間、種類、色など)を行います。)
2. **Multi-Timeframe Status Table**: Configure everything related to the main status table, including its visibility, position, font size, and the analysis rules (GC/DC, PO, and Notice Signals). (メインのステータステーブルに関するすべての設定(表示/非表示、位置、フォントサイズ、分析ルール、注意喚起ロジック)をここで行います。)
3. **Chart Display & Colors**: Configure chart visuals, such as the fill area between MAs and the main colors used by the indicator. (チャート上の塗りつぶしエリアや、インジケーター全体で使う色の設定を行います。)
4. **MA Settings Table**: Configure the secondary debug/settings table. (設定確認用テーブルの表示/非表示やレイアウトを設定します。)
### How to Use (利用方法)
By getting a comprehensive overview of trend direction and momentum across multiple timeframes on a single chart, this tool can assist in making more informed trading decisions. For example, a trader might use it to confirm a strong uptrend on higher timeframes before looking for pullback entries on a lower timeframe.
複数の時間足のトレンド方向や勢いを一枚のチャートで俯瞰することで、より精度の高いエントリー・エグジットの判断材料とすることができます。例えば、上位足で強いトレンドが出ていることを確認しながら、下位足での押し目買いや戻り売りを狙うといった使い方が考えられます。
---
*This script is provided for informational and educational purposes only. It is not financial advice. Please use it at your own risk.*
*このスクリプトは、情報提供および教育目的でのみ提供されます。これは投資助言ではありません。ご自身の責任においてご使用ください。*
Sürüm Notları
### Bug Fix & Stability ImprovementsThis update fixes a critical bug that caused the indicator to stop working under certain conditions.
- **Bug Fix**
- Resolved an issue where the script would encounter an error and stop running when changing the chart timeframe or modifying indicator settings while the MTF Status Table or MA Settings Table was displayed.
- This fix significantly improves the overall stability of the indicator, providing a much smoother user experience.
- **Note on Behavior**
- Please note that if you hide items from the tables (e.g., GC/DC pairs, individual MAs) in the settings, their corresponding rows will appear blank in the table. This is by design due to the limitations of `Pine Script` and is not an error.
If you encounter any issues, please feel free to leave your feedback.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.