Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kernc opened this issue Mar 11, 2025 · 1 comment
Closed

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

kernc opened this issue Mar 11, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@kernc
Copy link
Owner

kernc commented Mar 11, 2025

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

@kernc kernc added the bug Something isn't working label Mar 11, 2025
@kernc kernc closed this as completed in e1a86ef Mar 11, 2025
@esaesa
Copy link

esaesa commented Mar 11, 2025

verified and working. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants