Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Looking for loopholes In seemingly stable algo

This in an algo that I did not really modify, simply increased the length of backtest run to the present. It looks good as it stands, and i am impressed that it follows the smooth trajectory of the benchmark while beating its returns. However, it looks too good. I need ya'll to poke holes in this algo to find potential weaknesses. Have at it

3 responses

If you turn on only the "Outlay" in the Custom data, (or add record(Leverage = context.account.leverage) to handle_data), you can see that there is probably some borrowing involved. This can be due to timing in regards to overlapped positions during daily trade rebalancing. Some work would have to be done to eliminate these margin dips. And, this is daily data. Typically shifting to minutely data destroys these favorable daily returns. I've personally never seen a match between daily and minutely. To trade this, you understand, you have to run this minutely.

Good point. I overlooked that aspect. I'm still getting practice down on the process here at Quantopian, as I'm back on the site after having been gone for a bit.

Just because you're using minutely data doesn't mean you need to trade more than once a day / at all per day.