OPEN-SOURCE SCRIPT

Colored SMA

64
This TradingView indicator displays a moving average (either SMA or EMA) with a dynamic color that changes based on the slope of the average:

✅ Features:
Customizable type of moving average: Simple Moving Average (SMA) or Exponential Moving Average (EMA)

User-defined period: Default is 20

Slope-based coloring:

Green: If the moving average is rising (upward slope)

Red: If the moving average is falling (downward slope)

Gray: If the slope is flat (no change)

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.