How to Avoid Curve-Fitting in Trading Strategies