Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
I'm continuously failing orders and I'm not sure why

I have a vague understanding of the principles of Long-Short Equity strategies, and I'm trying to write an algo to test that understanding before I move on to actually watching the lectures.

That being said, I've written a fairly basic algorithm but every order it places will not pass. Every one of them fails to trade. Any ideas?

1 response

It's a simple oversight. You used the wrong variable names in order_target_percent and forgort to access DataFrame.columns to get the list of sids from get_fundamentals