OPEN-SOURCE SCRIPT
Atualizado

NSDT Trend Candles

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.
Notas de Lançamento
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.
Notas de Lançamento
Updated code to Pinescript V5.

Aviso legal