Incorrect ATR Calculation when same dataframe being passed with new rows
Opened this issue · 1 comments
RajeshSivadasan commented
Technical-Indicators/indicator/indicators.py
Line 163 in c3f9e09
Consider removing the above line as TR is not calculated if same dataframe is passed with new rows as it happens in realtime situation. Hence ATR gets calculated incorrectly. I am calling ST / ATR post creation of each 2 min candle (dataframe row), so every 2 mins ST / ATR function gets called with new dataframe rows appended.
debdipta commented
hah...correct