Home DCA bot

DCA bot

Evan
By Evan
7 articles

What is a DCA bot?

Trading bot Just configure the trading parameters, and the trading bot can automatically execute the deal. Compared with manual trading, using the trading bot provided by HXR Trade also has the following advantages: 1. Low threshold for use. The trading bots provided by HXR Trade are based on cloud services, do not require programming knowledge, do not need to deploy servers and install software, and can be configured and run at any time. 2. The strategy is automatically executed to overcome human greed. The bot will always trade according to the plan, without fear or greed , and will not miss trading opportunities 3. The bots don't rest. The crypto market is never closed, and bots can configure 24*7 transactions at one time to earn profits 4. Precise control of transactions. Edit the bot anytime the market changes, help the bot when trades are bad, edit active trades and close positions at market prices, etc. DCA and Martingale DCA is the abbreviation of "Dollar-cost averaging". It is a trading strategy used to average your purchase price or similar to Martingale - DCA is a very mature investment strategy. If DCA is a bit unfamiliar, then his other name, "Scheduled Investment", is familiar to almost every investor and widely recognized by investors - The Martingale strategy was first used in casinos, and every time you "lose money", you increased the stake by a multiple of 2 until you won. With unlimited funds, this is a winning strategy, because no matter how many times you lose, as long as you finally win, you can win back with a profit. But the reality is that the vast majority of traders have limited funds, and each 2x increase will quickly run out of funds, and investors will not be able to bear it if they continue to fall Combining DCA with martingale strategy, there comes the DCA bot 🤖 How the DCA bot works The core working principle of the DCA bot is to "build a position in multiple times and take profit at one time" "The assumption of using DCA bot trading is that the price of digital assets will eventually rise, so the DCA strategy is suitable for trading assets that you are optimistic about and familiar with.If the price of the asset falls and you continue to invest more to reduce the cost of buying it, you will profit faster when the price rises again" When you actually use the DCA bot to trade, we will not add to the position infinitely, and the multiple of each adding position is not necessarily 2 times, which is very flexible As shown in the figure below, the maximum number of adding positions of this bot (the maximum number of safety orders) is 3 times, and the investment volume each time is 1 time that of the previous time 20.jpgCreate DCA bot- New- Experss DCA bot performance DCA bots can go long and short in the spot market and futures market, and have good profitability no matter in bear market, bull market or volatile market. HXR Trade will select the bots with excellent performance and display the complete information of the bots in real time. You can choose to copy the bot directly, or reference these  to create different bots. Quick start- Copy bots

Last updated on Aug 16, 2024

Two ways to add positions

DCA and Martin Ge:deviation safety orders As described in working principle of DCA bot,combination of DCA and Martin Gel  is a strategy of adding the position adverse the trend. By adding positions at low positions, we can reduce our average price of total position, and can make profit faster after the market reversal. As shown in the figure below, as we buy more when the price falls, the profit price gets lower. Overview of each deviation safety order step DCA and Livermore: tendency safety orders The speculative king Jesse Livermore proposed a way to build a position in "Reminiscences of a Stock Operator": 1. Buy 20% of the total position first 2. If you buy it wrong, stop loss when it falls 10%, and your loss is 2% of the total position. 3. If you buy it right,buy 20% more when it rises 10%, and buy 20% more when is rises 10% agin, and buy 40% directly if it rises 10% agin. Expand victory results.Then hold it as long as it does not fall more than 10%. Once it  fall more than 10%, you will sell all the positions immediately. In 1907, Livermore correctly judged the big collapse of the stock market and earned 3 million US dollars within a day. In order to save the market, the financialist Morgan sent a special envoy to ask him not to short, and he agreed. In 1929, he was accurately short before the big collapse, earning 100 million US dollars to reach its peak.Reminiscences of a Stock Operator Combining DCA with Lifomor's positioning method is a strategy of increasing the position in response to the trendency. First, make a test through small positions. After the trendency arrives, continue to increase the positions can better grasp a wave of trendency. As shown in the figure below, adding to the position when the price rises continuously, the stop loss price will be continuously shifted to protect your profit. Overview of each tendency safety order step

Last updated on Aug 16, 2024

Module and classification of the bots

