So I made the following modifications and ran a simple test...
On the buy side, same -2 Z threshold, but the buy order changed to 25 not 100.
On the sell side, raise the Z score threshold to > 3 from the original >2.
The idea is to be unbalanced, buying gradually in the downs and waiting longer to sell the ups, but selling all if you hit a 3Z top tick.
On the original period, it showed 33.2% algorithm return vs 30.1% benchmark, with a 0.43 beta (very good), a 3.23 Sharpe (also very good), 0.20 Alpha, and max drawdown 6.6%.
With that much risk reduction, should be able to exploit the low beta / high Sharpe to get excess returns instead of risk reduction if that is what you want, simply by using modest leverage.
Needs longer backtests in market period that aren't uniformly rising, to be sure.
I hope this is interesting.
Jason Cawley
Wolftram Research