Skip to main content
All CollectionsCornix Smart Trading BotsDCA
Create your own Smart DCA Bot
Create your own Smart DCA Bot

How to create your own DCA bot

Hadar Cornix avatar
Written by Hadar Cornix
Updated over 9 months ago

To create a new bot, under the DCA section, navigate to the "My Bots" page and click the "+ Create Bot" button on the top right corner of the screen:

Creating a new bot is comprised of 5 Steps:

  1. General: set your bot's general basic settings, such as its name, symbol, exchange, amount per trade, and direction and leverage for futures exchanges.

  2. Entries: set your entry strategy, including the number of orders, their price, and their size.

  3. Take-Profit: set your take-profit order to realize your earnings.

  4. Stop: mitigate your risk by setting a stop-loss order and other stop settings.

  5. Advanced: set a cooldown time and the number of trades until the bot stops.

On the right side of the screen, under the 'Available Balance' you can see the currently available amount of the coin which is relevant for the bot you are creating, and a dynamic summary of the bot's orders which updates with every change you are making while creating the bot.

For your convenience, while you set your bot, the system will warn you (in red) when something is invalid and will let you know what needs to be changed in order to create a valid bot.

Once you’re done setting up your bot correctly, you can create the bot by clicking the "Create Bot" button on the right side of the screen. When creating the bot, you will be able to choose between "Create" and "Create & Activate":

  • "Create & Activate" - will create the bot and activate it. Once the bot is activated, the first trade will be immediately opened.

  • "Create" - will create the bot in an inactive state and trades won't be opened until activating the bot.

As long as a DCA bot is active, it will always have one open trade (excluding cooldown time). Each time a trade is closed (hits a take-profit or stop-loss target), a new trade will be created automatically with the bot's configurations (unless configured otherwise on the advanced settings).


General

  1. Bot Name: give your bot an indicative name that will help you differentiate easily between your bots.

  2. Account: choose the exchange account to be connected to your bot. Please note that the account's auto trading configuration won't be applied for the bot, but only the configuration set for the bot.

  3. Symbol: choose the desired symbol for your bot.

  4. Amount Per Trade: set the total potential amount to be invested in each of your bot's trades. You can set it by fixed BTC or fixed USD.

    For Futures exchanges:

  5. Direction: set your bot's direction for long or short.

  6. Margin Type: choose the desired leverage type (isolated or cross).

  7. Multiplier: choose the leverage level.

Entries

For each bot, the first entry order will be a market order and the following orders will be calculated based on it and by the settings below:

  • The 'Customize First Entry' toggle will allow you, if enabled, to set a specific amount to be allocated for the first entry order, defined as a percentage out of the total trade amount. Otherwise, if disabled, the allocation for the first order will be set up based on the same parameters as all other entry orders as follows.

The 'Amount Scale' and 'Number of Orders' parameters will determine the amount to be invested in each order

  • 'Amount Scale': will determine the multiplier between each following entry order amount and will set the ratio between the orders, in terms of the amount invested in every order.

  • 'Number of Orders': will determine the total number of potential entry orders the bot will place in each trade (up to 50 entry orders).

  • 'Number of Active Orders': will determine the total possible maximum number of active entry orders the bot will be allowed to place simultaneously on the exchange.

    For example:

    Amount per trade = 130

    The number of orders = 3

    Amount Scale = 3

    The first order will be for $10 and the following orders will be $30 and $90 respectively.

    Amount per trade = 1st Order + 2nd Order (1st Order*amount scale) + 3rd Order (2nd Order*amount scale).

The 'Price Difference' and 'Price Scale' parameters will determine the orders' price

  • 'Price Difference': will set the difference between the first entry (which will be at market price) to the second entry order (which will be set to be at the first entry price minus the price difference percentage).

    For Example:

    First Entry Price (Market Price) = 100

    Price Difference = 1%

    The three first entry orders will be placed at 100 (market price), 99 (100 - 100*1%), and 98.01 (99 - 99*1%).

  • 'Price Scale' - will set the price difference multiplier from the second entry order and the following orders.

    For Example:

    First Entry Price (Market Price) = 100

    Price Difference = 1%

    Price Scale = 2

    The three first entry orders will be placed at 100 (market price), 99 (100 - 100*1%), and 97.02 (99 - 99*1%*2).

  • 'Max Order Price Difference': will show you the price difference (distance) in percentages between the first and last orders, taking into consideration all of the parameters above.

  • 'Trailing': if enabled will apply Trailing Entry based on the chosen percentage for all entry orders, except for the first entry order which is a market order.

Take-Profits

  • 'Take-Profit Distance Percent': will set your take-profit order as a percentage above the entry price (baseline).

  • 'Take-Profit Baseline': will determine if the 'Take-Profit Distance Percent' will be above the first entry or above the average entry price. The baseline will be updated based on the actual price(s) of the entries fulfilled.

  • 'Trailing': if enabled will apply Trailing Take-Profit based on the chosen percentage.

Stop

  • 'Stop-loss Percent': will set your stop-loss order as a percentage below the entry price (baseline).

  • 'Stop-loss Baseline': will determine if the 'Stop-loss Percent' will be in accordance with the first entry or the average entry price.

  • 'Number of Continuous Stops Before Bot is Stopped': in order to protect yourself, this feature allows you to define the total number of continuous stop-loss orders that will be executed by the bot before it is automatically deactivated so that no more positions are opened without manually re-activating it.

  • 'Stop-loss Timeout': The Stop Loss Timeout feature allows you to define a timeout period by which to delay the closing of a trade with a stop-loss order, in case you suspect the price will change again in the desired direction shortly, and you don't want to close (sell) your position immediately when reaching the stop-loss price.

Advanced

  • 'Cooldown After Trade Close': allows you to set an amount of time before a new trade will open automatically after a trade is closed. Leaving it with "0" will cause a new trade to open up immediately when a trade is closed.

  • 'Number of Trades Until Bot Stop': this allows you to define the total number of trades that will be created by the bot before it is automatically deactivated so that no more positions are opened without manually re-activating it.

Did this answer your question?