question around optimised_position #526
-
Hi Rob, but what is happening when one calls Interestingly the Sharpe ratio is worse for the optimised_portfolio, vol is much higher, but I think this is a function of unoptimised buffers for my account size. Also, when running Thanks for this interesting code. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.