Have three different indicators or three different settings of the same indicator, one long term another middle term and the third even shorter term.
Set appropriate stops.
If the long term indicator is trending up and you entered long, exit when the middle term indicator shows a peak or reversal to the downside. If you entered short, exit when the short term indicator shows a low or reversal to the upside.
If the long term indicator is flat, exit on the short term indicator whether you are short or long.
If the long term indicator is trending down and you entered short, exit on the middle term indicator. If you entered long, exit on the short term indicator.
It's a pretty general idea and I'm not sure that it would work but this is the first thing I would try.