OPEN-SOURCE SCRIPT

Malama's Universal anchored M.A.

81
Malama's Universal Anchored M.A. (UMA+) is a highly versatile, all-in-one moving average framework that supports over 28 different calculation methods — from classic (SMA, EMA) to advanced adaptive and Ehlers-based filters (KAMA, FRAMA, MAMA/FAMA, Super Smoother, Kalman, etc.). It features an innovative Anchored Mode that resets calculations from a user-defined point (specific date/time, bars back, or the start of data), making it perfect for analyzing price action relative to key market events like earnings, FOMC news, or cycle starts.

The MA dynamically colors based on price position, includes an optional fill for trend visualization, and features a clean on-chart dashboard with crossover alerts.

Key Features
28+ Moving Average Types: Includes SMA, EMA, WMA, TMA, VWMA, HMA, ALMA, VIDYA, DEMA, TEMA, KAMA, ZLEMA, T3, Hull-like, FRAMA, McGinley Dynamic, LSMA, SMMA, Super Smoother, Laguerre Filter, Cyber Cycle, MAMA/FAMA, Reflex, Trend Reflex, Dominant Cycle, Non-Lag MA, and Kalman Filter.

Anchored Calculations: Reset the MA calculation from a specific reference point:

By Date/Time: Analyze trends starting from a specific news event.

Bars Back: Anchor to a specific recent high or low.

First Bar: Anchor to the beginning of the available data.

Visual Anchor Marker: A dashed vertical line with an anchor (⚓) icon clearly marks the reset point.

Dynamic Coloring: The line and fill change color based on whether price is Above (Bullish) or Below (Bearish) the MA.

On-Chart Dashboard: A compact, movable table displaying:

Current MA Type & Length

Real-time Value & Price Position

% Deviation from the MA

Trend Direction (UP/DOWN/FLAT)

Anchor details (if enabled)

Strategy Ideas: Stacking for Crossovers
Create your own custom crossover strategy by adding this indicator to your chart twice! Because UMA+ supports so many calculation methods, you can "stack" two instances to build unique trend-following systems:

Add UMA+ Twice: Apply the script to your chart two times.

Configure the "Fast" MA: On the first instance, select a responsive type (e.g., Hull MA or T3) with a lower length (e.g., 9 or 14).

Configure the "Slow" MA: On the second instance, select a smoother type (e.g., KAMA or Super Smoother) with a higher length (e.g., 50 or 100).

Trade the Cross: Look for the "Fast" MA line crossing the "Slow" MA line to identify potential trend reversals or entry points. This allows you to combine the responsiveness of modern filters with the stability of classic trend lines.

Why This Indicator Stands Out
Unlike standard multi-MA scripts that only switch types, UMA+ combines extreme flexibility with Anchored Analysis. This allows traders to measure trend strength and responsiveness from significant reference points rather than an arbitrary rolling window. It is exceptionally useful for:

Post-Event Analysis: See how price respects an average anchored specifically to an earnings release or Fed announcement.

Cycle Trading: Measure trends from specific cycle lows.

Lag Reduction: Utilize advanced filters like Kalman, T3, or Ehlers series to reduce lag in trending markets while maintaining smoothness.

How to Use
Choose Your MA: Select from the extensive list. Experiment with adaptive types (KAMA, VIDYA) for choppy markets or low-lag types (Hull, ZLEMA) for scalping.

Enable Anchor (Optional): Toggle "Enable Anchor" to fix the start point of the calculation. Use the "Date/Time" method to align with specific market catalysts.

Interpret the Dashboard:

Bullish Momentum: Look for "Price ABOVE," a positive Deviation %, and "Trend UP."

Reversion: Extreme deviation values may indicate price is overextended and due to snap back to the MA.

Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Always use proper risk management and combine with your own analysis. Trading involves substantial risk of loss.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。