Re: Automatic Pattern Search Quote:
Originally Posted by ronblack Good question. I think the answer is (probably) that on the contrary there are some disadvantages to that like the possibility of your stop getting hit during slow markets.
I will take a closer look at your probability equations and provide some comments. I also think that for about 25,000 bars a search range in the order of 4,000 bars is good enough. Maybe 2,000 bars is a bit restrictive.
As far as considering delay patterns first and then the ones without delay to calculate probabilities this is because I don't want to wait to execute the trade. However, I will run some tests with the reverse conditions as Alex pointed out.
mballagan, I think with just a few patterns it is very difficult to come up with a statistically significant system. If you cannot run an extended search due to execution time limitations try combining different timeframes. For example:
- 1 hour determines the trend
- 30 min is used for confirmation
- 15 min (I prefer 20 min by the way) is used for trade entry along the direction of the trend.
To me, this is the real power of APS, i.e. the ability to run different timeframes and configure different systems in just a few hours.
By the way, Michael Harris talks about timeframe combinations in his new book I don't recall the chapter but it was one of the best ideas I've ever come across.
Ron |
I ran an extended search on EURUSD 15 min data for the year 2007 (24542 bars) with a search range of 4000 and a target profit & stop of 25pips with a 70% profitable target.
This gave 38 long patterns and 9 short patterns. A trading system was created based on these patterns as following:
Buy if two or more long patterns occur at the same time (target/stop of 25 pips)
Sell if two or more short patterns occur at the same time (target/stop of 25 pips).
Testing this system on the Metatrader platform on EURUSD 15 min data from 01.01.2008 - 11.08.2008 produced an equity line that was largely flat in the first quarter of 2008, moved up slightly in the second quarter but then trended down ending in a loss. The amount of the loss depended on the lot size traded on each trade.
As mentioned before there are many ways of combining patterns to form systems and there may be better ways to combine the patterns to form systems such as using delay patterns. I created a similar system on EURAUD 4HR data with a 100pip profit/stop loss and entered this system into the Automated Trading Championship. The patterns were extracted on data from 01.01.2008-19.10.2008. Unfortunately the system has lost money in simulated trading down from $10000 to just over $1000 in 10 days and will probably be eliminated from the competition.
I havent yet looked at the idea of multiple timeframe confirmation using APS but will explore this idea. So far I have not managed to achieve the kind of success you have described using APS patterns.
The other thing I have noticed is that the number of long or short pattens found by APS will depend on the trend of the market during the period being sampled. So for example the EURUSD was trending largely upwards in 2007 hence many more long patterns found than short patterns in the pattern search I described on EURUSD 15 min data.
This could cause problems if the market trend changes so for example the EURUSD went largerly sideways from March 2008-July 2008 and then trended down after. So if you have a system biased by a greater number of long patterns you may lose money in a falling market. My conclusion is there should be a way of determining the trend of the market before executing a trade based on a long or short pattern signal. I suppose the multitimeframe idea you have mentioned may be the way to do this. |