Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Error in line about buy count(bc)

if cpt < mavgmtot:(
order(context.t, 1)
bc = bc + 1
log.info(bc))

Any help is greatly appreciated.