The optimization trap
Making more tests with the optimization process of my last EA i can conclude that for 2010 the EMA cross most profitable is 8 with 173 for short positions.
I found that with bigger values in Take Profits and Trial Stops the expert can get more profits like for example:
2717.52 578.42 StopLoss=550 TakeProfit=6050 Tral_Stop=1750
profit drawdown $ stop loss take profit start trailing at
This means that my EA using the cross of the 8 EMA and the 173 EMA taking only short position made from 2010-01-01 to 2010-08-30 ( 8 months ) 2717.52 dollars with an initial deposit of 500 dollars. The 2717 is pure profit, the initial 500 are also there, so the trader using this system from the beginning of the year haves now a total of 3217 USD.
This last results are not the closer to the truth i can get, those results were just one of the best passes of the optimizer using control points. I am loading now this variables to the strategy tester and the results are even a little better:
The proof of fire will be to test this in year 2009, i know that the classic 21 and 200 cross failed at 2009.

This is the optimization trap, the values picked was for that period of time and simply don’t work in others when conditions are different.
2010 was a big downtrend almost all the year:

The problem with a simple crossing moving averages expert is that it is to simple, it don’t check how are the conditions of the overall market, i will probably try to use more than one time frame to make something better. For example if trend is down in a h4 or daily chart use only short strategies in the 15 min charts and vise verse.
I am not ready yet.
Tags: meta trader, mql, optimization trap, optimizator trap, strategy tester




