Skip to content

eXcroll/Binance-Futures-Indicator-Trading-Bot

Repository files navigation

Binance-Futures-Indicator-Trading-Bot

Paste your API_KEY, API_SECRET to the corresponding variables.

The bot trades on 2 indicators (can be changed in the code) RSI and BollingerBands by changing the variable POINTS_TO_ENTER = 2 (if needed uncomment lines of code with other indicators). You can set points to enter the transaction and more indicators, this strategy when the RSI value falls below 35 (oversold zone) now they are +1 on RSI and when the price crosses the lower Bollinger + 1 on BollingerBands bot buys Long/Short, the same logic for sale (when the price crosses the Bollinger SMA enter_points +1 realizes the profit and completes the Short/Long Market transaction).

Also implements a stop loss function and trailng stop, the code can be changed so that the sale takes place by any percentage (for example: the price increased by 2% - the sale of an asset) the percentage can of course be changed.
Bot is not 100% finalized, but it sometimes showed me profits, sometimes losses, it needs to be tested and configured, which I don't want do.
It would be even better to attach a database to it, but this is optional.

(This is a project where I studied and mastered c#, so the quality of writing code and methods may have a better implementation)

Attention! This bot is not finalized and not configured until the final, so be careful when trading on the stock exchange, I am not responsible for your possible financial losses.

If you have a delay of more than 1000 milliseconds, then set Time_Sync_Tool, otherwise the Binance API will reject your connection. Or download https://gunbot.shop/time-sync-tool-for-gunbot/

This project was created in Visual Studio 2022, DotNet-6.0
Press DEBUG to run the script
Indicators data was tested on Binance Tradingview terminal
The libraries used where:
Binance.Net-9.1.7 -JKorf, CryptoExchange.Net-6.2.1 -JKorf, Newtonsoft.Json 13.0.3, NLog 5.2.6, TechnicalAnalysis.Net 2.0.0
Install if needed the necessary dependencies before testing from NuGet

Indicators are implemented in this bot:

  • SUPERTREND
  • MACD
  • SMA
  • RSI
  • STOCH
  • BollingerBands
  • DonchianChannels
  • IchimokuCloud
  • AwesomeOscilator(Bill Williams)
  • and more...

When you get rich with the help of this bot and want to thank me, I will be very happy with any donation:
XRP: rJn2zAPdFA193sixJwuFixRkYDUtx3apQh
XRP Tag (memo): 500425854
LTC: LZS5oKRVDMwRwXnvwZvXHLiGnn9WkzZiwk