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!
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.