Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Example code for your first Quantopian Algorithm

Hi, for a class I'm giving at Harbour Space about Algotrading, I've created this example code, which can be used as a template to start with. Note that the algorithm is quite stupid, you switch from long to short and from short to long on each 5th day. So day 0, you are long, day 5 you go short, day 10 you go long again, etcetera.

1 response

Welcome Harbour Spacers!