tradable_balance_ratio issue with multiple bots

Let’s use a very simple example. You have 1000 USDT. You have 4 bots. You want them to have 250 USDT each. You set the tradable_balance_ratio to 0.25. For simplicity sake, let’s say the bots only have 1 trade slot each.

Now, bot #1 open a trade. They are allowed to use 0.25 * 1000, which means bot #1 can use 250 USDT. Your wallet now has 750 USDT left.

Now bot #2 want to open a trade. They are allowed to use 0.25 * 750, which means bot #2 can use 187.5 USDT. Your wallet now has 562.5 USDT left.

Now bot #3 want to open a trade. They are allowed to use 0.25 * 562.5, which means bot #3 can use 140.625 USDT. Your wallet now has 421.875 USDT left.

Now bot #4 want to open a trade. They are allowed to use 0.25 * 421.875, which means bot #4 can use 105.46875 USDT. Your wallet now has 316.40625 USDT left.

Things will get even messier when each bot has more than 1 trade slot. Now if this is what you want, for example for some sort of risk management, then sure, you can use tradable_balance_ratio instead of available_capital. But if your intention is the same as my statement at the beginning of the post (split money equally), then you shouldn’t use tradable_balance_ratio.

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *