This page explains, in simple words, how the trading bot decides when to buy and sell, how it manages risks, and what techniques it uses to stay reliable.
1. Buying Process
Placing Buy Orders
- The bot places Limit Buy orders at the market price when a signal appears.
- The amount bought depends on the capital you assigned to that trading pair.
Tracking and Managing Buy Orders
- After sending a buy order, the bot waits ~60 seconds to see if it is filled.
- If filled, it updates your holdings and average buy price. If not, it cancels the order.
- The bot can retry after 60 seconds if the signal is still valid.
Safety Orders (DCA)
- If the price drops, the bot can place Safety Orders to average down.
- These are triggered at set percentage drops (e.g., 1%, 2%, 4%).
- Each safety order can be larger than the previous one, based on your settings.
- The bot checks your balance and ensures no Take Profit has already triggered before placing SOs.
2. Selling Process
Placing Sell Orders
- The bot can sell using Market Sell (immediate) or Limit Sell (waits for price).
- If a Limit Sell isn’t filled within 60 seconds, it is cancelled.
Types of Sell Strategies
- Static Take Profit (TP): Up to 3 profit targets. At each, the bot sells part of your holdings.
- Dynamic Take Profit: Uses market volatility (ATR indicator) to set profit levels.
- Trailing Take Profit: Follows the highest price reached. If the price pulls back by your set percentage (while still in profit), the bot sells everything.
- Stop Loss (SL): Protects you from big drops. Can be fixed % or based on volatility.
- Panic Sell: A manual button that sells everything immediately at market price.
3. When the Bot Buys
Base Order (First Buy)
- The bot checks the indicators you enabled (RSI, MA, MACD, ADX, Bollinger Bands, Volume).
- All conditions must be true at the same time before buying.
- If it loses 3 times in a row, it pauses that pair for 24 hours.
Safety Orders
- Placed only if the price keeps dropping after the first buy.
- The bot makes sure RSI is not too low (to avoid panic crashes).
- It also ensures no profit target has already triggered.
4. When the Bot Sells
- Sells when profit targets are hit (fixed or ATR-based).
- Sells everything if trailing stop is triggered.
- Cuts losses if stop-loss is reached.
5. Reliability Techniques
- Ensures order sizes/prices follow Binance’s rules.
- Checks market data before placing trades.
- Remembers your state (holdings, average price, TP/SL flags) even after restarts.
- Uses multiple price sources (live, candle, REST API) to stay accurate.
- Handles errors with retries and auto-reconnection.
- Logs all actions and errors into files.
✅ In short: The bot buys when your conditions align, averages down if prices drop, and sells with multiple strategies to secure profits or cut losses. It is built to be safe, flexible, and reliable.