GuidesDCA Bot

DCA strategy

DCA Bot

Automate long and short entries or exits with disciplined, staged executions that smooth your average price over time.

Position building 4 min read

How it works

Stage in, lower your average, exit in profit

Staged buy orders (growing size)Average entryTake-profit target

Instead of committing all at once, the bot places a ladder of orders as price moves against you. Each fill pulls your average entry down, so price only has to recover part-way to reach your take-profit, where the position closes automatically.

When to use it

Common ways to run a DCA bot

Accumulate a position

With no Take Profit or Stop Loss set, the bot places every order and then holds the position.

  • Time-based: stack a fixed size on a schedule, like $10 each day.
  • Price-based: add to the position only when the market drops by your set gap.

Scale out of a position

Point the bot opposite an open position to unwind it in stages instead of one fill.

  • A long DCA gradually closes an existing short.
  • A short DCA gradually closes an existing long.

Run continuous cycles

Enable Continue After TP/SL and the bot opens a fresh cycle each time it closes, trading the strategy without manual restarts.

Setup

Configuration checklist

Mode

Controls when new orders are placed so the bot follows your timing thesis.

  • Time-based: orders place at fixed intervals no matter how the price moves.
  • Price-based: orders wait for the market to move by a defined percent before placing.
Direction

Decides how the bot adjusts the position.

  • Long builds exposure or trims shorts while short does the opposite.
  • Pick the bias that fits your trade direction.
Execution strategy

Currently taker-only so orders fill immediately even in fast or thin markets.

Order Size ($)

Defines the quote value for the initial order.

Additional Orders

Controls how many follow-up orders arrive after the first execution.

  • The bot always places one initial order.
  • Additional Orders = 1 means two total executions.
Take Profit (%)

Optional: closes the entire position once the market hits your profit target.

Stop Loss (%)

Optional: closes the entire position if price moves against your average entry beyond the threshold.

Continue After TP / SL

Determines what happens after a take-profit or stop-loss event.

  • Disabled: the bot stops after closing the position.
  • Enabled: a fresh execution cycle begins automatically.

Price vs time

Mode-specific controls

Price-Based Mode

Price Gap & Martingale

  • Price Gap (%) defines how much the market must move before the next order triggers.
  • Size Change (%) controls how each order scales after executing (Martingale-style increases).

Time-Based Mode

Interval

  • Interval decides how frequently orders place regardless of price.
  • Align order timing with your strategy to prevent overtrading or prolonged inactivity.

Worked example

A price-based ladder in numbers

PairETH-USD
ModePrice-based
DirectionLong
Price gap2% per step
Initial order$100
Additional orders4
Size change+30% each
Take profit+1.8% on avg
OrderFill priceSizeNew avg entry
BUY Initial$3,000$100$3,000
BUY #2$2,940$130$2,966
BUY #3$2,880$170$2,930
BUY #4$2,820$220$2,891
BUY #5$2,760$290$2,849

Take-profit sits +1.8% above the final average, near $2,900.

Walkthrough

Step-by-step creation flow

  1. Choose the market and direction you want to target (long or short).
  2. Pick your mode and timing thesis: time-based intervals or price-based gaps plus any martingale sizing.
  3. Set the initial order size and number of additional orders you want to spread across the execution cycle.
  4. Add optional Take Profit, Stop Loss, and Continue After TP/SL rules to control what happens when a goal or limit triggers.
  5. Review your capital requirements and confirm execution strategy before launching the bot.

Bot lifecycle behavior

How a cycle ends

  • With neither Take Profit nor Stop Loss enabled, the bot stops automatically after all configured orders (initial + additional) execute. Use this to build or exit positions.
  • When TP or SL is enabled, the bot watches the average entry price. The position closes once TP or SL triggers, then either stops or restarts depending on your "Continue After TP/SL" setting.

Manual positions

When take-profit or stop-loss triggers, the bot closes the entire position on that market using the exchange's average entry price. Any manually opened positions on the same market may be closed as well, so avoid mixing manual and bot trades unless you fully understand the shared risk.

Risks & safety notes

Before you deploy

  • DCA reduces timing risk but does not protect against strong directional trends that keep moving against you.
  • Martingale-style size increases drastically raise liquidation risk if the market keeps moving against the position.
  • Open positions may incur funding payments over time.
  • Make sure you have enough margin to support every planned order before starting the bot.

Ready to run a DCA Bot?

Stage your entries, smooth your average, and let the cycle run.