ASP96 / CryptoShloma

Algorithmic trading bot for Binance exchange

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CryptoShloma

Logo
CryptoShloma is algorithmic trading bot for Binance exchange.

Algorithmic trading based on set quantity of clever steps, when bot buys selected cryptocurrency to reduce first buy price. There are 2 tables with percent for all steps, 1st is percent of start price loss to activate step, 2nd is percent (which always lower, then 1st) of start price loss, when bot will buy crypto (it happens only when price is growing).

When cryptocurrency is growing, bot takes profit. When falls, dont loosing money. :)

If you have a question, welcome to Telegram

Hannukah trading algorithm

  • Step 0: The position averaging table is set in advance for a certain number of steps and the maximum number of additional purchases on price rebounds.
Drop ( % ) Rebound (%)
3 2
6 3
11 7
17 12
23 17
30 21
33 27

The first column indicates the % drawdown of the asset, the second column indicates how much % the asset should grow from the % fall, after which the asset is bought up and the position is averaged. The values are arbitrary.

  • Step 1: The selected asset is purchased (long) for volume X.

  • Step 2: A sell order is placed at the specified % of profit.

  • Step 3: If the price went above % profit and the order was triggered, then return to step 1 and constantly re-enter.

  • Step 4: If the price touches the drop value from the table (column 1), then the step with the value is fixed and then the rebound value (column 2) is expected from the % drop (column 1).

  • Step 5: If the price has increased by % of the rebound for this step, then there is a purchase on the market (we get in the end on the balance X*2), and re-placing a sell order at the average price.

  • Step 6: If the price has fallen below, and touched the % drop of the next step lower in the table, then go back to step 4, the bot starts working with the next pair of digits from the table, and so on, but can not go to work with the previous values.

  • Step 7: If the price has passed below the % of the last drop step from the table, then alas, here you can fix a loss or leave the current sell order.

  • Step 8: If there was a multiple averaging of a position on one cycle (i.e., a drop, a rebound, a drop lower by one step, then a rebound again), then each additional purchase of a position occurs for the entire previous volume of previously purchased positions * 2.

Binance Spot account

To connect your account, you need to generate a public and private key in your personal account and input the keys in the bot settings. The bot only works for your spot account.
How to create API keys for Binance
Binance API account settings

Compilation depends

  • Qt 5.12.10 (min Qt 5.12.8 you can setup manually in cmake file). Not recommended version above (minor) 5.12 release due to bugs in the QWebSockets (you can catch SIGFAULT).
    You only need to install Qt 5.12.10 Prebuilt Components for Desktop in Qt MaintenenceTool, all modules are not necessary.
  • OpenSSL 1.1 (installed from Qt MaintenenceTool)
  • CuteLogger (forked version, build included in project)

Platforms

  • Windows 10 x64(x86)
  • Debian 10 (Ubuntu 18,20)

CMake options

-DQt5_DIR="path to Qt cmake files" (required) - path to Qt framework
-DCuteLogget_STATIC=ON/OFF (optional, OFF default) - build library for static or shared linking
-DOPENSSL_CRYPTO_LIBRARY="path to file" (required) - path to libcrypto.so (libcrypto.dll for WIN)
-DOPENSSL_INCLUDE_DIR="path to dir" (required) - path to openssl headers

Roadmap

  • Release Windows binary installer
  • Release Linux deb installer

To be continued...

About

Algorithmic trading bot for Binance exchange

License:GNU General Public License v3.0


Languages

Language:C++ 81.5%Language:QML 14.5%Language:CMake 3.6%Language:Qt Script 0.2%Language:QMake 0.1%Language:JavaScript 0.1%Language:Shell 0.0%