hadialaddin / crypto-genie

Suite of advanced automated trading bots and risk management tools to empower Day Traders and enable them to stick to their Trade Plans.
https://linktr.ee/hadialaddin
MIT License
62 stars 21 forks source link

Enforce TP / quantity ratio of the position to close. #35

Closed Mantis12 closed 2 years ago

Mantis12 commented 2 years ago

Hello Hadi, thank you for the code, the bot is awesome!

I'm running into the following problem, although it looks like the setup is right, and the info displayed in the terminal is also correct, when I check the exchange the actual ratio for the 1st TP is 100% of the position.

Am I doing something wrong?

BTW in my setup I had to replace the line: pybit import HTTP, WebSocket to pybit.usdt_perpetual import HTTP, WebSocket

Best regards

Screenshot_21 Screenshot_4 Screenshot_3

Mantis12 commented 2 years ago

problem solved photo_2022-04-04_21-33-47