Is there a way to analyze only one asset? #81
Closed
frank01100110
started this conversation in
General
Replies: 2 comments
-
Yes but you have to give more than one stock (I need to fix this). Here is the code: portfolio = Engine(
start_date= "2018-06-09", #start date for the backtesting
portfolio= ["BABA", "TSLA"], #assets in your portfolio
weights = [0, 1], #equal weighting is set by default
benchmark = ["SPY"] #SPY is set by default
)
empyrial(portfolio) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to analyze only one asset?
Beta Was this translation helpful? Give feedback.
All reactions