Git Product home page Git Product logo

binancebot's Introduction

Binance Bot

This is a pretty basic project. It consists of a bot that creates test orders in Binance based on TA4J indicators / strategies.

Quickstart

  1. Create a config.properties and include your setup (you wil need a Binance API Key / secret).
  2. Compile and package:
mvn clean compile assembly:single
  1. Run the generated JAR:
java -DLOGS_PATH=<PATH TO YOUR LOGS FOLDER> -DCONFIG_FILE_PATH=<PATH TO YOUR config.properties FILE> -jar binance-bot.jar

Strategies customization

The TA strategy is included in BinanceTa4jUtils class. I have just included one first strategy based on moving average (crosses of MACD, etc.). New TA4J strategies can be included there - you will need to modify public static Strategy buildStrategy(TimeSeries series, String strategyCode) method.

binancebot's People

Contributors

javieu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

binancebot's Issues

没有触发退出策略

发现BinanceBot 中,process() 方法 使用了continue ,导致不会触发退出策略逻辑
应该在continue,之前在调用一次checkSymbol(),当然这里只需要检查opentrade即可

Been working with your code

I don't know if you're interested, but I've been messing around with your code to include the backtesting of multiple strategies and also a WalkForward similar to what they have in the ta4j-examples. Both Backtesting and WalkForward compare the results for highest profit. I narrowed the testing to a single trading pair at a time. Also, I'm loading the different strategies and the trading pair from the config file. I haven't started officially trading on binance, but I've learned a lot about what strategies are more useful over which candlestick intervals. It seems to make a lot of difference. If you're interested, I'm happy to clean up the code and submit a pull request.

ta4j Version 12

first of all great work what you have done here - are planning to migrate this to ta4j version 12?
Ticks must be changed to bars...

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.