OPEN-SOURCE SCRIPT
Updated

NSDT Trend Candles

23 097
This script changes the color of the candles based on uptrend (green), downtrend (red), neutral/chop (yellow). It uses an ATR and Pivots to determine the direction, or lack of. Since all markets move differently and market volatility changes, you will need to adjust the settings to find a potential match for the day. It's pretty simple to use. Just enter in the direction of the trend and exit (or reverse) when the candle color changes.
Release Notes
Script was having an issue working on some crypto assets as mentioned by some users. The Pinecoders group found that I had reversed ATR Length and ATR Range references. The issue has been resolved.
Release Notes
Updated code to Pinescript V5.

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.