Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Did I break something? [Beginner]

I don't understand what's actually happening here. Could someone please help me out?

3 responses

Looks like the backtest allows to borrow unlimited amounts of money. Oops!

order_target_percent function does not test for open orders so you should do it in yours code:

if get_open_orders(stock):  
            return  

Dear Quantopian staff .
I see this kind of mistakes every other day.
Why not to incorporate
if get_open_orders(stock): return

into order functions?

Hi Vladimir Yevtushenko, thanks for that.