Open mpetrishchev opened 1 year ago
Yeah, there are some changes in libraries versions. But mostly problem not in libraries, but that the Binance ban requests from servers that places in US (and Google Collabs servers placed in US), I didn't figure out how to fix this problem. Probably later.
The problem with the library version can be fixed the follow way. I've added the string (usage of numpy version 1.23 because 1.24 is not compatible):
!pip install --force-reinstall numpy==1.23
to the Setup section and now it works. But the next problem, you are right with the access to the Binance api. I've tried several ways that are described on forums but no luck.
Also I've tried to use data file that was exported from Tradingview. I have some errors in the data conversions. Can you provide the example of the file?
Thanks.
Uploaded csv from Tradingview with UNIX time. The next problem is in the "Run Strategy" section (see below). Data looks like ok (see below after the error message). Any idea how to fix it?
Exception Traceback (most recent call last) /usr/local/lib/python3.9/dist-packages/backtesting/backtesting.py in I(self, func, name, plot, overlay, color, scatter, *args, *kwargs) 126 try: --> 127 value = func(args, **kwargs) 128 except Exception as e:
11 frames talib/_func.pxi in talib._ta_lib.SMA()
talib/_func.pxi in talib._ta_lib.check_array()
Exception: input array type is not double
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
I've tried to run the file "sma_cross_backtesting_v1.ipynb" in Google Colab, but get an error due the exucution in the Setup section #3 (below). How it can be fixed?
RuntimeError Traceback (most recent call last) init.pxd in numpy.import_array()
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem .
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)