OPEN-SOURCE SCRIPT

LWMA w/ Color Change

9115
Linear Weighted MA that changes colors based on slope.

Green = slope up from last bar
Yellow = slope is 0 from last bar
Red = slope down from last bar

This time with the ability to change the period.

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.