How to calculate daily returns #776
Answered
by
cjdsellers
linmingren
asked this question in
Q&A
-
I had run a backtest with 6 days bar data, but I noticed that there is only one 'returns' value in method ReturnsVolatility#calculate_from_returns. Shouldn't this parameter have 6 elements? |
Beta Was this translation helpful? Give feedback.
Answered by
cjdsellers
Sep 14, 2022
Replies: 1 comment 2 replies
-
Hi @linmingren Thanks for the question. So the built in returns statistics calculate per position open to close, rather than any particular time period. This is something which we could add later, you could also calculate this with some logic in your strategy |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
linmingren
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @linmingren
Thanks for the question. So the built in returns statistics calculate per position open to close, rather than any particular time period. This is something which we could add later, you could also calculate this with some logic in your strategy