> For the complete documentation index, see [llms.txt](https://qi-blockchain.gitbook.io/qbots/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qi-blockchain.gitbook.io/qbots/bots/create-a-dca-bot.md).

# 🔁 Create a DCA Bot

This DCA bot automatically buys in multiple small entries instead of one large order. It helps reduce the average entry price during market dips and controls risk using your defined buy size, max allocation, and safety settings.

#### 🪜 Steps to Create

1. Go to **Bots → Create New Bot → New DCA Bot.**
2. Select:
   * Exchange: Mexc or Bybit
   * Pair: e.g., BTC/USDT, ETH/USDT
3. Set configuration:
   * **Portfolio Size (USD) -** The amount of USDT you are allocating to this bot (the bot’s working balance).This is the base amount used to compute all percentage fields below — and the bot will treat it as the capital you give it to trade (a reference + cap for calculations).<br>
   * **Buy Amount per Entry (% of Portfolio) -** Percentage of the Portfolio Size the bot should attempt to spend on each DCA buy.Example: 5% means each planned buy equals 5% of the Portfolio Size.<br>
   * **Maximum DCA Entries -** The Maximum Number of DCA Buy Attempts defines how many additional buys the bot can make after the first entry, stopping earlier if the Maximum total allocation is used up. The 1st entry happens when the bot starts (if Smart Indicator is off) or when the Smart Indicator condition becomes true (if it’s on). The 2nd entry occurs when the price drops 10% or more from the last entry price. The 3rd entry occurs when the price drops 15% or more from the last entry price. These DCA entries help lower the overall average buy price.<br>
   * **Take Profit (%) -** Percent profit at which the bot will close the position and take profit.<br>
   * **Stop Loss (%) -** Percent loss at which the bot will close the position to limit losses.<br>
   * **Minimum Order Size (USD) -** The smallest valid order size (exchange rule or your choice). If a calculated buy amount is below this value, the bot will use the minimum order size logic described below.<br>
   * **Maximum Total Allocation (%) -** The hard cap (percent of Portfolio Size) that the bot may spend across all DCA entries.Even if maxEntries is larger, the bot will never spend more than this total percent of the Portfolio Size.<br>
   * **Enable Smart Indicators -** When enabled, the bot uses EMA-200 (4H), RSI (4H), and BTC (1H) trend checks before placing new entries only.This helps the bot avoid entering during downtrends, overbought zones, or weak BTC conditions.Indicators do not affect already-running positions.\
     \
     Click **Create DCA Bot** once ready.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qi-blockchain.gitbook.io/qbots/bots/create-a-dca-bot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
