PROTECTED SOURCE SCRIPT

Commando SMA Direction Color

39
Colors the X-period Simple Moving Average (SMA) based on its direction.
The SMA is displayed in green when its current value is higher than its previous value, and in red when its current value is lower than its previous value.

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.