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

Hi everyone,
I'm trying to build a strategy using the SMA crossover, where the strategy will take a short position when slow > fast, and then it will take profit after 0.5%.
However, I'm running into a problem as slow>fast is still true after I took profit. How do I code it so that, the strategy will wait until the next signal?
Thank you