markusaksli / tradebot Goto Github PK
View Code? Open in Web Editor NEWCrypto trading bot using Binance API (Java)
License: GNU General Public License v3.0
Crypto trading bot using Binance API (Java)
License: GNU General Public License v3.0
Would you consider switching to official Binace Java API https://github.com/binance-exchange/binance-java-api instead of outdated and not maintained webcerebrium repository?
But other then that interesting project, good job!
As I understand it, before we can backtest, it would be necessary to use the collect function first.
but then this problem happens:
collection
---Entering collection mode
---No backtesting files detected
Enter collectable currency (BTC, LINK, ETH...)
BTC
Invalid symbol.
BTCUSD
Invalid symbol.
IT DOESN'T MATTER WHICH SYMBOL I PUT THE RESULT THAT I SEE INVALID SYMBOL
Incorporate the bot functionality into a graphical interface instead of the current console app solution. Depending on the chosen framework this could be built into an app or web app as well as a desktop application.
The timer starts at the mode selection as it does for simulation but since there is a wait for input this isn't accurate.
Originally discovered in #22
This should be reigned in by implementing the commission, a delay for trades, API limits for opening trades, and maybe some estimation for spread during backtesting.
Can it run on linux?
Currently, the bot simply uses 100% of the available funds in the account it gets access to and treats all of the currencies as open trades (opened at the price at the time of launching). The bot will not remember any of the trades it opens and depends entirely on the information from Binance.
This is not ideal for a number of reasons. This could be reworked to both limit the scope of the bot and to more accurately track the stats on the open trades. This would require the implementation of:
Is there an updated config.txt file anywhere? Or a place where i can find some?
I'm not 100% on how to make my own and the current one takes a LONG time to find an order [ been 19hours for me ]
RSI check is baddly computed as it cannot return -2 because temp > NEGATIVE_MIN (70 by default) is computed before temp > NEGATIVE_MAX (80 by default)
RSI.java line 93
Reverse the 2 tests
How should I run it on macOS?
Not sure why this happens yet, running the java code from IDEA or a built JAR is fine but the packed executable replaces -
with ?
in both console and log files.
Describe the bug
As per the title, the current EXE doesn't run when the JRE is not present, further more I have installed Java 11 JDK and it doesnt recognise that either (though that may be my system/java setup)
To Reproduce
Steps to reproduce the behavior:
Download EXE
Run Tradebot.exe
Program prints "TradeBot: This application requires a Java Runtime Environment 1.8 - 12"
Logs
TradeBot: This application requires a Java Runtime Environment 1.8 - 12
Desktop:
The TradeBot is a great bot - great job but I can't get it running since 06/24/2021. The console opens and nothing appears even after a long wait. Previously, it worked very well. I checked on various operating systems such as Windows 7 x64, Windows Server 2012, Linux Mint 19. JAVA version - 1.8.0_291-b10. Please help.
Hi,
First of all, really great work!
I have a substantive question. What does Confluence mean in this context?
Best Stefan
Backtesting files should include the symbol, number of entries, start timestamp, and end timestamp at the start of the file to include some information to identify the data. This also allows the files to be renamed without losing functionality.
hello team
i think that binance takes high fees which will affect the profit number
can you add total of binance order fees and no. of orders made to get this profit
First of all I would like to thank you for your dedication to creating this BOT that for the short time I tested it seems to work well and even stable.
I would like to know if it is possible to just activate one indicator instead of having 3 to activate constantly.
That is, instead of having the 3 (BB, MACD and RSI) just activate the purchase with one that I define, be it MACD, SMA or any other.
Another thing is whether it is possible to change the time chart from 5 to 15 minutes or 1 hour.
Thanks .
consider adding kdj?
Hello. Thanks for your software. There was a problem using from backtest. After creation, the program does not find it, despite the fact that it is physically created in the directory. Example:
Enter bot mode (live, simulation, backtesting, collection)
backtesting
---Entering backtesting mode
Backtesting data files:
[1] MATICUSDT_2021.01.01-2021.03.20.dat
[2] MATICUSDT_2021.03.01-2021.03.20.dat
Enter a number to select the backtesting data file
---Setting up...
java.io.FileNotFoundException: backtesting\MATICUSDT_2021.01.01-2021.03.20.dat (Нет такого файла или каталога)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.(FileInputStream.java:157)
at java.base/java.io.FileInputStream.(FileInputStream.java:112)
at data.PriceReader.(PriceReader.java:10)
at trading.Currency.(Currency.java:85)
at modes.Backtesting.startBacktesting(Backtesting.java:51)
at system.Main.main(Main.java:80)
java.lang.NullPointerException
at trading.Currency.log(Currency.java:187)
at modes.Backtesting.startBacktesting(Backtesting.java:68)
at system.Main.main(Main.java:80)
Testing failed, try again
Rework the entire current codebase to be essentially a backend instead of the current basic console app standalone solution.
log4j
This is the prerequisite for #8. This means the console exe with launch4j can be replaced with a different front-end. Once this is done the bot backend could also be entirely detached from the local executable, run as a server, and communicate via API responses.
Full log now just contains trades and 5min timestamps for some reason
FULL LOG:
2021/04/01 00:04:59
2021/04/01 00:09:59
2021/04/01 00:14:59
2021/04/01 00:19:59
2021/04/01 00:24:59
2021/04/01 00:29:59
2021/04/01 00:34:59
2021/04/01 00:39:59
2021/04/01 00:44:59
2021/04/01 00:49:59
2021/04/01 00:54:59
2021/04/01 00:59:59
2021/04/01 01:04:59
2021/04/01 01:09:59
2021/04/01 01:14:59
2021/04/01 01:19:59
2021/04/01 01:24:59
2021/04/01 01:29:59
2021/04/01 01:34:59
2021/04/01 01:39:59
2021/04/01 01:44:59
---2021/04/01 01:46:01 opened trade (0.1702 BTCUSDT), at 58757.950, Trade opened due to: MACD histogram grew by 51.027%
2021/04/01 01:49:58
Is there an executable? Thanks!
Config needs values for how much each indicator contributes to confluence.
How about opening a discord channel in order to discuss about new features, strategies ?
The currency websockets will disconnect after 24h, causing trading activity to stop.
If there is no balance, then it will be infinite: ---Out of funds, cannot open trade!
Make a one-time warning about the lack of balance.
And let the bot stop trying to buy more. Thanks
Describe what you would like to be changed, added, or improved.
İ have very kompleks algorıthms works very well manually.
İf you ınterested on that we can do it together.i don't know coding
Describe what you would like to be changed, added, or improved.
the bot must run 24/7 or it works also if the pc is turned off or the application is closed?
I'm not a big fan of stop loss.
I like more to buy in a new uptrend. Think it's a good feature for your bot...
There needs to be a method to reload the config on the fly for both the current bot and keeping the direction of the project in mind.
Current Behavior:
When launching bot in simulation mode, user is presented with a series of commands.
Expected Behavior:
Update config with an explanation of the commands for simulation mode. Currently unclear as to how to accurately test the bot.
First of all I want to congratulate you on your work! .. I wait for the new update impatiently!
I have been testing the bot many times in simulation mode and it seems to work quite well and is stable.
But now I am starting to test it with real money and it does not execute the orders, the problem is that it remains frozen for hours with the following text "placing a buy market order for XXX / XXX active"
I have tested it with various currency amounts from 1 to 12 and I always get the same. API keys are correct, what can happen?
On the other hand, what is the maximum number of currencies you recommend per bot? ... for the new version it is possible to change the time intervals of the candles between 1m to1D? it would be fantastic!
Describe the bug
does this support us tld?
Proposed fix
config option for us tld
The windows exe is pretty handy but it shouldn't be too hard to make a script for UNIX as well
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.