Skip to content

Buy Scenario

chrisleekr edited this page Oct 30, 2021 · 4 revisions

Read README.md first

I assume you already read README.md how it works with buy signal.

https://github.com/chrisleekr/binance-trading-bot#buy-signal

Configuration in-depth

Minimum purchase amount

When the quote asset is less than the minimum purchase amount, the bot will not place an order.

Maximum purchase amount

When the quote asset has more than the configured maximum purchase amount, the bot will place an order with the maximum purchase amount.

For example, if you configure the maximum purchase amount for 100 USDT, the bot will place an order with 100 USDT if you have more than 100 USDT.

But if you have a quote asset between the minimum purchase amount and the maximum purchase amount, the bot will place an order with an available balance.

For example, if you configure the minimum purchase amount to be 40 USDT, the maximum purchase amount to be 100 USDT and you have 55 USDT, then the bot will place an order with 55 USDT

Last buy price removal threshold

Binance has a specific amount that allows placing an order. For example, BTCUSDT symbol has the minimum notional value of 10 USDT. If your base asset does not worth 10 USDT, then Binance will reject the order.

In some cases, you purchase a minimum notional value worth of the coin like buying exact 10 USDT. If you configure the last buy price removal threshold as 10 USDT, then the bot will remove the last buy price record and start monitoring the buy signal. After some period later, the price may go up and but the bot already remove the last buy price record; hence, you lost the chance of selling the coin via the bot.

To prevent this case, the bot is allowing the trader to set the last buy price removal threshold. If you configure to be like 5 USDT with the above-mentioned case, the bot will not remove the last buy price until the coin is worth less than 5 USDT.

Buy restriction with All-Time High

If you enable this option, the bot will not place an order if the current price is higher than the restricted price.

The bot is retrieving the ATH price based on your configuration. For example, if you set the 15m interval and the 30 limit, then the bot will retrieve 30 candles with a 15m interval and calculate the highest price.

And the restriction price will be calculated based on your configuration Restriction price percentage.

Let say, the highest price was 10000 and the restriction price percentage is 0.94, then if the current price is higher than 9400, then the bot will not place an order.

TradingView

The bot is integrated with TradingView technical analysis page.

If you enable to allow buy trigger when the recommendation is Strong buy, then the bot will only place an order when the recommendation is Strong buy. Same for the Buy option.

However, in some cases, the bot will ignore TradingView technical analysis such as:

  • When there is an override data to place a buy order like placing a manual order
  • When TradingView data is not available
  • When TradingView data is old based on the configuration TradingView -> Use data only updated within

It will only validate TradingView technical analysis such as:

  • When there is no override data
  • When TradingView data is valid
  • When TradingView recommendation is Strong buy or Buy if allowed