Skip to main content
Terminal Features AI Research Spot vs Futures
Launch Terminal
Original analysis · DCA bots

DCA bot safety order calculator

Enter your base order, safety orders, price deviation and the two scales to see every order in the ladder, the capital you need if all of them fill, your average entry after each one, and the take-profit price that closes the deal.

Written and checked by the CryptoBolt founder · Formulas tested against worked examples on November 25, 2026 · How we build and check our tools

$2,737.50
Total capital needed if every safety order fills (5 safety orders)
$2,737.50Capital for the full ladder
$88.84 (11.16% below entry)Price of the last safety order
$92.39Average entry after the last order
5.55% from the last orderMove needed to reach take profit
$35.59Profit at take profit with the full ladder, after fees
-$105.15Floating result when price sits at the last order
No leverage (spot)Estimated liquidation of the averaged position
OrderPriceDrop from entryOrder sizeTotal investedAverage entryTake-profit price
Base$1000.00%$100.00$100.00$100$101.5
SO 1$98.51.50%$200.00$300.00$98.99$100.48
SO 2$96.73.30%$300.00$600.00$97.83$99.3
SO 3$94.545.46%$450.00$1,050.00$96.39$97.84
SO 4$91.958.05%$675.00$1,725.00$94.6$96.02
SO 5$88.8411.16%$1,012.50$2,737.50$92.39$93.77

Standard ladder: safety order k sits at a cumulative deviation of d × (1 + s + … + sk−1) and has the size first-order × vk−1. Fees are taken on both legs of the full position. It does not model slippage, partial fills, funding, stop-losses or the exchange’s own bot rules. Educational tool, not financial advice. Practice with virtual funds first →

How a DCA bot ladder works

A DCA bot, sometimes called a martingale bot, opens a base order and then keeps buying more if the price moves against it. Each extra buy is a safety order. Because the later buys happen at lower prices, your average entry drops, and the price only needs to recover to a take-profit level above the new average, not back to the original entry.

Worked example: $100 base order and five safety orders

A long bot enters at $100 with a $100 base order. The first safety order is $200 at a 1.5% drop, the step scale is 1.2, the volume scale is 1.5 and take profit is 1.5% above the average entry.

OrderPriceDrop from entryOrder sizeTotal investedAverage entryTake-profit price
Base order$1000.00%$100.00$100.00$100$101.5
Safety order 1$98.51.50%$200.00$300.00$98.99$100.48
Safety order 2$96.73.30%$300.00$600.00$97.83$99.3
Safety order 3$94.545.46%$450.00$1,050.00$96.39$97.84
Safety order 4$91.958.05%$675.00$1,725.00$94.6$96.02
Safety order 5$88.8411.16%$1,012.50$2,737.50$92.39$93.77

The full ladder needs $2,737.50, which is 27 times the base order. The last order fills at $88.84, 11.16% below the entry, and by then the average entry is $92.39. To close at take profit the price has to climb 5.55% from the last order. If it does, the bot makes about $35.59 after fees on $2,737.50 invested. If it never does, the floating loss at the last order is about -$105.15.

Look at the right-hand column, not the base order. The base order is only 3.7% of the money the ladder can use. The last safety order alone is 37%.

How volume scale changes the risk

Bigger later orders pull the average entry down faster, so take profit comes closer. They also put more money into the position exactly when the price is lowest. Same ladder as above, only the volume scale changes:

Volume scaleSize of last orderTotal capitalAverage entry after last orderMove needed to take profitCapital as multiple of base order
1.0x$200.00$1,100.00$94.57.97%11x
1.5x$1,012.50$2,737.50$92.395.55%27x
2.0x$3,200.00$6,300.00$91.244.24%63x

How step scale changes the depth

A step scale above 1 spreads the orders further apart, so the ladder survives a deeper fall before it runs out of safety orders:

Step scaleLast order is this far below entryPrice of last orderAverage entryMove needed to take profit
1.0x7.50%$92.5$94.523.72%
1.2x11.16%$88.84$92.395.55%
1.5x19.78%$80.22$87.4610.66%

That extra depth costs you earlier averaging: the first orders still fill at the same prices, but the last ones are much lower, and the average entry stays higher until they fill.

Using leverage on a futures DCA bot

On perpetual futures every safety order adds margin, but the averaged position is liquidated when the price moves roughly 1 ÷ leverage against the average entry, minus the maintenance margin. The calculator uses the simple isolated formula, average entry × (1 − 1 ÷ leverage + maintenance margin rate) for a long. For the same $100 base order ladder as above, with a 0.5% maintenance margin rate:

LeverageMargin needed for the full ladderLiquidation price after the last orderLiquidated before the ladder finishes?
3x$912.50$62.05No
5x$547.50$74.37No
10x$273.75$83.61No
20x$136.88$88.23Yes, around safety order 4

If a liquidation price sits above the price of a later safety order, that order can never fill, and the “safety” ladder is not safe at all. Use the liquidation price calculator to check an exact exchange setup and the liquidation probability calculator to see how likely it is that the price reaches that level.

A checklist before you start a bot

What this calculator does not model

The same averaging maths applies to manual buys, which you can check with the crypto average price calculator. If you prefer to compare the approach with simple regular buying, see dollar-cost averaging in crypto and the DCA calculator. Grid strategies work differently; the grid bot profit calculator shows how.

FAQ

DCA bot safety order FAQ

What is a safety order in a DCA bot?

A safety order is an extra buy a DCA bot places below your entry price. When the price drops by the set deviation, the bot buys more, which lowers your average entry price so the take-profit target comes closer. Each later safety order can be larger (volume scale) and further away (step scale).

How much capital does a DCA bot need?

Add up the base order and every safety order. With a volume scale above 1 the orders grow, so the total can be many times the base order. In the example here a $100 base order and five safety orders need $2,737.50, about 27 times the base order. Always plan for the full ladder, not just the base order.

What do price deviation, step scale and volume scale mean?

Price deviation is how far the price must drop before the first safety order. Step scale multiplies the gap between each safety order and the previous one, so a scale of 1.2 spaces later orders further apart. Volume scale multiplies the size of each safety order relative to the previous one, so a scale of 1.5 makes each order 50% larger.

Why can a DCA bot lose money?

A DCA bot keeps buying while the price falls. If the price never comes back up to the take-profit level, all the capital ends up in a coin that keeps falling. Larger later orders speed up recovery but also put more money into the losing position, which is why the full ladder size and the price of the last safety order matter more than the base order.

How does leverage change a DCA bot?

With futures and leverage, each safety order adds margin and moves the average entry, but the liquidation price of the combined position is only a few percent away from the average at high leverage. The calculator estimates the isolated liquidation price of the averaged position and warns when the price would hit it before the ladder finishes.

Keep going