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

The code is running for a whole day but nothing is bought or sold. do you have the same issue? #13

Open
jamod opened this issue Nov 26, 2021 · 3 comments

Comments

@jamod
Copy link

jamod commented Nov 26, 2021

Hi,
i let run the code for a full day and it does not buy or sell ETH.
I did not change any line of code except the api key and api secret.
I can see in the python output console, the code is running and get data every 2 seconds.
i see when the candle is closed etc but nothing is happening.
Also i'm trying from Canada.
Thank you

@abhinavslohiya
Copy link

I do have the same issue, I cant figure out the problem.

@hlairboltons
Copy link

same, I get RSI values, but when overbought or undersold value, the conditionals don't print ("Buy buy buy"!) or execute the trade.. It just moves onto the next loop cycle

@anzileiro
Copy link

anzileiro commented Sep 30, 2023

Hi @abhinavslohiya, @hlairboltons and @jamod, I also had the same issue.

What I did was trying to know how the code is working. So I discovered that it works lazy because the code expects len(closes) be greater than the RSI_PERIOD which is 14.

Try to debug it adding

print("len closes")
print(len(closes))

And waits for closes array length be greater than the RSI_PERIOD. After that your bot will be able to calculate the LAST_RSI.

Also try to change the RSI_OVERBOUGHT = 60 and RSI_OVERSOLD = 40 because of the Binance API high latency from their servers to your machine. I figure out that it could take imprecise calculations from the real time websocket. Making some difference from the Binance's graphs and my bot.

Screenshot 2023-09-30 at 15 39 11

Best,

AA.

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

4 participants