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.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?
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)