OPEN-SOURCE SCRIPT

UM Multi MA type, Directional Colors + Flip Labels

107
Summary

UM Multi MA is a multi–moving average trend overlay supporting SMA, EMA, WMA, HMA, KAMA, DEMA, and TEMA. Each MA is colored by slope direction, displays clean right-side Flip prices, and optionally adds price↔MA fills, bar/candle coloring, and alerts for MA direction changes.



Description

This indicator plots up to five independently configurable moving averages directly on the price chart. Each MA is colored green when rising and red when falling, based on its current slope.

On the last bar only, an optional right-side label displays the MA’s projected Flip price calculation:
• If the MA is currently green (rising), the label is green and shows
“Flip red @ <target price>”
• If the MA is currently red (falling), the label is red and shows
“Flip green @ <target price>”

The script also supports optional price↔MA fills, optional bar/candle coloring driven by any selected MA, and alerts when MA slope direction changes.



Features
• Up to five moving averages (MA1–MA5), each with independent Enable, Length, and Type settings
• Supported MA types: SMA, EMA, WMA, HMA, DEMA, TEMA, KAMA
• Directional MA coloring (green rising / red falling)
• Right-side labels (last bar only), indicator at what price MA will flip color
MA# TYPE LEN Flip red/green @ target price
• Optional price↔MA fill (user-selectable MA)
• Green fill when price > selected MA and MA is rising
• Red fill when price < selected MA and MA is falling
• Optional bar/candle coloring driven by any selected MA
• Alerts:
• Dropdown alertconditions (visible in the TradingView alert menu)
• Optional dynamic alert() messages that include MA type and length



Default Values
• Source: Close
• MA1: Enabled, EMA 8, Right-side label ON
• MA2: Enabled, EMA 21, Right-side label OFF
• MA3: Enabled, EMA 50, Right-side label OFF
• MA4: Enabled, EMA 100, Right-side label OFF
• MA5: Enabled, EMA 200, Right-side label OFF
• Label offset: 10 bars
• Price↔MA fill: OFF
• Fill MA: MA1
• Fill transparency: 90
• Candle coloring: OFF
• Color bars using: MA1
• Bar transparency: 0
• Alerts:
• Dropdown alertconditions ON
• Dynamic alert() messages OFF
• MA1 Bull/Bear alerts enabled by default
• MA2–MA5 alerts disabled by default



Suggested Uses
• Trend Regime Filtering
Use MA200 or MA100 to define bull vs bear regimes, then MA8 or MA21 for trade timing.
• Flip Target Awareness
Use the right-side Flip label as a quick visual reference for where MA slope direction is projected to change.
• Alignment Confirmation
Enable fills and/or candle coloring using your “decision MA” (commonly MA21 or MA50) to maintain consistency.
• Alerting Workflow
Use dropdown alertconditions for standard alerts.
Enable dynamic alerts only if you want messages that include MA type and length (alert type: Any alert() function call).
• KAMA for Chop Reduction
Try KAMA on MA21 or MA50 to reduce noise while staying responsive in trends.
• Faster MA Options (DEMA / TEMA)
Use DEMA or TEMA on MA8 or MA21 for earlier flips, understanding they are more sensitive in sideways markets.
• Volatility Expansion Awareness
Watch for periods where multiple MAs compress tightly; these often precede volatility or price expansion.
• Trade Execution Ideas
Red → green transitions may be used for entries or add-ons.
Green → red transitions may be used for exits or risk reduction.
• Multi-Timeframe Analysis
The author commonly uses Daily and 6-Hour timeframes together.
• MA Stretching Across Timeframes
If you like an 8-period MA on the Daily, try its longer equivalent on lower timeframes (for example, ~55 on the Hourly).
• Indicator Stacking
Designed to pair well with momentum, volatility, and market-structure indicators.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。