Looks promising. I am concerned about the volatility this algorithm maintains. I will investigate the effects of varying the eps parameter. It appears you are allowing the algorithm to pull some money out of the market if it detects poor performance correct?