The module of DCA bots A complete DCA bot configuration includes six modules: 1. Basic:Configure the exchange market, profit coin, side, type of safety order side and name of the bot 2. Pairs: Configure trading pairs this bot can use 3. Order volume:Configure the amount of the base order and safety order in each round of transactions 4. Deal condition:Configure the base order condition and safety order condition for every round of transactions 5. Target PnL:Configure the target of profit and stop loss, a round of transaction is over when it meets any condition 6. Trigger: Configure different triggers to intervene in the normal operation of the bot. The trigger can end a round of transactions in advance to achieve the purpose of protecting profit and controlling losses Two categories of DCA bots Select different [Exchange market], [Profit coin], [Side] and [Open safety order side] in the basic settings, you can get different DCA bots.However, the [Open safety order side] in basic settings is the most important, because it will deeply affect the two major module configurations of [basic order condition] and [end condition]. Create DCA bot-advance Here we divide the bots into the two categories: "deviation safety order DCA bot" and "tendency safety order DCA bot" according to the type of safety orders, and then each category can be divided into seven small categories. "The deviation safety order is Martin Gel's increasing the position adverse the trend, and the tendency safety order is the Livermore's increasing the position in response to the trendency" Seven Category of deviation safety order 1. buy in spot market to earn quate coin,and open the safety order when it falls 2. sell in spot market to earn base coin,and open the safety order when it rises 3. buy in margin market to earn quate coin,and open the safety order when it falls 4. sell in margin market to earn quate coin, and open the safety order when it rises 5. sell in margin market to earn base coin,and open the safety order when it rises 6. buy in future market to earn settle coin,and open the safety order when it falls 7. sell in future market to earn settle coin, and open the safety order when it rises Seven Category of tendency safety order 1. buy in spot market to earn quate coin,and open the safety order when it rises 2. sell in spot market to earn base coin,and open the safety order when it falls 3. buy in margin market to earn quate coin,and open the safety order when it rises 4. sell in margin market to earn quate coin, and open the safety order when it falls 5. sell in margin market to earn base coin,and open the safety order when it falls 6. buy in future market to earn settle coin,and open the safety order when it rises 7. sell in future market to earn settle coin, and open the safety order when it falls

Last updated on Aug 16, 2024

Base orders condition

HXR Trade provides three ways for us to start the base order, including [Indicators], [Non stop], and [Limite]. Indicators The platform has a series of technical indicators rating. You can trade according to one or more technical indicators.Using technical indicators as the base order condition, you need to understand the following four points: 1. When there are multiple pairs set by the bot, the indicator rating of each pair is independent. 2. Each technical indicator rating is based on a specific time cycle. The validity period of the rating signal is the corresponding time cycle 3. The short cycle can provide frequent transaction signals, but the proportion of false signals is high; the long -term cycle provides less transaction opportunities, and often requires a long time to receive the signal 4. You can use multiple technical indicators to rating and filtering trading opportunities at the same time.The bot will start trading Only when all conditions are met. base order condition-Indicators If the built -in technical indicators rating cannot meet your transaction needs, you can also use custom transaction signals as the base order condition Non stop If you can't wait to let the robot start trading, [Non stop] will be your best choice. This is an uninterrupted trading strategy, which means: - After the bot is created, a round of transactions will start immediately - After the end of the previous round of transactions, a new round of transactions will be started immediately base order condition-Non stop It should be noted that [Non stop] only applicable to the type of pairs in the basic is "single pair", and the "multi pair" mode cannot be used in [Non stop] as the base order condition. Limit You can also specify a price as the base order condition, and the same [limit] is only applicable to the type of pairs in the basic is "single pair", and the "multi pair" mode cannot be used in [Non stop] as the base order condition. In addition, a bot with [ limit] as the base order condition will automatically stop after a round of transactions. base order condition- Limit

Last updated on Aug 16, 2024

Safety order condition

DCA bots supports two ways to add positions. It can reduce the cost of holding positions by devition safety order and make more profit by tendency safety order. Each way including two type of safety order condition,[% from base order]and [% from previous order] % from base order The deviation percentage or tendency percentage compared with base order. All the safety orders are calculated based on the base order. For example: - If there is a long-deviation bot,the everage price of base order is 100usd ,the deviation safety order is 2% from base order, safety orders step scale is 1, then the first safety order is 100 - 2% * 1 * 100 = 98 usd ,the second safety order is 100 - 2% * 1 * 2 * 100 = 96 usd...,And so on - If there is a long-tendency bot, the everage price of base order is 100usd ,the deviation safety order is 2% from base order, safety orders step scale is 1, then the first safety order is 100 + 2% * 1 * 100 = 102 usd ,the second safety order is 100 + 2% * 1 * 2 * 100 = 104 usd...,And so on deviation-% from base order tendency -% from base order % from previous order The deviation percentage or tendency percentage compared with the deal price of the previous order. If the first safety order is calculated based on the base order, the second safety order is calculated based on the first safety order...and so on. For example: - If there is a long-deviation bot,the everage price of base order is 100usd ,the deviation safety order is 2% from previous order, safety orders step scale is 1, then the first safety order is 100 - 2% * 1 * 100 = 98 usd ,the second safety order is 98 - 2% * 1 * 2 * 100 = 96.04 usd...,And so on - If there is a long-tendency bot,the everage price of base order is 100usd ,the deviation safety order is 2% from previous order, safety orders step scale is 1, then the first safety order is 100 + 2% * 1 * 100 = 102 usd ,the second safety order is 102 + 2% * 1 * 2 * 102 = 104.04 usd...,And so on deviation-% from previous order tendency-% from previous order How to chose Generally speaking, when the change in asset prices is relatively stable, the difference between the two ways of safety order order is not large. The specific method depends on your preference. However, when the asset price of the transaction is relatively severe (there will be more than 50%of the severe fluctuations or the price changes in more than 50%in the short cycle, such as LUNA or margin tokens)it will be more suitable for [%of the previous order]. In addition,when you set the bot parameters,you can check the order at the bottom of the [Create DCA bot- advanced] to ensure that the execution of the order meets your transaction expectations Create DCA bot- advanced-Overview of each orders step

