cmharkey

Moving Average of Average True Range - EMA ATR

So I came across the need of wanting to smooth out the ATR of something that has some violent swings in it in order to better place some stops.

Simply put the output of the ATR into the EMA function.
Everything is labeled easily in the settings window you you can clearly change period length for each function.
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?
study(title="EMA Average True Range", shorttitle="EMA-ATR", overlay=false)
length_ATR = input(14, minval=1, title="Length-ATR")
len_EMA = input(9, minval=1, title="Length-EMA")
plot(ema(rma(tr, length_ATR), len_EMA), color=red)