Skip to content

Sell Scenario

chrisleekr edited this page Oct 30, 2021 · 6 revisions

Read README.md first

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

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

Configuration in-depth

Sell Stop-Loss

The bot is providing the stop-loss feature only if you enable it.

There are two configurations for the feature:

  • Max loss percentage
  • Temporary disable for buying

After placing the order, the bot will disable the action to avoid buy and sell because falling the price is expected. If you set the temporary disable for buying as 60, then the bot will disable the action for 60 minutes. After 60 minutes later, the bot will resume monitoring for the buy signal.

Let say, if the sell Stop-Loss configurations are set as below:

  • Max loss percentage: 0.90
  • Temporary disable for buying (minutes): 60

And the market is as below:

  • Current price: $95
  • Last buy price: $100
  • Stop-Loss price: $90

Then the bot will not place a Stop-Loss order because the Stop-Loss price ($90) is less than the current price ($95).

If the price is continuously falling, then the bot will keep monitoring until the price reaches the Stop-Loss price.

In the next tick, the market changes as below:

  • Current price: $90
  • Stop-Loss price: $90

The bot will place a new MARKET order for selling because the current price ($90) is less or equal than the Stop-Loss price ($90). In real trading, the quantity may be different.

The bot will also set the symbol to be temporarily disabled for 60 minutes to avoid buying/sell continuously. In the frontend, the action will display the pause icon and how long left to be enabled again. The symbol can be enabled by clicking the play icon.

TradingView

The bot is integrated with TradingView technical analysis page.

If you enable forcing sell when the TradingView recommendation is Netural, Sell or Strong sell, then the bot will place a MARKET order to sell all your balance.

However, the bot will only execute the forcing sell feature based on the TradingView recommendation if:

  • When TradingView data is valid
  • When the current profit is more than 0
  • When the current price is less than the trigger price
  • When the coin is worth more than the minimum notional value

So for example, if you bought the coin at 10000 USDT and at that time, the TradingView recommendation was Buy. The coin is going up for some time. However, before reaching the trigger price, if the TradingView recommendation changed to Sell, then the bot will place a MARKET order and wait for the next buy signal.

You should know:

  • After placing the market order, the bot will not disable the action as the stop-loss feature do.
  • It can cause a loss on your profit.
  • If the auto-trigger buy action is enabled, then the bot will attempt to place a buy order.
  • The market sell will be considered as Stop Loss in the close trades.
Clone this wiki locally