OPEN-SOURCE SCRIPT
Updated

NSDT MA Colored Candles

A simple script that will change the color of the candle if it closes over/under the designated Moving Average. This makes it very easy to identify trends based on your selected Moving Average line length. You can choose EMA, SMA, or WMA and of course the length is adjustable as well. To see these candles, be sure to go into the Chart Settings and uncheck the candle Borders, Colors, and Wicks.
Release Notes
Updated code to Pinescript V5.
Release Notes
Added alerts per request of Nxjbdbe92872728

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.