Get a report
If you want to get a PDF report of the backtesting use get_report instead of empyrial function:
1
from empyrial import get_report, Engine
2
​
3
portfolio = Engine(
4
start_date = "2018-01-01",
5
portfolio = ["BLK", "BAC", "AAPL", "TM", "JPM","JD", "INTU", "NVDA", "DIS", "TSLA"],
6
optimizer = "EF",
7
rebalance = "1y",
8
risk_manager = {"Stop Loss" : -0.2}
9
)
10
​
11
get_report(portfolio)
Copied!

Output

Last modified 4mo ago
Copy link