Closed mgrytsai closed 1 year ago
@mgrytsai I don't think there is a straightforward way to include it into the existing implementation. Do you absolutely need the greedy approach? For small portfolios, it should be easy to write it as a mixed-integer linear program.
What are you trying to do? I'm using
discrete_allocation
to convert my percentage allocation into number of shares I need to buy to get as close as possible to target allocation. However, in real world there is a transaction fee associated.The question I'm wondering what will be the best option to incorporate transaction fee when doing greedy search.