Recently I've been playing around with Quantopian/Zipline building a library of indicators I might find useful in the future. I came across the previous implementations of ATR shared, and thought I'd share my own stab at it, both iteratively in a custom event window and using a batch transform.
Happy Hacking!
7-11
Previous Posts:
https://www.quantopian.com/posts/average-true-range-basic-implementation
https://www.quantopian.com/posts/python-classes-implementing-true-range-and-average-true-range-indicators