I am working on a momentum trading strategy that trades stocks based on volume, momentum, and a percentage gain. I keep getting an error when I try to combine my buy signal with order execution. I also want to be able to sell my current positions when the momentum indicator goes below a certain value. Please Help.