Custom allocation
You can use custom weights:
1
from empyrial import empyrial, Engine
2
​
3
portfolio = Engine(
4
start_date = "2018-01-01",
5
portfolio= ["BABA", "PDD", "KO", "AMD","^IXIC"],
6
weights = [0.1, 0.3, 0.15, 0.25, 0.2], #custom weights
7
)
8
​
9
empyrial(portfolio)
Copied!
Last modified 4mo ago
Copy link