Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Anyone see any problems with this? I'm getting insane returns.

I believe there might be something wrong with the way I wrote the notional. I'm fairly new to python and pretty much copied a lot of the stuff from the tutorials. I chose some random stocks I thought were pretty reasonable and got returns I didn't think could possibly be accurate.

Thanks

4 responses

Brian, your algorithm is borrowing insane amounts of money to get those returns, you will have to code in some money management rules. I added a couple record variables that are useful for knowing how much you're borrowing. Maybe try one of the other order methods, the 'target' style orders can be useful.

Hey David thanks for your reply, I just realized what I think might have been the problem with the notional (the greater-than and less-than were flipped), let me know what you think about this version thanks.

Needs work

Thanks for the input Kev.