Skip to content
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

positions versus return #305

Open
dorienh opened this issue Sep 11, 2023 · 0 comments
Open

positions versus return #305

dorienh opened this issue Sep 11, 2023 · 0 comments

Comments

@dorienh
Copy link

dorienh commented Sep 11, 2023

I am feeding results from backtrader into quantstats (returns, positions, transactions, gross_lev = portfolio_stats.get_pf_items()). I really like the nice reports it creates, but I have a question related to positions versus return.

In functions like win_loss_ratio(returns). The returns should be given as input. However, what if I open 5 positions per day, 4 lose and 1 is a big win. Then this metric would just show win for the day. Instead, is there any merit on feeding positions instead? Many of the stats have this kind of position/daily returns question.

Related, we could also input low/high, to get more accurate Sharpe ratio etc.

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

No branches or pull requests

1 participant