Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
[Help] My algorithm isn't buying anything?

Hello guys, I'm kinda new to Quantopian, and I was testing my algo through Quantopian Live and it seems that my algorithm doesn't buy anything, even if it should, I maybe wrong, but I checked the MA 50 and 200 of TSLA and since the MA50 is > than MA200 it should buy shares.

PS: I harcoded the stocks, so the before_trading() function it's useless (for now)

I put a sample of the algorithm so you can tell me what is going on.

Thanks!

1 response

Nevermind guys, sorry if I wasted your time, the algo run just fine