PROTECTED SOURCE SCRIPT

SMA with Background Color

14
This is a Simple Moving Average that changes the background color of the chart to green if the moving average is trending up and red if the moving average is trending down. A flat SMA generates no background color.

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.