Skip to content

Features

chrisleekr edited this page Nov 20, 2022 · 14 revisions

Trailing Trade

The bot is using the concept of trailing buy/sell order which allows following the price fall/rise.

Manual trade

The bot is supporting manual trade per symbol and all symbols. It will automatically re-calculate the last buy price if exists.

Convert small balances to BNB

The bot is supporting dust transfer to convert balances with a valuation below 0.0003 BTC to BNB once every 6 hours.

Trade all symbols

The bot is supporting trades for all symbols such as ETHBTC, XRPBTC. As a result, the maximum purchase amount configuration has been updated in the global configuration.

The max purchase amount now can be configured for the quote asset. The quote asset is the coin you use to buy the base asset. For example, for BTCUSDT, BTC is the base asset, USDT is the quote asset.

In the global configuration, you would see a field for "Maximum purchase amount for USDT". If you configure this, any newly added symbols, which uses USDT would be applied for the configured maximum purchase amount.

A default value will be dynamically calculated based on the symbol's minimum notional value.

Monitoring multiple coins simultaneously

The bot is monitoring all coins every second. However, updating the indicators for the symbol cannot update every second because of the API limit. As a result, I had to introduce the lock mechanism for the symbol. The frontend will display the lock icon when the symbol is updating the indicators in the background. During updating the indicators, the bot will not process the order.

If interested, take a look at this PR #77

Stop-Loss

The bot is supporting Stop-Loss for preventing the loss than configured. In the configuration, you can enable Stop-Loss and set the maximum loss percentage along with the minutes of disabling buying action. The bot will calculate the Stop-Loss trigger price based on the last buy price.

For example, let's assume it is configured Max loss percentage to be 0.8 and Temporary disable for buying to be 60. The last buy price is $100. Then the bot will calculate the Stop-Loss trigger price as $80. When the current price reaches $80, the bot will place the market order.

At the moment, the bot only supports the market order.

Restrict buying with ATH price

The bot is supporting to prevent buying action when the buy trigger price is higher than the ATH price. In the configuration, you can enable "ATH Buy Restriction" and set the interval and limit for calculating the ATH price.

For example, let's assume you have configured as below:

  • ATH Buy Restriction Enabled: true
  • Interval: 1d
  • Limit: 30
  • Restriction price percentage: 0.8

And the market is as below:

  • ATH price: $150
  • ATH restricted price (-20%): $120
  • Trigger price: $129
  • Current price: $130

Then the bot will not place an order as the current price ($130) is higher than ATH restricted price ($120).

And the market changes as below:

  • ATH price: $150
  • ATH restricted price (-20%): $120
  • Trigger price: $120
  • Current price: $119

The bot will place an order as the current price ($119) is lower than the trigger price ($120) and ATH restricted price ($120).

This strategy will help to avoid buying the coin with the highest price.

If interested, take a look at this issue #82.

Thanks, @habibalkhabbaz for the contribution!

Secure frontend with password

The bot can now be protected by the password. It provides two methods to protect the frontend: Show password screen, protect the list Display the list, but protect the actions The bot uses JsonWebToken to authorise the frontend and the server.

To use the password authentication, firstly, configure the following configurations in the .env file before launching the docker-compose.

## Authentication
BINANCE_AUTHENTICATION_ENABLED=true
### Please set your own password.
BINANCE_AUTHENTICATION_PASSWORD=123456

Once you launch the bot, you will see bot options, which you can set lock list in the frontend global setting. Lock List: If enabled, the bot will show the login screen before showing the list. If disabled, the bot will display the list, but all actions will be disabled. To unlock, click the icon on the top right. Lock after: Set the minutes to allow authentication. Once the time passes the configured minutes, the bot will be automatically locked.

TradingView Technical Analysis

The bot is integrated with TradingView Technical Analysis to be able to buy/sell based on the recommendation.

To know how it works, here is a detailed explanation based on the options.