The reasons why the inadequately low sale/purchase price is not a bug, but a feature of the average sale price display.
The main reason why the sale visually occurs, for example, at an inadequately low price: the number of coins bought is greater than the number of coins sold.
Example: bought 100 coins for $100, sold 90 coins for $90
The average purchase price = 100 / 100 = $1. Average selling price = 90 / 100 = $0.9
Why do we divide by 100 coins, even though only 90 coins were sold? Because the rest of 10 coins is impossible to sell (limit of exchanges for minimal order). You had 100 coins, as a result of their sale you have 90$, so the bot counts the average price as a result of selling 100 coins for 90$.
Why does the balance of coins appear? There could be several reasons:
1) You are trading without a balance of BNB coins. In this case, the exchange deducts the commission in the traded coins and the multiplicity of the lot is violated. For example, there were 2 coins, 0.1 was written off, the remaining 1.9 coins. And you can only sell multiples of 1 coin, so 0.9 will hang in the exchange as a residue.
2) You have BNB, but other traders trade without BNB. For example, you sell a 2 coin order into the wall with 1.9. Then you try to re-move the order, it is canceled, but it cannot be placed anymore as it is less than the minimum lot and 0.1 coin remains on the balance.
a) If you cancel a partially executed order, the unsold coins will remain on your balance. If “Cancel small SELLs” is checked, the MoonBot will delete such orders where the balance is less than a lot. The order will only be removed from the list of active from the chart, but it will remain in the report and in the exchange. The meaning of this checkbox – to remove from the screen orders, which you still can not manage, due to the fact that they are less than a lot, hence they can not be moved.
b) Another variation of the case of item 2: You move an order to sell, at which point it is partially filled, and the remainder is already less than a lot, and it cannot be moved. In the log there will be a record “Looks like order was done while replacing or rest quantity too low”.
3) During listing, the commission for the first hours is written off in coins, not BNB, which always results in balances.
How do you check that you have balances?
1) You can open a spot wallet overview and there you will see your coin balances.
2) You can open the history of orders, find the desired order, expand the history of trades and check if the commission was charged in BNB or coins, and also check how much was bought and how much was sold.
All of the above can fully apply to the incorrect purchase price.
Briefly summarizing:
1) Always maintain a balance of BNB coins for trade commission deductions.
2) Regularly check the small balances of coins in your exchange account balance and convert them to BNB in time.