Configuring DCA Entries, Exits, and Asset Limits
Summary
This guide explains how a dollar-cost averaging trading mode can place entries on a schedule or in response to evaluator signals. Evaluator-triggered entries require a maximum signal value of -1 or 1; other values are ignored. Entry orders may be market or limit orders, with optional secondary entries at different prices and amounts. The mode can also create take-profit and stop-loss exits after an entry fills, including split exits that distribute the entry amount evenly.
Configuration choices include whether to cancel existing entry orders when a new signal arrives, whether to place entries at startup, and how much of the portfolio may be allocated to an asset. A health check can sell an asset at market if it is held without a corresponding sell order, including after a bot restart or outage. The guide says the mode supports spot and futures, but futures use is limited to long positions. It describes configurable mechanics rather than performance evidence; it does not establish that DCA will improve returns or manage risk in every market.
Key ideas
- DCA entries can be triggered by a regular time interval or by qualifying evaluator signals.
- Entry orders can be market or limit orders, with optional additional entries at separate prices.
- Filled entries can trigger take-profit and stop-loss orders, which may be split across prices.
- Order lifecycle settings determine whether open entries are canceled when a new signal arrives.
- Asset holding limits and health checks can constrain exposure and sell holdings without exit orders.
- Futures support is limited to long positions, and the guide provides no evidence of strategy profitability.
Tags
Full text
# DCA Trading Mode --- title: "DCA trading mode" description: "Optimize your Dollar cost Averaging strategy (DCA) using the OctoBot DCA Trading Mode. Automate DCA on technical indicators or on a regular basis." sidebar_position: 2 --- # DCA Trading Mode The DCA Trading Mode (or DCATradingMode) is designed to buy and sell according to a [Smart Dollar cost averaging strategy](/blog/smart-dca-making-of). <div style="text-align: center">  </div> It allows you to optimize your entry and exit prices according to your configuration. ## The DCA Trading Mode can - Buy on a regular basis - Buy when evaluators signal a buy opportunity - Create multiple buy orders at different prices - Automatically create one or many take profit orders after each entry - Automatically create one or many stop loss orders after each entry - Be used to trade SPOT and Futures markets ## Time based DCA Using the `Time based` Trigger mode, the DCA Trading Mode will create entry (buy) orders on a regular basis according to your configured `Trigger period`. ## Evaluators based DCA Using the `Maximum evaluators signals based` Trigger mode, the DCA Trading mode will create entry (buy) orders everytime a new maximum evaluator value is received. A maximum evaluator value is a value of `-1` or `1`. Using this trigger mode, you can trigger DCA orders based on technical evaluators signals, signals from telegram, ChatGPT or any indicator you enable. Please note that a `-1` or `1` evaluator value is required, any other value will be ignored. ## Configuring orders - The DCA Trading mode can create entry (buy) orders as market or limit orders. When using limit orders, the `Limit entry percent difference` allows to set the % price difference to compute the buy order price. - Secondary entry orders can also be enabled. There can be as many as configured and can have a different price and amount from the initial entry orders. - Take profit (sell) orders can be enabled to automatically create sell orders when an entry order is filled. - Stop loss orders can be enabled to automatically create stop loss orders when an entry order is filled. - Similarly to secondary entry orders, exit order (take profit and stop loss) can also be split into multiple exit orders using different prices. When enabled, the entry amount will be evenly distributed between exit orders. - Each entry and exit order amount can be configured using the [order amounts syntax](order-amount-syntax). - Entry orders lifecycle: When `Cancel open orders on each entry` is enabled, only one entry (including its secondary orders if any) is allowed for each traded pair. This means that a new entry signal received when existing entry orders are open will first cancel open entry orders before creating orders associated to this new signal. On the order hand, when disabled, multiple entry orders from different signals could exist as the trading mode wont cancel them. - `Enable initialization entry orders`: This parameter enables or disables the automated creation of entry orders when starting the bot, regardless of trigger conditions. - The maximum part of your portfolio allocated to a given crypto can be limited using the `Max asset holding` parameter. For example, a "Max asset holding" of 30% means that the DCA Trading mode won't buy more BTC if the % of BTC holdings in your portfolio is higher than 30% of your portfolio total value. :::info For now, when using futures trading, the DCA Trading Mode only supports long positions. It will not create short positions. ::: ## Health check Enabling Health check on the DCA Trading Mode will ensure that there are no assets within the trading pairs that remain without sell orders. It is useful to ensure that the DCA strategy remains consistent even when restarting the bot or if your OctoBot has been offline for some time. For example when trading BTC/USDT and ETH/USDT, if at some point the bot sees that ETH is on the portfolio and is not within a sell order, then it will consider that this ETH should be sold and will sell it for USDT with a market order. ## Example usages of the DCA Trading Mode Many OctoBot cloud strategies are built using the DCA Trading Mode. - In our [Smart DCA making of](/blog/smart-dca-making-of), we cover the process of designing some of the OctoBot cloud strategies. - Trading with [ChatGPT](chatgpt-trading) can also use the DCA trading mode to manage orders
Shown in full with attribution under the source's licence. Licence: GPL-3.0
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.