Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
The Result of Backtest

Today, I encounter the problem of the result of backtest. No matter how many times I run the algorithm, the result of the return is always 0%. (Just like the picture shows) But before today, I got the return that was not equal to 0. Also, I try other algorithms and each algorithm all result in 0% return. Does any body know how to solve this problem?

2 responses

Hi @Joyce,
The reason this is not working yet is that you have simply taken the template and run it without putting anything into it. The idea of a "template" is to provide a framework for you, into which you then have to put the parts that you actually want to use. So first you need an idea of your own to use for your trading, then you need to write it down, and then you need to place that inside this template which Quantopian has provided for us here. Then, when you run the template with your trading idea inserted into it, hopefully it should work (although mine usually need some debugging first because I am not very good at writing python code). Best wishes.

Thank you very much! Thanks for you, I understand that I need to add some trading logics in this algorithm. And I also have another algorithm which I add the trading logics in it, but it face the same problem with this algorithm. The following is another algorithm:
https://www.quantopian.com/posts/the-result-of-backtest-2