-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
what about multiple stocks/data inputs? #1105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
or is that functionality actually already there?
so would I pass something like |
Check out https://github.com/dodid/minitrade, a fork from this project which allows for multiasset backtesting. |
Seconding this since it is getting more important to mess with pair trading. Also @PabloCanovas do you know of any equivalents for |
You may want to take a look at https://github.com/s-kust/python-backtesting-template/
|
Hi, I like the direction where backtesting.py is going, but I am missing some backtrader functionality... Maybe the most important - currently only one stock is supported right?
Because if I have a strategy which uses 2 stocks, how would I deal with that? The backtrader way was using self.datas instead of data, which then becomes an array with all the stock datas, and then obviously the buy/sell functions would need a ticker parameter...
Or is there already a way to achieve this?
The text was updated successfully, but these errors were encountered: