OPEN-SOURCE SCRIPT
EMAs 20/50/200 with Trend Coloring

It calculates EMA 20, 50, and 200.
For each EMA, it compares the current value with the previous bar (ema > ema[1]).
If rising → green, if falling → red.
All three EMAs are plotted with different colors dynamically changing by slope.
For each EMA, it compares the current value with the previous bar (ema > ema[1]).
If rising → green, if falling → red.
All three EMAs are plotted with different colors dynamically changing by slope.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
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.