Tamás Deák

Tamás Deák

Web Developer

Crypto scalper bot


Scalper bot

  • Platform: Linux (or WSL)
  • Language: C++
  • Other used: --


Simple trading bot written in C++, using the 7, 25, 99 moving average (MA) indicators to trade cryptocurrencies on exchanges.


There are lots of trading bots all around the internet. Some are free. Why another one? Why C++? Why text based?

Because it's a good project to deepen my experiences with C++, it will need some networking, some file handling, and also I already have a usable display "engine" to draw things on screen.

And I wonder if this scalping technique will work or not. :)


The bot uses Binance API for getting prices, and calculating the 7,25,99 moving averages. It follows a very simple strategy:

  • when price is below the MAs -> buy
  • when above -> sell

It can handle (in theory) infinite number of simultaneous trades, each one is individually configurable. You can set how quickly it reacts to up/down price changes, what is the minimum profit to earn, and how much do you want to allocate for trades. Inverted trading is planned in the future (BTC-USDT - USDT-BTC)

By deafult it uses 15min candles with BTCUSDT pair globally, but it's also configurable.


The bot displays all important information in one screen. The largest part is the current price, and the MAs. (Larger image)

Trading bot display

Below that is a line with green and (currently not shown) red arrows that shows the points where the price was above/below the moving averages:

Trading bot display

There is an indicator for the current price, to see it's position relative to all MAs, and at the right side it shows how long this condition has been lasted.

Trading bot display

In this case the current price is above all of the MAs.

The bot is configured to have 3 "threads", with a "reaction time" of 3, 5, 7 candles. The first one shows it's a perfect time to sell what we have, because in the last 45 mins (3x15) the price was above the averages. If it lasts to 75 mins (5x15), the second indicator will show a SELL signal too.

And the same goes when the price drops below the MAs (with BUY signals).


Currently it's in development stage, and it's only capable of indicating buy/sell, but it doesn't send real orders to exchange. (Signed order sending is tested, but not yet implemented)

DO NOT use it for trading! You can lose your money if something goes wrong!

Feel free to try it out, check the webpage for more infos about installation/configuration. Please note, the documentation is still under construction.