OPEN-SOURCE SCRIPT

Minimum Average True Range

I use ATR a lot when designing trading strategies, this way the strategy adjusts to the instrument in most cases instead of me plugging in special numbers.

However, ATR itself could get spiked by some violent moves. For this I have created MinATR which I am publishing here.

It is effectively ATR + minimum ATR over the last "Min Length" bars. (this is a parameter which I have defaulted to 50).

So use this the same way you use ATR, but it will also show the min ATR over the last "Min Length" periods.
ATRAverage True Range (ATR)sizing

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Follow me for some interesting Risk:Reward ideas. I have a purely technical analysis approach. I mainly watch and trade US stocks that have weekly options. This is not an investment advice, do your own due diligence.
Also on:

Disclaimer