OPEN-SOURCE SCRIPT
Dynamic EMA Trend Table [Customizable]

Overview
The Dynamic EMA Trend Table is a comprehensive dashboard designed to give traders an instant overview of the market trend across five distinct Exponential Moving Averages (EMAs). Instead of cluttering your chart with multiple lines, this script organizes the data into a clean, customizable table, allowing you to assess trend alignment at a glance.
How It Works
This indicator calculates five user-defined EMAs (defaulting to the popular 5, 20, 50, 100, and 200 periods). It then compares the Current Price against each EMA value to determine the immediate trend status:
Bullish State: When the current price is above the specific EMA, the table cell turns Green (customizable).
Bearish State: When the current price is below the specific EMA, the table cell turns Red (customizable).
This logic allows swing traders and scalpers to instantly see if the asset is in a strong uptrend (all cells Green), a strong downtrend (all cells Red), or a consolidation phase (mixed colors).
Key Features
Fully Customizable Periods: Change the length of all 5 EMAs to fit your specific strategy (e.g., Fibonacci numbers or standard Swing Trading settings).
Dynamic UI: Position the table anywhere on the screen (Top/Bottom/Left/Right) and adjust the size to fit your screen resolution.
Visual Cleanliness: You can choose to show the table only, or toggle the "Show EMAs on Chart" option to plot the actual lines on your chart.
Smart Coloring: The lines on the chart (if enabled) inherit the same color logic as the table—turning Green when price is above them and Red when price is below.
Settings & Configuration
Price Source: Select Close, High, Low, etc. (Default is Close).
Table Position & Size: Customize where the dashboard appears.
EMA Lengths: Set your 5 preferred lookback periods.
Color Theme: Fully adjustable colors for Bullish, Bearish, Neutral, and Background elements to match your chart theme (Dark/Light mode friendly).
Use Case Example
Trend Confirmation: A trader looking for a "Buy" entry might wait for the short-term EMAs (5 and 20) and the medium-term EMA (50) to all turn Green in the table before entering.
Support/Resistance Watch: By quickly glancing at the values in the table, you can see exactly where the 200 EMA sits without needing to scroll back on your chart to find the line.
The Dynamic EMA Trend Table is a comprehensive dashboard designed to give traders an instant overview of the market trend across five distinct Exponential Moving Averages (EMAs). Instead of cluttering your chart with multiple lines, this script organizes the data into a clean, customizable table, allowing you to assess trend alignment at a glance.
How It Works
This indicator calculates five user-defined EMAs (defaulting to the popular 5, 20, 50, 100, and 200 periods). It then compares the Current Price against each EMA value to determine the immediate trend status:
Bullish State: When the current price is above the specific EMA, the table cell turns Green (customizable).
Bearish State: When the current price is below the specific EMA, the table cell turns Red (customizable).
This logic allows swing traders and scalpers to instantly see if the asset is in a strong uptrend (all cells Green), a strong downtrend (all cells Red), or a consolidation phase (mixed colors).
Key Features
Fully Customizable Periods: Change the length of all 5 EMAs to fit your specific strategy (e.g., Fibonacci numbers or standard Swing Trading settings).
Dynamic UI: Position the table anywhere on the screen (Top/Bottom/Left/Right) and adjust the size to fit your screen resolution.
Visual Cleanliness: You can choose to show the table only, or toggle the "Show EMAs on Chart" option to plot the actual lines on your chart.
Smart Coloring: The lines on the chart (if enabled) inherit the same color logic as the table—turning Green when price is above them and Red when price is below.
Settings & Configuration
Price Source: Select Close, High, Low, etc. (Default is Close).
Table Position & Size: Customize where the dashboard appears.
EMA Lengths: Set your 5 preferred lookback periods.
Color Theme: Fully adjustable colors for Bullish, Bearish, Neutral, and Background elements to match your chart theme (Dark/Light mode friendly).
Use Case Example
Trend Confirmation: A trader looking for a "Buy" entry might wait for the short-term EMAs (5 and 20) and the medium-term EMA (50) to all turn Green in the table before entering.
Support/Resistance Watch: By quickly glancing at the values in the table, you can see exactly where the 200 EMA sits without needing to scroll back on your chart to find the line.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。