Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Looking for a BRANCH/SKIP code

Looking for code that will branch from one line of an algorithm to another line in the algorithm.

Is there a Branch/SKIP/GOTO code, or an IF code that will branch based on a given parameter value?,

Thanks, Bill R.

4 responses

You might want to look at some Python tutorials. That is the language used for programming in the backtester.

Python tutorial, Dive into Python, and Learn Python.

Here's an example--seems useful.

Useful, yes. But the returns seem like a mirror image of the benchmark :)

Now you just have to do the opposite and you'll be unstoppable! :)