Implementation of Model 4 explained in the paper "Trend without Hiccups" for smoothing the price series and tested its performance on SP500 mini-future contract.
Please check the paper for more details (https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2747102)