Skip to content

Backtest on multiple stocks & aggregate results #468

Answered by AGG2017
atakanokan asked this question in Q&A
Discussion options

You must be logged in to vote

For me there is no big difference how you will interpret the results. The main method is to loop the run over several tickers, get the results and accumulate them in one pandas series object, like the index is the stock list, the columns are the stat result (all or selected one), and with pandas you can have all statistics over the result from one strategy for your list of stocks (averages, standard deviation, max/min, etc.). Repeat this for all you strategy and finally you can compare the result statistics from all series.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by atakanokan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants