This is an easy way to test it out to see what works and what doesn't.
There are moving average exits for both the long side and short side. You can pick from , , . This also applied to a moving average trend filter. This is separated for the long and short side so that when you combine them one can be above and the other below. There is also a % profit target and % stop loss built in.
The source code is open, so feel free to take a look and adapt anything.
I hope it helps!