Hi all, 

I'm trying to create a strategy that purchases a stock with a macd strategy but then sells it immediately when it returns 1%. I have tried this with the attached backtest but it keeps going wrong. How should I fix this?

Thanks,

Gabriel