Analyzing trades - how is Return
column computed?
#264
Unanswered
andreas-vester
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Here's the function: vectorbt/vectorbt/portfolio/nb.py Line 5123 in f67c502 Return is not displayed as a percentage (that it, it isn't multiplied by 100), but I'll consider doing so. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am studying the docstring of
vectorbt.portfolio.trades
and I've got some questions.How do you compute the
Return
of individual rows? The first return of 2.75 seems to be clear, it should be the percentage gain with respect to initial portfolio value (=100), right? What about the subsequent rows?Suggestion: Rename the columns to
PnL in currency
andReturn %
, if this is really what you intend to present. This will make things a bit more clear.Beta Was this translation helpful? Give feedback.
All reactions