-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Sell Scenario
If there is enough balance for selling and the last buy price is recorded in the bot, then the bot will start monitoring the sell signal of the grid trade #1. Once the current price reaches the trigger price of the grid trade #1, then the bot will place a STOP-LOSS-LIMIT order to sell. If the current price continuously rises, then the bot will cancel the previous order and re-place the new STOP-LOSS-LIMIT order with the new price.
- If the bot does not have a record for the last buy price, the bot will not sell the coin.
- If the coin is worth less than the last buy price removal threshold, then the bot will remove the last buy price.
- If the coin is not worth than the minimum notional value, then the bot will not place an order.
Let say, if the sell grid trade configurations are set as below:
- Number of grids: 2
- Grids
No# Trigger Percentage Stop Price Percentage Limit price percentage Sell Quantity Percentage 1st 1.05 0.97 0.969 0.5 2nd 1.08 0.95 0.949 1
Unlike buy, the sell configuration will use the percentage of a quantity. If you want to sell all of your coin quantity, then simply configure it as 1
(100%).
From the last buy actions, you now have the following balances:
- Current quantity: 1.79
- Current last buy price: $83.80
Your 1st grid trading for selling is configured as below:
- Grid No# 1
- Trigger percentage: 1.05
- Stop price percentage: 0.97
- Limit price percentage: 0.969
- Sell amount percentage: 0.5
Let's assume the market changes as below:
- Current price: $88
As the current price is higher than the sell trigger price($87.99), then the bot will place new STOP-LOSS-LIMIT order for selling.
- Stop price: $88 * 0.97 = $85.36
- Limit price: $88 * 0.969 = $85.272
- Quantity: 0.895
Let's assume the market changes as below:
- Current price: $90
Then the bot will follow the price rise and place new STOP-LOSS-LIMIT order as below:
- Stop price: $90 * 0.97 = $87.30
- Limit price: $90 * 0.969 = $87.21
- Quantity: 0.895
Let's assume the market changes as below:
- Current price: $87
Then the bot will execute 1st sell for the coin. Then the bot will now wait for 2nd selling trigger price ($83.80 * 1.08 = $90.504).
- Current quantity: 0.895
- Current last buy price: $83.80
Let's assume the market changes as below:
- Current price: $91
Then the current price($91) is higher than 2nd selling trigger price ($90.504), the bot will place new STOP-LOSS-LIMIT order as below:
- Stop price: $91 * 0.95 = $86.45
- Limit price: $91 * 0.949 = $86.359
- Quantity: 0.895
Let's assume the market changes as below:
- Current price: $100
Then the bot will follow the price rise and place new STOP-LOSS-LIMT order as below:
- Stop price: $100 * 0.95 = $95
- Limit price: $100 * 0.949 = $94.9
- Quantity: 0.895
Let's assume the market changes as below:
- Current price: $94
Then the bot will execute 2nd sell for the coin.
The final profit would be
- 1st sell: $94.9 * 0.895 = $84.9355
- 2nd sell: $87.21 * 0.895 = $78.05295
- Final profit: $162 (8% profit)
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.
The bot is integrated with TradingView technical analysis page.
If you enable forcing sell when the TradingView recommendation is 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.
This program is in no way associated with Binance It's merely a humble program, trying to improve on perfection. Use of this program is at your own risk, no responsibility is taken from either Binance or the developers of this program.