Last updated on Aug 16, 2024

Take profit and stop loss

There are differences of taking profit and stopping loss between [deviation safety order DCA bot] and [tendency safety order DCA bot],we will introduce separately below. Deviation safety order DCA There are two major categories of deviation safety order DCA to take profit:[take profit under trading volume ] and [  take profit under ROI Trailing]. take profit under trading volume Deviation safety order DCA-take profit under trading volume There are two ways of taking profit under trading volume: 1. % from total volume : The target profit percentage will be calculated based on the total volume of each round of deals, including the base order and all the safety orders. For example: the base order is $10,the volume of three safety orders are $10/$20/$30,the total volume is $70, the target profit percentage is 10%, the target profit is $ 7 2. % from base order: The target profit percentage will be calculated based on base order, it has nothing to do with the volume of the safety orders. For example: the  base order volume is $100 ,no matter how much the safrty orders are ,the target profit percentage is 10%, the target profit is $ 10 The target profit (%) is set for the profit percentage we expect to obtain in each round of deals. It is not difficult to see that the "%from base order" method enables a round of deal to end faster with profit due to its' smaller profit target , which helps increase our winning rate and shorten the cycle of holding position. If we want more profit with more safety orders,we should chose [% from total volume]. Tip: Stop profit order has considered the exchanges' handling costs when calculating the target profit percentage Take profit under ROI Trailing Deviation safety order DCA-take profit under ROI trailing Taking profit under RIO traling fllows PNL percentage of the position.This method can ensure that we keep most of the profits when we have a profitability, and avoid the price reversal like the roller coaster🎢 before taking profit.There will be two parameters of taking profit from ROI tralling: - Trailing ROI activation (%): activation ROI%. For example, the parameter setting is 10%, which means that when the profit of the position reaches 10%, the trailing starts. If the yield continues to 15%, the trailing ROI% will be updated to 15% - Trailing ROI deviation (%): The percentage of ROI% deviation. For example, the parameter is set to 30%, and when ROI% retreats from 15% to 10.5% it will taking profit. stop loss deviation safety order DCA-Stop Loss The way to stop loss of deviation safety order DCA is based on the price,which includes three typies: 1. % from last safety order:After the last safety order is done,if the price continue to change in the direction of loss over the setted percentage,the stop loss order will be carried out. It should be noted that if all the safety order failed to be carried out for some reasons the last safety order is the base order 2. % from base order:After the base order is done,if the price continue to change in the direction of loss over the setted percentage,the stop loss order will be carried out 3. % from avg.open:The average price of open positions can be calculated according to the finished base order and safety orders,if the price continue to change in the direction of loss over the setted percentage,the stop loss order will be carried out There will be two parameters of each type of stop loss: - % Price deviation to stop loss:Set the maximum loss ratio that we can withstand in each round of tradings, and the deviation base is the type we set up - Stop loss action:「Close deal」means close this round of trading,the bot will start a new round of trading when meeting the base order condition.「close deal & stop bot」means close the deal and stop the bot, it will not start a new trading unless you start it manually. The[% from last safety order] can ensure the stop loss order is after all the safety orders.This can help reduce our positioning costs, but it may also lead to a huge loss in a round of trading.[% from base order」and「% from avg.open」cannot ensure all the safety orders be carried out,however, it can control the maximum loss boundary and prevent all profit before losses in a round of trading. In addition, it should be noted that the setting of the stop loss condition is closed by default. If the stop loss needs to be set, you need to actively open the stop loss setting. Tendency safety order DCA Taking profit and stop loss of tendency safety order DCA will be more special.Generally speaking, it is difficult to trigger the taking profit order, and the stop loss order often end a round of trading with profit. So we will introduce the stop loss first, and then introduce the take profit.There are two categories of stop loss methods for tendendcy safety order DCA: [stop loss under price] and [stop loss under PNL tracking]. Stop loss under price tendency safety order DCA- stop loss under price There are two types of [price stop loss under price]: 1. % from all order:The average price of open positions can be calculated according to the finished base order and safety orders,if the price continue to change in the direction of loss over the setted percentage,the stop loss order will be carried out 2. % from previous order:After the previous order is done,if the price continue to change in the direction of loss over the setted percentage,the stop loss order will be carried out There will be two parameters of each type of stop loss: - % Price deviation to stop loss:Set the maximum loss ratio that we can withstand in each round of tradings, and the deviation base is the type we set up - Stop loss action:「Close deal」means close this round of trading,the bot will start a new round of trading when meeting the base order condition.「close deal & stop bot」means close the deal and stop the bot, it will not start a new trading unless you start it manually. Using [% from previous order] method can continuously increase our stop loss price.Even if the stop loss order is carried out, as long as the stop loss price is better than our average opening price, this round of trading will still be profitable.But this method is easier to be triggerred, and it is very likely that we will leave the market in advance and miss the next big market. Stop loss under PnL trailing [Stop loss under PnL trailing] fllows the profit and loss of the position. This method can ensure that we retain most of the profits when we profit. It includes three parameters: - Trailing PnL activation:Activate to start the PnL.For example, the parameter setting is 100, which means it starts to track when the profit reaches 100. If the profit continues to 150, the trailing PnL will be updated to 150 - Trailing PnL deviation(%):The percentage of PnL% deviation. For example, the parameter is set to 30%, and when PnL% retreats from 150 to 105 it will taking profit. - Stop loss action:Close deal」means close this round of trading,the bot will start a new round of trading when meeting the base order condition.「close deal & stop bot」means close the deal and stop the bot, it will not start a new trading unless you start it manually. Take profit tendency safety order DCA-Take profit Tendency take profit order will carried out when all the tendency safety order carried out and the price continue to change towards profit.Bull market does not say the top, bear market does not say the bottom.In the actual trading process, we can set up a profit target that is hard to get. This order can be ends by stop loss, by trigger or we manually stop it.

Last updated on Aug 16, 2024

Custom signal

If the built -in technical indicator rating and take profit and stop loss platform cannot meet your transaction needs.You can use tradingView custom signal to start, close and cancel the trading of the bot.This is not complicated.It only needs three steps: 1. Get the configuration information of the bot's custom signal 2. Modify the bot settings 3. Paste the configuration information in tradingView to create an alert Get the configuration information of the bot's custom signal To use the TradingView custom signal, you need to create a DCA bot first, and to obtain the configuration information of the custom signal at the **[info]**page of the DCA bot card. info- custom signal At present, you can use a custom signal to "start deal" and "close deal". - start deal: if this is a long-strategy bot,you need to create an alert at TradingView for each transaction.The trading pair that has not created alert will not start.In addition, if you have created multiple alerts to a trading pair, the trading will start with the first -triggered alert. - close deal:Support to close all trading pairs or only close the specified trading pair.You can also specify the close operation.It will close at the market price.Different trading pairs and closing operations are different about the corresponding messages. You need to confirm before copying the message. Modify the bot settings Start deal If you use Trading View custom signal as base order condition,you need set the base order condition as[Trading View] on the Creat DCA bot page or edit page.It should be noted that the Trading View custom signal is not recommended to be used with other indicators, because this will affect the successful trigger of the custom signal. Close deal If you need to close active deal by Trading View. You don't need to set up the bot after creating a bot. All you need to do is to make sure the closing operation and the trading pair that you want to close when copying the message. The bot will close the deal at market price when it get the signal. Create an alert in Trading View Open a chart page of trading pair on TradingView.com. Here we use BTCUSDT trading for 1 hour as an example to create a alert to start BTCUSDT transactions. This process is divided into 6 steps: 1. Click the alert to create an entrance to open the pop -up page of creating alarm 2. Set the trigger conditions of the alert 3. Set the frequency of sending alert 4. Fill in the [webhook link] copyed from info.Link: https://api.hxr.com/dca-bots/trading-view/webhook 5. Name the alert,or skip 6. Fill in the [message] copyed from info As shown below: create an alert for BTCUSDT After copy the text of the custom signal in the bot info, just paste at the corresponding position,do not make any modifications to avoid errors. After completing the above operation, click the [Create] button, and the alert will be displayed in the list alert list The alert will be triggered after meeting the conditions. After triggering, the signal will be sent to the HXR Trade platform through Webhook. After receiving the signal, the platform will immediately start BTC/USDT deal. If the following situation occurs, the new deal will not start: 1. the bot is stopped 2. reach the Max active deals 3. there is a active deal of the current deal 4. the deal is in the colddown time You need to pay for subscriptions at tradingview.com to create alerts. For most users, PRO+ subscription can meet the demand

Last updated on Aug 16, 2024