Giter Club home page Giter Club logo

Comments (3)

abhinavslohiya avatar abhinavslohiya commented on August 16, 2024

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

from binance-tutorials.

hlairboltons avatar hlairboltons commented on August 16, 2024

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

from binance-tutorials.

anzileiro avatar anzileiro commented on August 16, 2024

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.

from binance-tutorials.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.