haymaker icon indicating copy to clipboard operation
haymaker copied to clipboard

ATR calculation?

Open jamesliu1 opened this issue 5 years ago • 1 comments

It seems that atr() function in indicators.py uses the current close (instead of the previous close) to calculate "B" and "C" In this case, "A" is always the max value. Is this intentional or just a typo? thanks.

https://en.wikipedia.org/wiki/Average_true_range

jamesliu1 avatar Jun 16 '21 13:06 jamesliu1

You're right. It was a stupid error. It's fixed now. Thanks for bringing it up.

t1user avatar Jun 17 '21 11:06 t1user