A trend indicator / filter that filters noise out. Recommend you use 2nd order or 3rd order parameters. 1st order is just a SMA smoothed by another SMA. So for the "Order" Parameter the options are 1, 2, or 3.
Thanks to Zondor for helping with the original code.