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