Skip to content

question around optimised_position #526

Answered by robcarver17
js190 asked this question in Q&A
Discussion options

You must be logged in to vote

System.accounts.portfolio() just gives you the p&l of the ideal portfolio. It allocates risk to every instrument, but defaults to doing this with rounded positions. So the allocation is basically ad-hoc, on whatever happens to have an integer position. This could easily have a higher Sharpe Ratio, since by luck it might just have an allocation to things that have gone up a lot.

Not sure about fatal but it sounds like the instrument whose data appears last in your history has zero costs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by js190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #524 on January 27, 2022 08:35.