Restarting bots closed deals in loss

Bug info: I restarted about 70 bots today due to insufficient funds


but after adding funds and restarting the bots they closed the deals in loss eating around $35 profit made today

  • Bot URL → I pasted a few of them as they are quite a lot of deals
    Gainium app - deal ID 67a0115e78d45bcc7d435e35
    Gainium app - deal ID 67a01f0978d45bcc7d481714
    Gainium app - deal ID 67a01a0278d45bcc7d465ea2
    Gainium app - deal ID 67a01b8878d45bcc7d46e069
    Gainium app - deal ID 67a011a778d45bcc7d437aca
    Gainium app - deal ID 67a020c378d45bcc7d48b021

  • [Optional] Steps to reproduce →

  • Expected result → the bots should wait and close the deals only if after receiving the missing funds the TP condition was met and not immediately after adding the funds because this obviously could close the deals at loss.

Thank you for reporting this issue, Rossano. We’ve received your detailed bug report regarding the bots closing deals in loss after restarting them. We will look into the bot URLs you’ve provided and investigate the behavior you’ve described. If you could also share the deal ID related to this situation, it would help us assist you more effectively. We will update you shortly on our findings.

We will check that. In the meantime I advice you against using TTP with 0.01%. The bots don’t work with candles they work with real time ticker prices, you have almost a 100% chance of hitting that 0.01% within a few seconds, which defies the purpose of a TTP and will most likely result in worse TP price than without it. Anything less than 1% is pointless, I will have to make a limitation on the front end to not accept values under 0.5%.

never had any issues using such a small TTP to be honest I think the problem is about when the bot closes the deal - after receiving the funds to close the deals instead of waiting for the TP condition to be true the bot just closes the deal as soon as those funds are available to close the deal either in negative or positive

NOTE I have added a few bot links and deals ID but they are a lot and I haven’t got the time to add them all

TTP is just a way to don’t lock funds - if we can think of another way of placing the market order a sec before closing the deal I won’t use trailing - remember some exchanges used ghost orders years ago

I think the issue could be related to bulk restarting multiple bots from the dashboard not one by one

This issue is exactly what you described. Trailing triggered on a weak but there was a balance problem But the deal already in trigger mode and after restart, for those which balance were fixed, closed because price was already higher than trailing level.
And this kind of limitation of trailing for now. I’m thinking on improvements.
Meanwhile, workaround is following: update deal settings with trailing (you can set higher ,0.02% for example, and than return to 0.01 as default) It will reset deal trailing mode