Skip to content

Position.pl_pct and Position.pl signs don't match #1240

Closed
@kernc

Description

@kernc

Discussed in #1235

Originally posted by @esaesa March 5, 2025
image
I was using pl_pct as reference to take profit but it caused losses. After debugging i found the position.pl is the realistic reference and actually i can't find what is position.pct is representing.
I checked the code and i found it is weighted sum of individual trades but actually i can't find what is represents if it is positive while the position pl is negative
In the image you can find all trades entries prices and sizes and last price

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions