-
Notifications
You must be signed in to change notification settings - Fork 1.2k
How It Works
See detailed buy 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)
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.