J Li
1 min readNov 29, 2018

--

You can use scypi.optimize to find the optimal. You need to define a function you want to optimize first. In this case, you need a function to compute sharp ratio. Then optimize with optimizer, you can get the optimal allocation of each stocks.

--

--

No responses yet