I swapped my old ordering method with order_optimal_portfolio as it is a preferred method, but I got problems.
Here are 3 problems that I have encountered:
1.Abnormal return: Check on the Jan 2017, the return abnormally went up.
2. Abnormal leverage: Also, I have set the opt.MaxGrossExposure(1), so that it won't use leverage(portfolio should always be 1). However, it went up since Jan 2017.
3. Open order: Possible explaination could be its unfilled open orders, but I would assume that opt_portfolio method would automatically adjust for that? That it would not order again if there is open order and close all the open orders on the end of day?
Question: What did I do wrong with my code using order_optimal_portfolio??
Here is the link to my previous post that using the traditional method to order stock, it looks a lot normal:
Trading with Benjamin Graham's formula - Fundamentals and bonds