Yikes, made a mistake with what i posted. Correction here in bold:
The rule I posted is fine, but there was a potential issue with entries and exits that you'll see if you use it. You should set up your testing structure, however you do it, so that these things are variables... making a change like this should be extremely easy.
If someone goes with the original rules we'll use them too, but these are more clear to start with.
Buy when today's close is equal to or less than the 25th percentile of the past 10 days' range.
Sell that position when the close is equal to or above the 50th percentile of the past 5 days' range.
Rules for shorts are opposite.
The rule I posted is fine, but there was a potential issue with entries and exits that you'll see if you use it. You should set up your testing structure, however you do it, so that these things are variables... making a change like this should be extremely easy.
If someone goes with the original rules we'll use them too, but these are more clear to start with.
Buy when today's close is equal to or less than the 25th percentile of the past 10 days' range.
Sell that position when the close is equal to or above the 50th percentile of the past 5 days' range.
Rules for shorts are opposite.
Quote from talontrading:
Ok... cool... but how about this deal? You guys do the work. I'll give ideas and lay out each step, but it's up to the readers of this thread to actually crunch the numbers and come up with answers to each step. As long as we get good answers or good attempts at answers I'll go through the evaluation of each step so you can see the thought process. If the answers we get are wrong I'll correct them as long as there's interest.
This can be done in Excel or whatever people have available? (btw, what do the readers here use? Tradestation? Matlab? R? Excel? VBA? WealthLab?)
First step: Buying pullbacks.
1. Look at this portfolio of stocks. (more or less randomly selected big stocks from different industries)
MSFT
COH
MON
OXY
DE
2. Going back to 1/1/2004, what would have been the results of applying this rule set:
Buy when today's close is equal to or less than the 50th percentile of the past 10 days' range.
Sell that position when the close is equal to or above the 50th percentile of the past 5 days' range.
Rules for shorts are opposite.
This is just a starting point, but start here. Someone post some answers and we'll go from here.