Last night I got the idea to create an indicator that would tell you the best period for any period-based indicator. The main impetus for developing an indicator that would auto-optimize is that market conditions change. I'm thinking that after every trade, the optimization phase will run (it is fast on most indicators). There might be additional rules based on whether the last trade won or lost. We'll see when the ticks start rolling in on Sunday night.
The custom indicator is a series of three nested loops that iterates through each period, and through Bars 10 thru 10 * Period.
Currently, you configure your buy/sell/close buy and close sell conditions and the indicator calculates the period for you.
The white lines are profitable trades, and green trades are sell trades which should've been a buy, and red trades are buy trades which should've been a sell. The indicator also consideres the spread value in its calculations.
An additional and similar resource (which I also use), is here: http://articles.mql4.com/766
...then, a trading day later, the period for RSI has shortened from 10 to 9. Period '10' is still profitable, but at one hundred dollars less. (not shown...)

With pure technical analysis trading is a probabalistic game, and to win this game we need every percentage point we can get.
Here's a quick backtest using iOBV as selected as the best indicator for the H4 time period.

Here's a snip of what is coming out of the genetic algorithm version of the expert advisor since January 2000...

Here's an updated/improved snip of what is coming out of the genetic algorithm version of the expert advisor since January 2009... (smoother, relatively...) (The numbers on the right are dollars... $$$)

It should be ready for release soon. :)
Posted
06-13-2009 7:33 AM
by
arachnode.net