OPEN-SOURCE SCRIPT

LWMA w/ Color Change

5 833
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

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.