In this article, you will learn about the calculation behind the Investment Change value for an active bot, and how to read your bot results.
As an example, let's take one of our running bots on DATA/BTC pair, where DATA is the base currency and BTC is the quote currency. The bot generates profit in quote currency i.e. BTC. Investment Change is also estimated in BTC.
The price of the DATA coin is 0.000008 BTC (marked by an arrow); this price will be used to calculate Investment Change.
Bot results and parameters
Investment - 1.0349 BTC
Bot profit - 0.01456076 BTC (1.41%)
Investment Change - 0.71%
While the bot was working, it has changed the initial investment by 0.01456076 BTC.
1.0349 BTC (Investment)
+ 0.01456076 BTC (Bot Profit)
= 1.04946076 BTC (+1.41%)
This is the real bot profit.
Bot assets are used to place orders, some of which are placed in base currency DATA (SELL orders), while others in quote currency BTC (BUY orders). That's why if you plan to sell base currency for quote currency when closing the bot, we recommend taking Investment Change into account, as it considers the current price of the base currency.
The balance used in open orders
If we click a [VIEW] button on the bot, we will see how much of each coin is currently held in open orders by this bot.
From the picture above, we can see that we have a total of 36,140.3 DATA in open SELL orders, and 0.7392258 BTC in open BUY orders.
Converting balance to quote currency
To calculate Investment Change, we need to know how much our base currency worth if we convert it to the quote currency and see the increase/decrease if we compare it to what we start with.
Below is the bot balance evaluation based on the current price of the DATA coin in BTC (0.000008 BTC):
Calculating Investment Change
Let’s calculate the Investment Change value and compare it to the Bot Profit:
Bot Profit of BTC of 0.01456076 will remain the same. However, the Investment Change indicator takes into account the current price of the base currency that is held in open orders, and this price will is changing constantly.
If we want to close the bot from our example selling DATA for BTC at the immediate market price, some of the profit would be lost because of the DATA price change and how the balance of the base and quote currency is currently distributed between open orders. At the same time, generated profit is covering some loss of the value change of the base currency resulting in the Investment change being positive.
To sum up, if you want to sell your base currency for quote currency, you might want to wait until Investment Change increases. You could also use a Take Profit tool, which closes the bot automatically and sells base currency when Investment Change reaches a certain value (learn more about Take Profit Bot Feature).