OPEN-SOURCE SCRIPT
Multi-Timeframe MA 10 EMA SMA WMA HMA RMA

█ OVERVIEW
This indicator displays up to 10 moving average lines, each on its own independently configurable timeframe.
The core idea is simple: instead of recalculating periods manually when switching chart timeframes, you set each line to a specific timeframe once and it stays there regardless of what timeframe you are viewing.
For example, set MA1 to the Daily 200 EMA and it will always show the Daily 200 EMA — whether you are looking at a 1-minute chart or a 4-hour chart.
█ FEATURES
• Up to 10 MA lines, each with independent timeframe, period, type, and color settings
• MA types: EMA, SMA, WMA, HMA, RMA
• Lines 7 to 10 are hidden by default — enable only what you need
• Each line has a Show toggle so you can turn individual lines on and off without losing your settings
█ MA TYPES
• EMA — Exponential Moving Average. Weights recent bars more heavily. The most widely used MA among traders.
• SMA — Simple Moving Average. Treats all bars equally. Often watched by institutional traders.
• WMA — Weighted Moving Average. Similar to EMA but with a more straightforward weighting curve.
• HMA — Hull Moving Average. Designed to minimize lag while staying smooth. Reacts faster than EMA.
• RMA — Wilder's Moving Average. The same MA used inside RSI calculations. Smoother and slower than EMA.
█ HOW TO USE
Set each line to a timeframe and period that matches your trading approach. A few common setups:
Upper timeframe confluence — Set MA1, MA2, MA3 to the Daily, 4H, and 1H 200 EMA respectively. Keeps key support and resistance levels visible on any chart.
MA ribbon — Set multiple lines to the same timeframe with different periods (e.g. 20, 50, 100, 200). The order and spacing of the lines reflects trend strength.
Cross-timeframe comparison — Set the same period (e.g. 50 EMA) across multiple timeframes to see whether they are aligned in the same direction.
█ NOTES
• Lines set to a higher timeframe than the current chart may repaint on the forming bar — this is normal behavior for request.security() in Pine Script
• If a line appears flat or missing, check that the selected timeframe is higher than or equal to your current chart timeframe
This indicator displays up to 10 moving average lines, each on its own independently configurable timeframe.
The core idea is simple: instead of recalculating periods manually when switching chart timeframes, you set each line to a specific timeframe once and it stays there regardless of what timeframe you are viewing.
For example, set MA1 to the Daily 200 EMA and it will always show the Daily 200 EMA — whether you are looking at a 1-minute chart or a 4-hour chart.
█ FEATURES
• Up to 10 MA lines, each with independent timeframe, period, type, and color settings
• MA types: EMA, SMA, WMA, HMA, RMA
• Lines 7 to 10 are hidden by default — enable only what you need
• Each line has a Show toggle so you can turn individual lines on and off without losing your settings
█ MA TYPES
• EMA — Exponential Moving Average. Weights recent bars more heavily. The most widely used MA among traders.
• SMA — Simple Moving Average. Treats all bars equally. Often watched by institutional traders.
• WMA — Weighted Moving Average. Similar to EMA but with a more straightforward weighting curve.
• HMA — Hull Moving Average. Designed to minimize lag while staying smooth. Reacts faster than EMA.
• RMA — Wilder's Moving Average. The same MA used inside RSI calculations. Smoother and slower than EMA.
█ HOW TO USE
Set each line to a timeframe and period that matches your trading approach. A few common setups:
Upper timeframe confluence — Set MA1, MA2, MA3 to the Daily, 4H, and 1H 200 EMA respectively. Keeps key support and resistance levels visible on any chart.
MA ribbon — Set multiple lines to the same timeframe with different periods (e.g. 20, 50, 100, 200). The order and spacing of the lines reflects trend strength.
Cross-timeframe comparison — Set the same period (e.g. 50 EMA) across multiple timeframes to see whether they are aligned in the same direction.
█ NOTES
• Lines set to a higher timeframe than the current chart may repaint on the forming bar — this is normal behavior for request.security() in Pine Script
• If a line appears flat or missing, check that the selected timeframe is higher than or equal to your current chart timeframe
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。