It has been an exciting week with all the attention and engagement that this project has gotten so far. The small community around this Binance trading bot is now at over 500 people strong on discord at the time of writing.
With many people testing, coding and proposing new features, there have been several performance updates and quality of life improvements to the tool. Thank you to all the devs involved that got involved with this project and every one who has been testing it.
In this article, I’m going to highlight two new features for this bot, by focusing on how they work and how you might want to further customise them.
But first…
If you just came across this project, The Binance Volatility Trading Bot is a tool which is supposed to detect potential moonings across all coins on Binance, and buy in when the market conditions predict an uptrend. Please be advised that this is still very much in the experimental phase, so there is no conclusive performance data yet. Luckily the bot has a simulated trading mode, where different strategies can be tested without real money.
Another caveat before we jump into it: this bot is built in Python, and must be run from Python so a bit of technical know-how is required, though more user-friendly version is being considered.
Download the Binance Trading bot
Head over to the Binance Trading bot Repository on GitHub and download the source code to get started. Naturally you will need a Binance API key and secret, so if you don’t have a Binance account or you prefer using a dedicated account for this bot, you can use my referral link to reduce your commission fees by 5%.
For a general guide on how to download, run and configure your bot, have a look at the previous article. The scope of the current article is to provide a more in-depth explanation on the added features and how they can be customised to further tweak your bot.
Running external modules on your Binance trading bot
The recent update has introduced the option to run custom signalling indicators for the bot. These are external scripts that are executed inside the main code, but will run in a separate thread, meaning they shouldn’t impact the overall performance in the execution speed.
Signalling modules
Signalling modules are used to send a buy signal to the main script, when the technical analysis detects a bullish pattern. Right now these modules are built on the tradingview-ta library.
The configuration for signalling modules live inside the modules themselves, because they have to operate independently of the master configuration.
Go ahead and open the file signalsamplemod.py. After the imports you will see a few customisation options. This particular module is customised to send a buy signal when any coin in signalsample.txt shows overall bullish signs.
The signal confidence is dictated by the MY_FIRST_INTERVAL, MY_SECOND_INTERVAL and TA_BUY_THRESHOLD. In this example, a buy signal is only sent if at least 18 out of 26 indicators are agreeing on a bullish movement for both 1 and 5 minute intervals. This already gives you the freedom to fine-tune external signals for further testing.
With these parameters in mind, the next snippet inside the analyze() function is what decides which signals are positive and which are not. Data is written to a file which is then picked up by the main script.
If you’re keen to build and customise your own signals, you can use the signalsamplemod.py as an example to pull through other financial signals. Please see the documentation for the tradingview-ta library.
For an example on how to use custom indicators, see custsignalmod.py
In this module, we’re by default sending a buy signal to the main script if 2 of the 3 Indicators OSC_INDICATORS = [‘MACD’, ‘Stoch.RSI’, ‘Mom’] are bullish along with both moving average indicators MA_INDICATORS = [‘EMA10’, ‘EMA20’]. For more indicators, see the tradingview-ta library.
Pause module
The latest update comes with a pause module, that analyses the market and stops the main script from buying when market conditions are bad.
This module is also built on the Tradingview API and will pause the Binance trading bot from buying if the above conditions are met. By default, the module is looking at the 15 moving average indicators for BTCUSDT in a 1 minute timeframe. If at least 7 agree that the last minute is bearish, the bot will not buy. You can, and should test different variations to compare results.
Once you have fine-tuned existing indicators, or created brand new ones, go ahead and open the config.yml file and drop your indicator’s file name under SIGNALLING_MODULES as shown below:
That’s it, keep an eye out for more updates! If you want to get involved in testing/ developing for this project join our Discord.
Hello,
I love when coding tries to beat traders:). I believe these lovely things you develop. It is a pleasure to try it. I am a little bit confused:
signalsample.txt contains the coins which are analyse to check the bullish pattern? The bot will buy the coin from the sample list which is in a bullish run based on the indicators, or gives a sign the buy coins from the tickers.txt list. What it the correlation between signalsample.txt and tickers.txt
Thanks
tickers.txt can be used to limit the number of coins that will be traded to the top 100 by marketcap. Setting USE_CUSTOM_LIST to False in the config file would disable that option
Hi Andrei
IF a more user friendly version of the BVT Bot was available it would be a brilliant solution for people like myself!. I have spent most of the weekend trying to activate the bot on both my local machine and MANY different online resources, all have completely failed. I have no working knowledge of Python….so it is completely frustrating me!.
Regards
Kevin
Hey Andrei,
very nice project. Buying works pretty fine, but when the algorithm tries to sell coins due to reaching TP or SL it says: APIError(code=-2010): Account has insufficient balance for requested action. Apparently there is missmatch between the amount the algorithm wants to sell and the amount I have on my balance. It says that for all 7 coins the alogrithm bought. I checked my Binance fees as described: 0,075% is checked. Do you have any ideas why this doesnt work properly?
Best regards
Andreas
Hi there, thank you. Yes the bot requires you to have some BNB in your Binance account and to enable the option to pay your fees using BNB.
DUDE I LOVE THIS! I am testing away. I am sorry I missed one thing. Where can I get a list of all the OSC indicators and all the MA indicators that can be added? Also on the singalsample where can I see what those indicators all are (the 26 of them). This is so awesome. So far not making anything in test but just playing around.