Oct 18, 2024
Hi Dan,
Thank you for your thoughtful question and for taking the time to read the article!
You're absolutely right – the atr = tr.rolling(1).mean() line doesn't contribute anything useful, as a rolling mean with a window of 1 just returns the input.
We appreciate your sharp eye, and this is something we'll correct right away.
Thanks again for pointing this out!
-EODHD Team