As you can see below, I have a long position opened.
In Hummingbot, I'm expecting to close the position at 1% but the profit taking sell order was at 5% which is my short_profit_taking_spread value. In the logs it should also state "Creating profit taking sell order to lock profit on short long position".
Same issue happens in reverse when a SHORT position is opened, the profit taking buy order uses the long_profit_taking_spread value.
The bot opened a short position because my sell order was filled.
I'm expecting to close the position at 1% but the profit taking buy order was at 5% which is my long_profit_taking_spread value. In the logs it should also state "Creating profit taking sell order to lock profit on long short position".
Describe the bug
When my buy order is filled, it opens a LONG position. Then it crates a profit taking sell order with
short_profit_taking_spread
value.To reproduce this behavior, use this config to intentionally get your buy order filled and open a long position.
As you can see below, I have a long position opened.
In Hummingbot, I'm expecting to close the position at 1% but the profit taking sell order was at 5% which is my
short_profit_taking_spread
value. In the logs it should also state "Creating profit taking sell order to lock profit onshortlong position".Same issue happens in reverse when a SHORT position is opened, the profit taking buy order uses the
long_profit_taking_spread
value.The bot opened a short position because my sell order was filled.
I'm expecting to close the position at 1% but the profit taking buy order was at 5% which is my
long_profit_taking_spread
value. In the logs it should also state "Creating profit taking sell order to lock profit onlongshort position".Release version
Version: 0.37.1 Operating system: Ubuntu 18.04 LTS Environment: AWS t2.medium Installation type: Docker
Attachments
perp_mm_bug_report.txt logs_perp_mm_bug_report.log