I have worked with the algo from the tutorial and tried to enhance risk-adjusted retur, but i have not succeeded. Making small changes in the algo I went to the conclusion that the best option is to take less securities (both long and shorts) and have short SMA periods.