Multi Moving Average 5 MA MTF & Chart Type Independent

324
Multi Moving Average (5 MA) — MTF & Chart-Type Independent

Five fully independent moving averages in one indicator, built to solve two problems most MA scripts get wrong.

1. Heikin Ashi doesn't distort your averages.
Every MA is calculated from the underlying standard candlestick OHLC, regardless of what the chart is set to. Switch between Candles, Heikin Ashi, Renko, Kagi, Line Break or Range — the lines stay exactly where they were. You get HA's visual smoothing for reading trend, while your 50 EMA remains the real 50 EMA everyone else is watching. A toggle lets you revert to chart-native data if you prefer.

2. Each MA gets its own timeframe.
Not one global MTF setting — five separate ones. Run a 5-min 9 EMA, a 1-hour 21 EMA and a Daily 200 SMA together on a single intraday chart to see exactly where the higher-timeframe levels sit while you execute. Blank = chart timeframe.

Also inside

12 MA types per line: SMA, EMA, WMA, RMA/SMMA, HMA, VWMA, DEMA, TEMA, TMA, LSMA, ALMA, Median
Independent source per MA (open/high/low/close/hl2/hlc3/ohlc4/hlcc4), length, colour and width
Non-repainting by design (lookahead_off), with an optional "confirmed HTF only" mode that waits for the higher-timeframe bar to close
8 built-in alerts — price crossing MA1/MA2, MA1×MA2, and MA2×MA5 golden/death cross — all referenced to standard-candle closes so they fire identically on a Heikin Ashi chart
On-chart info table showing each MA's type, length, timeframe and live value

A technical note: all MA variants are computed on every bar before the type is selected. Calling ta.* functions inside conditional branches silently corrupts their history — a bug present in a surprising number of published multi-MA scripts. This one avoids it.

Free and open source. Feedback and suggestions welcome.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.