Some simple strategy based on KAMA (Kaufman adaptive moving average), which adapts to ER (efficiency ratio - signal/noise ratio).

Original had some sort of volatility filter (commented out) and some other things I didn't done here like Stop order based on ATR.

Parameters to be optimised, _period = 100 is best from original futures strategy.

Author