Here is a small code for you. Please don't criticize me if it is wrong.

BTC current price short

Fill position at 59000

Stop loss at 59550

Take profit at around 58000-58150