BitMEX-simple-trading-robot icon indicating copy to clipboard operation
BitMEX-simple-trading-robot copied to clipboard

Something Went Wrong

Open cryptoStrategy opened this issue 5 years ago • 4 comments

I have edited the strategy, and the prediction is printing but order are not placed. I am not using ta-Lib, created functions for indicators. Screenshot (63) Screenshot (64)

Also if this get fixed, how can run it on a 15min candle, as it is invalid bin size.

cryptoStrategy avatar Jun 01 '19 07:06 cryptoStrategy

Hi, please can you share your code. Thanks

imranzaman5202 avatar Jun 09 '19 07:06 imranzaman5202

image

please can you help me to resolve this issue

imranzaman5202 avatar Jun 09 '19 07:06 imranzaman5202

Hi I have stopped using the talib library, it is very old and it didn't worked for me.

https://github.com/bukosabino/ta use this one instead. Let me know if you face any problem.

You can shoot me a mail at [email protected]

cryptoStrategy avatar Jun 09 '19 08:06 cryptoStrategy

Hello, I have the same problem in ubuntu 20.04:

/usr/local/lib/python3.8/dist-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn(

But I found that it does not affect the operation of the bot:

davidcreus@luxembourg:~/Documents/github-projects/BitMEX-simple-trading-robot$ python3 main_loop.py

/usr/local/lib/python3.8/dist-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn(

Last prediction: -1 /usr/local/lib/python3.8/dist-packages/bravado_core/spec.py:462: Warning: guid format is not registered with bravado-core! warnings.warn( Last prediction: 0

It is now working properly with the testnet.bitmex.com api. We'll see how it works in a month. I highly recommend installing the talib library by compiling it by hand and then installing

Linux Download ta-lib-0.4.0-src.tar.gz and:


$ tar -xzf ta-lib-0.4.0-src.tar.gz
$ cd ta-lib/
$ ./configure --prefix=/usr
$ make
$ sudo make install
$ pip3 install ta-lib

For Windows, follow this hand-compiled link at: https://github.com/mrjbq7/ta-lib

Regards!

davidcreus avatar Mar 26 '21 10:03 davidcreus