Intradeaybill, thank you for the response.
Demo.
It depends what you mean by out of sample.
Price bar series which is out of the training ("pattern search") data series. For example, I used 10 years of QQQQ 60 min data till mid April 2008 for pattern search, and then tested the found patterns on the two following years, until mid April 2010, as OSS (Out of Sample) . I did split that OSS into two separate 1 year periods so as to see the different results on a the very bullish last year, and the bearish year before that.
How many runs have you done?
So far only ~ 15 runs; I got timed out of several expanded searches.
It is normal to have more losers than winners in out of sample testing. Otherwise, markets would be totally screwed up.
I am not sure I understand your comment - whether you relate to win %, or to overall profit.
I am trying to get some quantitative confirmation to the power of APS, hopefully for both daily and intraday data. My thinking is that if APS is useful in identifying robust patterns, Out of Sample tests should show, on the average, positive profit - that is overall PF>1 ( the win % as standalone is meaningless when not tied to the win/loss ratio of trades) . They should be significantly better than random trades. Probably for good trading systems one will need more than the raw patterns - (e.g. use pattern combinations) if the numbers are not strong enough.
Nevertheless, I do expect the result to have positive expectancy with reasonable statistical confidence and robustness; and while I should probably see some degradation relative to the training period - it should not show a total collapse . Similar to what Michael Harris is reporting in an article on QQQQ daily data - PF in one out of sample period kept roughly same as in the 'training' period, and only small degradation in the next period, still being at around 1.5 .
Am I wrong with this expectation?
Am I missing something important here?
Why are you averaging profit factors by the way? This does not make sense to me.
I was probably not clear. I am not averaging profit factors.
The demo version does not allow me to test systems or export the trades one by one. So I look at the results as if I were trading all the found patterns in parallel, with equal $ amount for each. I export the results to CSV, sum up the profit from all winning trades, the loss from all losing trades, and the ratio of these sums is what I reported in my post as the overall PF.
If one were to attempt try trading this in real life there will be "doubling up" on trades that were identified by different patterns, so the PF might lead to an "optimistic" view.
This is the best I could come up with for evaluation; any better idea?
Regular search is someting like 1/6 of the program capability (20 vs. 112). I do not count delay, that maybe lowers that to 1/18 or 1/24 of program capability.
With the demo I had several expanded searches timed out. With a couple I managed to complete, I got more patterns; the resulting PF for the calculation I so is in the same order of magnitude as with the regular search (as I would expect; the benefit of more patterns will be, I presume, when I try to build a real system and combine patterns for higher probabilities).
I think you should do extended searches for many different T/S entries and also increase the size of the data files.
Are you sure that in 10 years of hourly data you only have 16,000 bars? Something wrong with your data? Also, are you looking for 4% profit from entry price in hourly data? That is more like position trading. Better use daily data.
For QQQQ, being a stock, I used hourly bars only for the day, regular session.
I do hope to get good results for intraday trading; I started with 5 min data and got nowhere. So I am trying the hourly data, figure out what works, and then try again lower time frames. For the hourly data I thought of using a small multiple of ATRs, so as to get trades typically lasting from few hours to few days. Maybe it is too high. Following your suggestion here I tried lower T/S (e.g. 1%, 2%, 3%) .
I am getting better results, and several of the tests show positive profit factor. Still, the PF is relatively low (max 1.2, most are lower though), much lower than the search PF (> 1.5 or 2.0 ), and the profit/trade is quite low.
I continue exploring; If you would not mind giving me some more pointers on where to look (e.g. time frames for intraday, T/S, instruments) I would be thankful.