OPEN-SOURCE SCRIPT
MA-MTF-12 Overlay

📊 MA-MTF-12 Overlay — Indicator Description
■ Overview
MA-MTF-12 Overlay is a multi-timeframe moving average indicator that allows you to display up to 12 moving averages (SMA / EMA) simultaneously, calculated either from the current timeframe (Local) or from higher timeframes (MTF).
It is designed to help traders visualize short-term price action and higher-timeframe market structure on a single chart, enabling clearer trend context and better decision-making.
■ Key Features
✅ Up to 12 Moving Averages
Display MA1–MA12 independently
Choose SMA or EMA for each MA
Fully customizable length, color, and line width
✅ Per-MA Local / MTF Selection
Each moving average can be set individually to:
Local – calculated on the current chart timeframe
MTF – retrieved from a higher timeframe (e.g. 1H, 4H, Daily, Weekly, Monthly)
This allows you to clearly separate entry signals from higher-timeframe trend context.
✅ Confirmed Bar Mode (Repaint Control)
When using MTF, each MA supports Confirmed Bar Mode:
ON – updates only after the higher-timeframe bar is closed (minimal repaint, backtest-friendly)
OFF – follows the current higher-timeframe bar in real time (discretionary trading)
✅ Gap Handling Option
Gaps OFF – higher-timeframe values are filled smoothly (step-style, easier to read)
Gaps ON – values appear only when a higher-timeframe bar updates (theoretical accuracy)
✅ Lightweight & Efficient Design
Each MA includes separate:
Calculation ON / OFF
Display ON / OFF
Unused MAs can be completely disabled, preventing unnecessary calculations and keeping the indicator fast even with multiple MTF sources.
■ Example Use Case
MA1–MA3: Local timeframe MAs for short-term momentum
MA4–MA6: Higher-timeframe MAs (4H / Daily / Weekly) for trend structure
MA7–MA12: Optional layers, disabled by default
This setup makes it easy to understand where price is trading within the broader market context.
■ Who This Indicator Is For
Traders who rely on multi-timeframe trend analysis
Scalpers, day traders, and swing traders who want one-chart clarity
Users concerned about repainting and indicator performance
Anyone who uses moving averages as structural reference points, not just signals
■ Technical Notes
Pine Script v5
Overlay indicator (drawn on price chart)
Multi-timeframe support via request.security()
No alerts or shapes — pure visual analysis
📊 MA-MTF-12 Overlay – インジケーター解説
■ 概要
MA-MTF-12 Overlay** は、
最大12本の移動平均(SMA / EMA)を、現在足(Local)または上位足(MTF)から自由に組み合わせて表示できる**
マルチタイムフレーム対応の高機能MAインジケーターです。
短期足の値動きから、1時間・4時間・日足・週足・月足といった
上位足のトレンド環境を、1つのチャート上で同時に把握**することを目的に設計されています。
---
■ 主な特徴
✅ 最大12本のMAを同時表示
* MA1〜MA12を個別に設定可能
* SMA / EMA をMAごとに選択
* 期間・色・太さもすべて自由にカスタマイズ
---
✅ Local / MTF をMAごとに切替可能
各MAは以下を個別に選択できます。
Local:現在のチャート時間足で計算
MTF:指定した上位足(例:1H / 4H / D / W / M)から取得
👉
短期MAはLocal、
環境認識用MAはMTF、
という役割分担を1つのインジケーターで実現できます。
---
✅ 確定足モード(リペイント制御)
MTF使用時は、確定足モードをMAごとに設定可能。
ON:上位足が確定してから更新(リペイント最小・検証向き)
OFF:上位足の進行中の値もリアルタイムで反映(裁量トレード向き)
用途に応じて柔軟に使い分けられます。
---
✅ ギャップ表示 ON / OFF
OFF:上位足MAを階段状に補完表示(視認性重視)
ON:上位足更新点のみ表示(理論重視)
---
✅ 計算ON / 表示ON を分離した軽量設計
各MAには
計算ON / OFF
表示ON / OFF**
を個別に用意。
使わないMAは計算そのものを停止できるため、
MTFを多用しても**動作が重くなりにくい設計です。
---
■ 想定される使い方
* MA1〜MA3:Local(短期〜中期の勢い把握)
* MA4〜MA6:MTF(4H・日足・週足のトレンド環境)
* MA7〜MA12:必要に応じて追加(初期はOFF)
👉
「今どの時間軸のトレンドの中にいるのか」を
MAだけで直感的に把握できます。
---
■ こんな方におすすめ
* 上位足MAを使った環境認識を重視するトレーダー
* スキャル・デイトレ・スイングを1チャートで完結させたい方
* MTFインジケーターのリペイントや重さが気になる方
* MAを「本数・役割・時間軸」で整理して使いたい方
---
■ 技術仕様
* Pine Script v5
* overlay=true(価格チャート上に表示)
* MTF対応(request.security 使用)
* アラート・シェイプなし(純粋な分析用)
---
■ Overview
MA-MTF-12 Overlay is a multi-timeframe moving average indicator that allows you to display up to 12 moving averages (SMA / EMA) simultaneously, calculated either from the current timeframe (Local) or from higher timeframes (MTF).
It is designed to help traders visualize short-term price action and higher-timeframe market structure on a single chart, enabling clearer trend context and better decision-making.
■ Key Features
✅ Up to 12 Moving Averages
Display MA1–MA12 independently
Choose SMA or EMA for each MA
Fully customizable length, color, and line width
✅ Per-MA Local / MTF Selection
Each moving average can be set individually to:
Local – calculated on the current chart timeframe
MTF – retrieved from a higher timeframe (e.g. 1H, 4H, Daily, Weekly, Monthly)
This allows you to clearly separate entry signals from higher-timeframe trend context.
✅ Confirmed Bar Mode (Repaint Control)
When using MTF, each MA supports Confirmed Bar Mode:
ON – updates only after the higher-timeframe bar is closed (minimal repaint, backtest-friendly)
OFF – follows the current higher-timeframe bar in real time (discretionary trading)
✅ Gap Handling Option
Gaps OFF – higher-timeframe values are filled smoothly (step-style, easier to read)
Gaps ON – values appear only when a higher-timeframe bar updates (theoretical accuracy)
✅ Lightweight & Efficient Design
Each MA includes separate:
Calculation ON / OFF
Display ON / OFF
Unused MAs can be completely disabled, preventing unnecessary calculations and keeping the indicator fast even with multiple MTF sources.
■ Example Use Case
MA1–MA3: Local timeframe MAs for short-term momentum
MA4–MA6: Higher-timeframe MAs (4H / Daily / Weekly) for trend structure
MA7–MA12: Optional layers, disabled by default
This setup makes it easy to understand where price is trading within the broader market context.
■ Who This Indicator Is For
Traders who rely on multi-timeframe trend analysis
Scalpers, day traders, and swing traders who want one-chart clarity
Users concerned about repainting and indicator performance
Anyone who uses moving averages as structural reference points, not just signals
■ Technical Notes
Pine Script v5
Overlay indicator (drawn on price chart)
Multi-timeframe support via request.security()
No alerts or shapes — pure visual analysis
📊 MA-MTF-12 Overlay – インジケーター解説
■ 概要
MA-MTF-12 Overlay** は、
最大12本の移動平均(SMA / EMA)を、現在足(Local)または上位足(MTF)から自由に組み合わせて表示できる**
マルチタイムフレーム対応の高機能MAインジケーターです。
短期足の値動きから、1時間・4時間・日足・週足・月足といった
上位足のトレンド環境を、1つのチャート上で同時に把握**することを目的に設計されています。
---
■ 主な特徴
✅ 最大12本のMAを同時表示
* MA1〜MA12を個別に設定可能
* SMA / EMA をMAごとに選択
* 期間・色・太さもすべて自由にカスタマイズ
---
✅ Local / MTF をMAごとに切替可能
各MAは以下を個別に選択できます。
Local:現在のチャート時間足で計算
MTF:指定した上位足(例:1H / 4H / D / W / M)から取得
👉
短期MAはLocal、
環境認識用MAはMTF、
という役割分担を1つのインジケーターで実現できます。
---
✅ 確定足モード(リペイント制御)
MTF使用時は、確定足モードをMAごとに設定可能。
ON:上位足が確定してから更新(リペイント最小・検証向き)
OFF:上位足の進行中の値もリアルタイムで反映(裁量トレード向き)
用途に応じて柔軟に使い分けられます。
---
✅ ギャップ表示 ON / OFF
OFF:上位足MAを階段状に補完表示(視認性重視)
ON:上位足更新点のみ表示(理論重視)
---
✅ 計算ON / 表示ON を分離した軽量設計
各MAには
計算ON / OFF
表示ON / OFF**
を個別に用意。
使わないMAは計算そのものを停止できるため、
MTFを多用しても**動作が重くなりにくい設計です。
---
■ 想定される使い方
* MA1〜MA3:Local(短期〜中期の勢い把握)
* MA4〜MA6:MTF(4H・日足・週足のトレンド環境)
* MA7〜MA12:必要に応じて追加(初期はOFF)
👉
「今どの時間軸のトレンドの中にいるのか」を
MAだけで直感的に把握できます。
---
■ こんな方におすすめ
* 上位足MAを使った環境認識を重視するトレーダー
* スキャル・デイトレ・スイングを1チャートで完結させたい方
* MTFインジケーターのリペイントや重さが気になる方
* MAを「本数・役割・時間軸」で整理して使いたい方
---
■ 技術仕様
* Pine Script v5
* overlay=true(価格チャート上に表示)
* MTF対応(request.security 使用)
* アラート・シェイプなし(純粋な分析用)
---
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.