OPEN-SOURCE SCRIPT

Trend Display Table (with Change Alerts)

165
📌 Indicator: Trend Display Table (with Change Alerts)

This indicator helps identify trend direction based on a 15-minute 20 SMA compared against a 10 EMA applied to that SMA.

Trend Logic:

Bullish → 20 SMA crosses above 10 EMA (on SMA values)

Bearish → 20 SMA crosses below 10 EMA (on SMA values)

Neutral → No crossover (trend continues from previous state)


Display:
A compact trend table appears on the chart (top-right), showing the current trend with customizable colors, font size, and background.

Alerts:
Alerts are triggered only when the trend changes (from Bullish → Bearish or Bearish → Bullish).
This prevents repeated alerts on every bar.


✅ Useful for:

Confirming higher timeframe trend bias

Filtering trades in choppy markets

Getting notified instantly when the trend flips

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.