OPEN-SOURCE SCRIPT

Multi-Timeframe MA 10 EMA SMA WMA HMA RMA

208
█ 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

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.