DCA Bot
A bot that buys again when the price drops.
For example, it buys a coin with 100 USDT. When the price drops 2%, it buys 150 USDT more, so your average buy price falls to 98.79 USDT. When the price rises 1.5% above that average, to 100.27 USDT, it sells everything and takes the profit.
This page is for information only. It is not investment advice and does not promise any return.
In short
What the DCA Bot is and when it helps
DCA means buying in several parts instead of all at once. When the price drops you buy the same coin cheaper, so your average buy price falls. The bot makes these buys for you, following the rules you set.
How a deal unfolds
- The bot makes the first buy: right away, when the price reaches a level you chose, or when a condition you picked occurs. In the example the first buy is 100 USDT at a price of 100 USDT.
- If the price keeps falling, the bot buys again at each price step (level) you set. Each level sits a set percentage below the first buy price, for example 2% and 4% lower. These buys are called safety orders.
- Every safety order pulls your average buy price (average entry) down. In the example, buys at 100 USDT and at 98 USDT average out to 98.79 USDT.
- When the price rises above your average buy price by the percentage you set (take profit), the bot sells everything. With a 1.5% take profit that is 1.5% above 98.79 USDT, or 100.27 USDT, so the price does not have to return to the first buy price. After that the bot opens a new deal or stops, depending on your setting.
When it helps
- It suits markets where the price moves up and down and recovers after dips, if you want to pull your average buy price down.
- It suits you if you want to know how much money each buy takes and see the whole plan before you start.
- With Short the bot works the other way round: it sells as the price rises, and your average sell price goes up. A short is a sale that gains when the price falls; it is available on futures only.
What to keep in mind
- If the price keeps falling for a long time, every level is bought and the deal can stay at a loss for a long time. The total money needed is far more than the first buy; the example plan starts with 100 USDT and grows to 2,078.13 USDT.
- If you do not set a stop loss, the bot keeps waiting at a loss and your money can stay tied up for a long time.
- With leverage on futures, you lose all the money you set aside for the deal (margin) if the price reaches the liquidation price.
There is no guarantee of profit
The DCA Bot does not promise a profit and does not prevent losses. The percentages on this page come from tests on past prices and do not mean the same result will happen again. We recommend trying every setup on past data first and using only money you can afford to lose.
Worked example
How a ladder of levels works out
Say a hypothetical coin costs 100 USDT. The first buy is 100 USDT, there are 5 safety orders, the drop between levels is 2%, the size multiplier is 1.5 and take profit is 1.5%. The levels sit 2%, 4%, 6%, 8% and 10% below the first buy price.
| Level | Distance | Price | Amount, USDT | Average entry | Take-profit price |
|---|---|---|---|---|---|
| Base | — | 100.00 | 100.00 | 100.00 | 101.50 |
| 1 | 2% | 98.00 | 150.00 | 98.79 | 100.27 |
| 2 | 4% | 96.00 | 225.00 | 97.45 | 98.91 |
| 3 | 6% | 94.00 | 337.50 | 95.99 | 97.43 |
| 4 | 8% | 92.00 | 506.25 | 94.42 | 95.83 |
| 5 | 10% | 90.00 | 759.38 | 92.75 | 94.14 |
- With only the first buy made, the bot sells when the price reaches 101.50 USDT.
- When the price falls to 98 USDT the bot buys 150 USDT more. Your average buy price drops to 98.79 USDT and the selling level (take-profit price) falls to 100.27 USDT. So the price does not have to return to the first buy price of 100 USDT.
- If every level is bought, a total of 2,078.13 USDT is spent; the average buy price is 92.75 USDT and the take-profit price is 94.14 USDT. If the price keeps falling below 90 USDT, the deal stays open at a loss.
In this example a plan that starts with 100 USDT needs 2,078.13 USDT if every level is bought. The size multiplier and the number of safety orders make the money needed grow quickly. We recommend checking “Total capital required” (“Total position size” on futures) in the preview before you set up any bot.
Setup
The settings on the setup screen
The table below explains what every setting on the setup screen does and gives an example value. The examples are illustrative numbers, not product defaults.
| Setting | What it does | Example |
|---|---|---|
| Direction | Choose Long to buy as the price falls, which lowers your average buy price. Choose Short to sell as the price rises, which raises your average sell price. With Both ways, the bot opens a long or a short depending on a condition, and only one deal is open at a time. Short and Both ways are available on futures symbols only. | Long |
| Start | You choose when the first buy happens: right away, when the price reaches a level you set, or when a condition occurs. You can also change the price level by dragging its line on the chart. Conditions are picked from the alerts of the indicators and strategies on the chart. | Immediately |
| Base order (USDT) | The size of the first buy. On futures this is the position size; with leverage, the money set aside from your balance (margin) is this amount divided by the leverage. Example: 100 USDT at 5x leverage needs 20 USDT. | 100 |
| Safety orders | The maximum number of safety orders after the first buy; a whole number from 0 to 50. The more safety orders, the faster the total money needed grows. | 5 |
| Safety order trigger | Decides at which prices the safety orders are placed. Fixed percentage: levels follow evenly spaced percentages. By volatility: the spacing is recalculated after every buy from the average price movement over the last 14 hours (ATR) and the multiplier you enter. When a condition occurs: one safety order is made each time your chosen condition happens. Custom levels: you write each level's distance and amount yourself; you can drag the levels on the chart or edit them in the preview table. | Fixed percentage |
| Price deviation (%) | With the fixed percentage method, this is the price gap between two levels. Levels are laid out downward from the first buy price. For a short deal, the same field sets the gap between safety sells as the price rises. | 2 (levels 2%, 4%, 6% ... below the entry) |
| Wait for rebound (%) | When on, the bot does not buy the moment the price reaches a level; it waits until the price rebounds from its low by this percentage. This avoids buying too early while the price is still falling. If the price passes several levels before rebounding, those buys are made together at the rebound. In short, the bot waits for the price to turn down from its high instead. | Off |
| Safety order size multiplier | Each safety order is this many times the size of the one before. Enter 1 and every buy is the same size. | 1.5 (100, 150, 225 ... USDT) |
| Take profit (%) | When the price rises above your average buy price by this percentage, the bot sells everything. For a short deal, the trigger is a fall below the average. The average changes after every safety order, so the take-profit price is recalculated each time. | 1.5 |
| Trailing take profit (%) | When the price reaches the take-profit level the bot does not sell at once; it waits until the price falls back from its peak by this percentage. If the rise continues it sells higher; if the price turns quickly it may sell below the take-profit level. | Off |
| Stop loss (%) | When the price falls below your average buy price by this percentage, the bot closes the deal at a loss. For a short deal, the trigger is a rise above the average. Leave the field empty and the bot keeps waiting at a loss. | Off |
| Step multiplier (Advanced) | Each new level is placed this many times further away than the previous gap. Enter 1 and the gaps stay equal. | 1.5 (gaps of 2%, 3%, 4.5% ...) |
| Start a new deal after each close (Advanced) | When on, the bot opens a new deal after one closes by take profit or stop loss. When off, the bot stops after the first deal closes. | On |
| Cooldown, minutes (Advanced) | How long to wait after a deal closes before opening a new one. Enter 0 for no wait. | 0 |
| Minimum distance, % (conditional safety orders) | Even if the condition occurs, no new buy is made unless the price has moved at least this percentage away from the last buy price. Enter 0 for no distance requirement. | 1 |
| Leverage, isolated (futures only) | A whole number from 1 to 20 on futures symbols. Leverage lets you set aside less money for the same deal and raises the risk in return. Spot has no leverage. Details are in the next sections. | 5 |
Optional fields left off (wait for rebound, trailing take profit, stop loss) are ignored. If a value is invalid the preview stays empty and tells you which field to correct.
Futures
Leverage, required margin and estimated liquidation
Leverage lets you set aside less money for a deal of the same size. In return, if the price moves the wrong way, the deal is liquidated sooner: the exchange closes it automatically. The leverage field appears on futures symbols only; spot has none.
Required margin
Margin is the money you set aside for the deal. The amounts you enter are position sizes. Once every order is made, the margin set aside is the total position size divided by the leverage. In the example above, a total of 2,078.13 USDT at 5x leverage needs 2,078.13 ÷ 5 = 415.63 USDT of margin. The preview shows these as “Total position size” and “Margin required”.
Isolated margin
Each deal is opened with its own margin, separate from the rest of your balance (isolated margin). If it is liquidated, only that deal's margin is lost; the rest of your money is not touched.
Estimated liquidation price
The liquidation price is the price at which the deal's margin falls to the minimum the exchange requires; if the price gets there, the exchange closes the deal. The panel works it out as if every safety order had been made. It uses the exchange's maintenance-margin table when it can fetch it, and an approximation when it cannot. The value also appears on the chart as the “Est. liquidation” line. Without maintenance margin, the liquidation price of a long deal is roughly the average entry × (1 − 1 ÷ leverage).
For the example ladder (every level bought, average entry 92.75 USDT), the approximate values without maintenance margin are:
| Leverage | Margin required, USDT | Approx. liquidation price | Distance from first entry |
|---|---|---|---|
| 1x | 2,078.13 | No liquidation | — |
| 2x | 1,039.06 | 46.38 | 53.6% |
| 3x | 692.71 | 61.84 | 38.2% |
| 5x | 415.63 | 74.20 | 25.8% |
| 10x | 207.81 | 83.48 | 16.5% |
| 20x | 103.91 | 88.12 | 11.9% |
If liquidation comes before the last safety order
If the liquidation price is above the price of a safety order not yet made (below it, in short), the panel warns you: the deal is liquidated when the price gets there and the later safety orders cannot be made. If you see this warning we recommend lowering the leverage.
Leverage risk
Leverage magnifies gains and losses alike. The full margin of a liquidated deal is lost. The backtest shows how many times a leveraged setup would have been liquidated over the last two years; if that number is above zero, consider lowering the leverage or tightening the levels.
Reading guide
The preview table and chart labels
You see the outcome of your settings in the preview before you set up any bot. The lines on the chart and the table on the right show the same plan in two ways.
Preview cards
| Card | Meaning |
|---|---|
| Total position size / Total capital required | The sum of all buys. Shown as position size on futures and as capital required on spot. |
| Margin required | Futures only: total position size ÷ leverage. |
| Final average cost | The average buy price reached if every level is bought, and how far it is from the first buy price. |
| Drop to last safety order | The distance from the first buy price to the last level, in percent. For short deals it is shown as a rise. |
| Final take profit | The selling (take-profit) price that applies once every level has been bought. |
| Est. liquidation price | Shown with leverage only; explained in the previous section. |
The preview table
Each row of the table is a level. “Distance %” is how far the level is from the first buy price, “Price” is the level's price, “Amount” is how much is bought at that level, and “Average” is the average price of all buys made up to that level. With the custom levels method you can edit the distance and amount cells in the table, and “Undo” reverses the last change.
Chart lines
| Line | Meaning |
|---|---|
| Base order | The price of the first buy; a solid line. |
| Safety order 1, 2, 3 ... | The price of each additional level; a dashed line. |
| Average entry | The average buy price reached if every level is bought. |
| Take profit | The selling (take-profit) price that applies once the first buy is made; it moves down as levels are bought. |
| Stop loss | Shown if you set a stop loss: the price at which the deal closes at a loss once every level has been bought. |
| Est. liquidation | Appears only when leverage is used. |
You can drag the start-price and custom-level lines on the chart to change them; the table and the cards update instantly.
Backtest
Backtest result and robustness scorecard
The “Backtest” button runs your settings on the last two years of one-minute prices of the selected symbol. No real orders are sent. The result shows how the setup behaved in the past; it does not mean the same result will happen again.
What the calculation assumes
- Prices are one-minute candles. The result screen states the date the result starts from and how many candles it used; a period with missing data is noted too.
- A commission of 0.05% of the order amount is deducted for every order.
- Price slippage, order-book depth and futures funding fees are not included; real trading would be affected by them.
- The backtest currently runs in the desktop app; for the web version, see the note shown on screen.
The figures on the result screen
| Figure | Meaning |
|---|---|
| Net return | Profit or loss at the end of the period, after commission, as a percentage of your capital. |
| Maximum drawdown | The deepest drop in your capital from its peak. It shows the largest loss you could have faced along the way, however high the return. |
| Trade count and win rate | The number of closed deals and the share of them that made a profit. Even a high win rate can be spoiled by a few deals with large losses. |
| Liquidations | In a leveraged setup, the number of deals that were liquidated after their margin fell to the minimum. A liquidated deal loses its entire margin. |
| Longest open deal | The longest time a deal stayed open without reaching its take-profit level; it shows how long your money can stay tied up. |
| Open deal loss | The loss on the deal still open at the end of the period. |
| Capital tied up at a loss | The highest share of your capital committed to a deal that was losing money. 100% means that at some point every level had been bought while the deal was down; it does not mean that money was lost. |
| Time in loss | The share of the backtest period during which the open deal was losing money. |
How the headline is chosen
The headline at the top of the screen follows the first rule below that matches, in this order.
| Condition | What the message means |
|---|---|
| The account was wiped out or a deal was liquidated | A red warning that says the account was wiped out or how many deals were liquidated. It can also say the bot stopped because the remaining balance was not enough for the plan. |
| Fewer than 10 deals closed | Too few closed deals to judge; the result should not be taken as certain. |
| Net return zero or negative | The settings lost money over the last two years. |
| The open deal is down by 10% of capital or more | The setup made a profit, but one deal is still open at the end of the period and is down by a large amount. |
| Maximum drawdown above 25% | The setup made a profit, but your capital dropped sharply at some point. |
| Net return smaller than the maximum drawdown | The profit is small compared with the drop in capital. |
| None of the above | The setup made a profit over the last two years. This is not a promise of future profit. |
The robustness scorecard
A result that looks good on one symbol may be down to chance. The scorecard runs the same settings on nine symbols over a common period and splits that period in two, so you can see whether the result depends on a single symbol or a single period.
Symbols come from the USDT pairs on your watchlist; if there are fewer than nine, the list is completed with BTC, ETH, SOL, BNB, XRP, DOGE, ADA, LINK and AVAX.
| Column | Meaning |
|---|---|
| 1st half and 2nd half | The return in the first and the second half of the common period. If both are positive the symbol counts as “in profit in both halves”. |
| Drawdown | The largest drawdown on that symbol. |
| Buy & hold | The return of simply buying the symbol once and holding it over the same period, for comparison with your settings. |
| Trades | The number of deals closed on that symbol. |
The scorecard summary
- Profit in both halves on most symbols: the result does not seem to depend on one symbol.
- It varies from symbol to symbol: we advise against trusting a result that looks good on only one symbol.
- No profit in both halves on most symbols: the result on the selected symbol may be specific to it.
Once the scorecard is complete with enough symbols, the sentence at the top can change too. If the setup made a profit on this symbol but lost on most symbols, it says “profit on this symbol, loss on most symbols”; the other way round, it says “loss on this symbol, profit on most symbols”. If buy and hold earned more on most symbols, it shows a warning about that.
A reliable scorecard needs a period of at least 90 days and at least 10 deals per symbol. When these are not met, the screen suggests extending the period or relaxing the entry conditions.
Starting the bot
Start the bot and follow it while it runs
After you have tried your settings on past data, you can start the bot with the same plan. This feature is in Beta. The bot currently runs in the Trading Academy and on the testnet.
Choose where the bot runs
When you select “Start bot” on the Setup tab, the start summary opens. This is where you choose where the bot runs.
| Account | What it means |
|---|---|
| Trading Academy | The bot trades with a virtual balance. No real orders are sent to the exchange, so it is a safe way to try the bot. |
| Testnet | The bot trades on the exchange testnet with your testnet API key. No real funds are used. You add the key in Settings. |
Starting a bot with a live account is not available yet.
Review the summary before you start
The summary shows what the bot will use before it begins. We recommend reviewing each row before you confirm.
| Summary row | What it shows |
|---|---|
| Symbol and direction | The symbol the bot will trade and the direction you chose (long or short). |
| Number of orders | How many orders the bot places, counting the base order. For a short bot this row counts the base order and the safety orders as sells. |
| Required capital | The total amount used if every order is filled. |
| Required margin and leverage | On futures symbols, the total margin set aside with leverage if every order is filled. |
| Take profit | The profit rate in your plan. The take profit level is recalculated from the average price each time an order is filled. |
| Bot name | You see the bot under this name in the list. It can be up to 40 characters, using letters, digits, hyphens and underscores. |
On the testnet, orders go to the exchange testnet, so please check that your testnet balance is sufficient. The bot starts when you select “Confirm and start”. The base order is placed right away or when the condition occurs, depending on the start setting in your plan.
Follow the running bot
When the bot starts, the window shows the running bot screen. It has three parts.
- Open deal: the average price, the take profit level and order, and the unrealized P&L; on futures symbols, the margin and the liquidation price.
- Orders: the price, quantity and amount of each order. Filled orders are marked; pending orders wait on the exchange and fill when the price reaches their level.
- Recent deals: closed deals, the reason each one closed (take profit, stop loss, liquidation or closed manually) and the result.
On the chart, filled and pending orders, the average price and the take profit order appear as lines. Unrealized P&L does not include fees.
A short bot uses selling terms
When you choose the short direction, the bot sells in steps as the price rises. The screen says “base order” and “safety order” for the sells, and the average it follows is the weighted average price of the filled sells. The take profit level sits below that price.
Stopping and closing
You can stop a running bot in two different ways.
| Button | What it does |
|---|---|
| Stop | The bot places no new orders; pending safety orders and the take profit order are cancelled. The open deal stays as it is. You can select “Resume” at any time to continue. |
| Stop and close | The open deal is closed at the market price and the bot stops. This cannot be undone, so the screen asks you to confirm. If there is no open deal, this button does not appear. |
The liquidation label
When you use leverage on a futures symbol, the liquidation price reported by the exchange appears on the chart as its own label. If that price is far from the current price, the chart scale does not stretch to reach it; the label sits on the top or bottom edge of the chart with an arrow pointing in the direction of the liquidation price. When the price comes close and the line enters the visible range, the label moves next to its line.
The bot applies the rules you set; results depend on the market and there is no guarantee of profit. A deal that is liquidated loses its entire margin.
Frequently asked questions
What people ask before setting up
Does the DCA Bot guarantee a profit?
No. The bot only applies the rules you set; if the price keeps going one way for a long time the deal can stay open at a loss. Backtest results are about the past and do not show future results.
How many safety orders and what spacing should I choose?
There is no value that suits everyone. In the preview, look at the total money needed and how far below the entry the last level sits. In the backtest, look at the largest drop and the longest open deal. This is not investment advice.
What happens if the price falls below every level?
The bot makes no further buys and the deal stays open. If you set a stop loss, the deal closes at that price at a loss; if not, the bot keeps waiting for the selling level to be reached. With leverage on futures, the deal's margin is lost when the price reaches the liquidation price.
Can I use leverage on spot?
No. The leverage field appears on futures symbols only; on spot the order amounts come directly from your capital.
How does the Both direction work?
It exists on futures symbols only. A long or a short deal is opened depending on the long and short conditions you choose; only one deal is open at a time. When the opposite condition comes, there are two options: wait for the take-profit level, or close the deal and switch direction.
What price does the stop loss look at?
It is based on the average buy price. For a long deal it is the percentage you entered below the average; for a short deal, the same percentage above it. The average changes with every safety order, so the stop-loss price changes too.
How much do I lose if I am liquidated?
Deals are opened with isolated margin, so you lose only the margin of the liquidated deal, which is the total position size divided by the leverage. The rest of your balance is not tied to that deal.
Why does the scorecard say “could not be calculated” or “extend the period”?
A scorecard needs a period of at least 90 days and at least 10 deals per symbol. Loosening the entry conditions can increase the number of deals; if the scorecard could not be calculated, run the backtest again.







