AminHP / gym-anytrading

The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
MIT License
2.09k stars 459 forks source link

stocks env maximum frame_bound is 2335 #58

Closed ArtemDubrovin closed 2 years ago

ArtemDubrovin commented 2 years ago

Am I doing something wrong or is the maximum frame_bound not bigger than 2335? This has the same size like the google_stocks.csv in data. But I want to work with a frame_bound bigger than 2335. What can I do to avoid this error? I checked already envs/stock_envs.py but couldn't find the problem. Can you help to fix this please.

IndexError: index 3855 is out of bounds for axis 0 with size 2335

ArtemDubrovin commented 2 years ago

There seems to be the problem when you try to import the data with yfinance. When you use a csv there is all ok.