Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect ATR Calculation when same dataframe being passed with new rows #14

Open
RajeshSivadasan opened this issue Apr 27, 2020 · 1 comment

Comments

@RajeshSivadasan
Copy link

if not 'TR' in df.columns:

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
Copy link

hah...correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants