Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Rebalancing Error

I am getting an error on line 16: NameError: name 'rebalance' is not define
Can anyone please help?
Thanks.