OPEN-SOURCE SCRIPT
Multi MA Framework [Gabremoku]

Multi MA Framework [Gabremoku] is a flexible multi-moving-average overlay built for traders who want a clean and fully customizable MA workspace directly on the chart.
The indicator lets you plot up to four independent moving averages, each with its own:
visibility toggle
length
MA type
color
This makes it useful for traders who want to combine fast and slow averages, compare SMA vs EMA behavior, or build a personalized trend framework without loading multiple separate indicators.
What it shows
📈 Up to 4 Moving Averages — each line can be configured independently and displayed only when needed.
⚙️ SMA or EMA per line — choose the moving average type separately for each MA. SMA gives equal weight to all values in the period, while EMA gives more weight to recent prices and typically reacts faster to change.
🏷️ End Labels — optional right-side labels show each MA name, type, and length.
☁️ Cloud Fills — optional fills between:
MA 1 / MA 2
MA 3 / MA 4
These clouds help visualize alignment and separation between faster and slower averages.
Core idea
This script is designed as a moving average framework, not a rigid strategy.
Moving averages are commonly used to:
identify trend direction
smooth noisy price action
monitor dynamic support and resistance
compare short-term and long-term market structure
By allowing different lengths and SMA/EMA choices on every line, the script makes it easy to create your own structure, for example:
fast trend stack
swing trend map
long-term bias model
crossover-based workflow
How to use
A practical way to use the framework is to combine shorter and longer averages.
For example:
a shorter MA can track immediate momentum
a medium MA can define swing direction
a longer MA can define higher-level trend bias
When multiple moving averages align in the same direction, traders often interpret that as stronger trend structure. Crossovers between faster and slower averages are also widely used to monitor possible trend shifts, although they are lagging by nature.
Example setups
Here are some common ways this framework can be configured:
Trend stack: 10 EMA / 20 EMA / 50 EMA / 200 SMA
Swing trader view: 20 EMA / 50 SMA / 100 SMA / 200 SMA
Minimal structure: show only 2 lines and enable one cloud
Cross comparison: use SMA on one line and EMA on another with the same or similar length to compare responsiveness
Because EMA reacts faster and SMA is smoother, combining both can help balance responsiveness and stability.
Features
✅ Up to 4 fully independent moving averages
✅ SMA or EMA selection for each line
✅ Custom length for each MA
✅ Custom color for each MA
✅ Visibility toggle for every line
✅ Adjustable line width
✅ Optional right-side end labels
✅ Optional MA1/MA2 cloud fill
✅ Optional MA3/MA4 cloud fill
✅ Clean chart overlay design
Notes
This indicator is best used as a custom trend structure tool rather than a standalone signal engine. Moving averages are inherently lagging indicators, so they are most effective when used to define context and trend bias rather than predict reversals on their own.
Author: Gabremoku
Pine Script v6
The indicator lets you plot up to four independent moving averages, each with its own:
visibility toggle
length
MA type
color
This makes it useful for traders who want to combine fast and slow averages, compare SMA vs EMA behavior, or build a personalized trend framework without loading multiple separate indicators.
What it shows
📈 Up to 4 Moving Averages — each line can be configured independently and displayed only when needed.
⚙️ SMA or EMA per line — choose the moving average type separately for each MA. SMA gives equal weight to all values in the period, while EMA gives more weight to recent prices and typically reacts faster to change.
🏷️ End Labels — optional right-side labels show each MA name, type, and length.
☁️ Cloud Fills — optional fills between:
MA 1 / MA 2
MA 3 / MA 4
These clouds help visualize alignment and separation between faster and slower averages.
Core idea
This script is designed as a moving average framework, not a rigid strategy.
Moving averages are commonly used to:
identify trend direction
smooth noisy price action
monitor dynamic support and resistance
compare short-term and long-term market structure
By allowing different lengths and SMA/EMA choices on every line, the script makes it easy to create your own structure, for example:
fast trend stack
swing trend map
long-term bias model
crossover-based workflow
How to use
A practical way to use the framework is to combine shorter and longer averages.
For example:
a shorter MA can track immediate momentum
a medium MA can define swing direction
a longer MA can define higher-level trend bias
When multiple moving averages align in the same direction, traders often interpret that as stronger trend structure. Crossovers between faster and slower averages are also widely used to monitor possible trend shifts, although they are lagging by nature.
Example setups
Here are some common ways this framework can be configured:
Trend stack: 10 EMA / 20 EMA / 50 EMA / 200 SMA
Swing trader view: 20 EMA / 50 SMA / 100 SMA / 200 SMA
Minimal structure: show only 2 lines and enable one cloud
Cross comparison: use SMA on one line and EMA on another with the same or similar length to compare responsiveness
Because EMA reacts faster and SMA is smoother, combining both can help balance responsiveness and stability.
Features
✅ Up to 4 fully independent moving averages
✅ SMA or EMA selection for each line
✅ Custom length for each MA
✅ Custom color for each MA
✅ Visibility toggle for every line
✅ Adjustable line width
✅ Optional right-side end labels
✅ Optional MA1/MA2 cloud fill
✅ Optional MA3/MA4 cloud fill
✅ Clean chart overlay design
Notes
This indicator is best used as a custom trend structure tool rather than a standalone signal engine. Moving averages are inherently lagging indicators, so they are most effective when used to define context and trend bias rather than predict reversals on their own.
Author: Gabremoku
Pine Script v6
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。