Replies: 1 comment 1 reply
-
Could you open this on the bug tracker? AssertionError sure looks like a bug. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am seeing this error when try to run backtest with 10000 days worth data. It doesn't happen for all the stocks, but some. e.g AAPL, AMZN.
I tried printing the index values for each iteration and I found that for this dataset, it processed till index 1951 and failed on 1952.
If I reduce the backtesting period to 5000, it works because it doesn't come across that piece of data (index 1952). I checked that data and verified the close price, and calculated ATR(14).
Below is the code snippet:
I download data using yfinance python api. Any help will be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions