Skip to content

Update stats calc for buy and hold to be long-only #152

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

Merged
merged 1 commit into from
Oct 4, 2020

Conversation

eervin123
Copy link
Contributor

@eervin123 eervin123 commented Oct 4, 2020

Changed the "Buy & Hold" stats calculation to remove the absolute value function. It will now reflect a negative number if the underlying asset has a negative return for the comparison period.

Fixes #150.

@kernc
Copy link
Owner

kernc commented Oct 4, 2020

Lgtm, thanks!

@kernc kernc merged commit 3045b64 into kernc:master Oct 4, 2020
@eervin123 eervin123 deleted the stats_update branch October 31, 2020 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarification suggestion for stats output "Buy" & Hold label in output
2 participants