OPEN-SOURCE SCRIPT
Trend Alignment Table

The Trend Alignment Table is a clean, visual tool designed to quickly assess trend direction and alignment across multiple moving averages — without cluttering your chart.
Instead of plotting moving average lines, this indicator displays a compact on-chart table showing each selected MA and its corresponding trend status using color-coded circles.
🧩 How It Works
Each circle represents the relationship between price and its corresponding moving average (MA):
Price vs. MA MA Direction Circle Color Meaning
Above Rising 🟢 Green Bullish continuation
Above Falling 🟡 Yellow Weakening bullishness
Below Falling 🔴 Red Bearish continuation
Below Rising 🟡 Yellow Weakening bearishness
⚙️ Features
Up to 4 customizable moving averages
Type: SMA, EMA, SMMA (RMA), WMA, VWMA
Source: Any price source (close, open, etc.)
Length: Fully adjustable
Dynamic color-coded circles (green, yellow, red by default — fully customizable)
User-selectable table position (top-left, top-right, bottom-left, bottom-right)
Clean visual layout for quick multi-timeframe trend confirmation
📊 Use Cases
Instantly identify trend alignment across short-, medium-, and long-term averages
Confirm trend strength or weakening momentum
Combine with other indicators or strategies for confirmation signals
🧠 Default Settings
MA Type Length Color
MA #1 SMA 5 Green
MA #2 SMA 20 Gold
MA #3 SMA 50 Orange
MA #4 SMA 150 Red
🧰 Created for traders who value clarity.
Whether you trade trends, reversals, or momentum shifts, the Trend Alignment Table gives you a concise, at-a-glance view of the market’s directional structure.
Instead of plotting moving average lines, this indicator displays a compact on-chart table showing each selected MA and its corresponding trend status using color-coded circles.
🧩 How It Works
Each circle represents the relationship between price and its corresponding moving average (MA):
Price vs. MA MA Direction Circle Color Meaning
Above Rising 🟢 Green Bullish continuation
Above Falling 🟡 Yellow Weakening bullishness
Below Falling 🔴 Red Bearish continuation
Below Rising 🟡 Yellow Weakening bearishness
⚙️ Features
Up to 4 customizable moving averages
Type: SMA, EMA, SMMA (RMA), WMA, VWMA
Source: Any price source (close, open, etc.)
Length: Fully adjustable
Dynamic color-coded circles (green, yellow, red by default — fully customizable)
User-selectable table position (top-left, top-right, bottom-left, bottom-right)
Clean visual layout for quick multi-timeframe trend confirmation
📊 Use Cases
Instantly identify trend alignment across short-, medium-, and long-term averages
Confirm trend strength or weakening momentum
Combine with other indicators or strategies for confirmation signals
🧠 Default Settings
MA Type Length Color
MA #1 SMA 5 Green
MA #2 SMA 20 Gold
MA #3 SMA 50 Orange
MA #4 SMA 150 Red
🧰 Created for traders who value clarity.
Whether you trade trends, reversals, or momentum shifts, the Trend Alignment Table gives you a concise, at-a-glance view of the market’s directional structure.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.