Henning,
If you are going to go some computer optimisation please read Whites reality check, I applaud your effort but I think the trading strategy as described might be too simple unfortunately and historical optimisation can make anything profitable. In an ideal strategy edge would be present do to an extrapolation of platonistic assumptions and optimisation would further tune this rather than produce profits in itself.
Also AAPL is a lousy stock to simulate anything with apart from itself as its basically an complete outlier in terms of statistical factors(std deviation,exposure to news etc)