Trailing stop loss doesn't work with shorts

Bug info:

  • Bot URL →
  • [Optional] Steps to reproduce → Create a bot with 10x leverage and trailing SL -1%. You will see that each new deal is immediately stopped without any price action
  • Expected result → SL should remain at -1% and only trigger after a downward price action

Thank you for reporting this issue, Frederick. We’ve received your bug report regarding the trailing stop loss not functioning correctly with perpetuals. To assist you more effectively, could you please provide the bot URL you mentioned? Additionally, if there is a specific deal involved, please include the deal ID. We will investigate this matter and update you shortly.

Maybe it’s because -1% with 10x only requires a deviation of less equal -0.1%?

That’s why

That’s not correct unfortunately. When you set -1% SL it works just fine for 10x, the bot is reporting the correct max deviation of -10% and the actual loss is 10%. It is only when you switch on the trailing, none of the deals work, they just being stopped immediately with exchange fees losses. As a workaround I am using the price change indicator inside the TP. But it is not the same as trailing SL, since price change is timeboxed and not absolute.

Will check that


I cannot reproduce. Here is an example with trailing -1%.
Can you send bot it. There should be something different than trailing -1% setting.

1 Like

I am sorry, forgot to mention it’s short. You can tell this bot just keeps restarting the deals (this doesn’t happen when you switch off trailing):

https://app.gainium.io/bot/67a21b6848e62fdf945569e8?a=9346&aid=share-bot&share=52a0757b-606e-4e3f-97e7-90f1d5defccb

Able to reproduce on short. Will be included in next release. You will see the notification when it will be deployed.

1 Like