modified the moving average intersect trading algorithm to work with trailing prices