How to Build Your Own Trading Model in 8 Steps
As we wind down Financial Literacy Month, I want to point out Joel Greenblatt's book The Little Book That Beats the Market. In the book, Greenblatt describes a trading model that he developed. While I have not tested his model and therefore can't recommend an investment strategy that's based on it, the book is worth reading because it outlines how he developed a profitable and consistent model for trading.
I have my Seton Hall students read Greenblatt's book in advance of a class I teach entitled Simple Guide to Building an Investment Model. Models give us an objective manner in which to trade. They help take some of the guesswork and subjectivity out of deciding when to buy and when to sell. Just like chart formations provide technicians
with trading models, a well-tested statistical model can provide a framework for successful trading as well.
Thus, as you develop your investing knowledge, here is an eight-step overview of my investment modeling class.
Step 1. Develop a Hypothesis
Begin by outlining a theory which you may believe can lead to a profitable model. Pose the hypothesis on some sort of logical statement ("If X then Y.") For example, the hypothesis might be something such as, "If the S&P 500 drops by more that 2% on a Friday then the index will rise on the following trading day."
Make sure that the hypothesis is a bona fide relationship. In other words, comparing tech stock prices to consumer spending might work, while a comparison to pharmaceutical prescriptions makes no sense.
Step 2. Build a Database
In order to prove or disprove your hypothesis, you need to accumulate data over a long period of time. The data should be in some sort of time series so that if you need to compare it to other data points, you can line up the many variables which you will be utilizing.
Remember, the more variables and the more data points which you use, the more significant your output will be from a statistical perspective.
You must make sure that the data is from a reliable source, such as a premium service like Bloomberg or Reuters, or a solid free services like Yahoo! Finance (see "Investment Research: Ignore the Ratings, Read the Reports"). Also, I suggest that the data is retrievable in some electronic and downloadable form.
Once you download the data, you will want to check to make sure that there are no missing, incorrect or "corrupted" data points. For example, sometimes a holiday will show up as a data point which must be deleted.
Step 3. Make Observations
With the raw data that you have now aggregated and organized in a time series database, you will now scroll through the data and make some observations on what you see.
Wondering what you're looking for?
Your goal here is to notice any significant changes in the "dependent variable" (the "Y" in the "if X then Y" example above) based on changes for one or more of the "independent variables" (the "X" in the example above).
This exercise is one of visual observation that seeks to achieve one of two objectives. First, you want to confirm -- in a subjective and non-quantifiable manner -- that your original hypothesis (step one) is directionally correct and worthy of additional analysis. Second, you might detect a pattern or anomaly that was not part of your original hypothesis and could form the basis of a new or modified theory.
As an example, you might recognize that "down" Fridays may be followed by "up" Mondays.
For more on how to analyze data, read "What Investors Need to Know About Historical Data" and "15 Ways to Check Data" on TheStreet.com.
Step 4. Develop Calculations
This is by far my favorite step in the process. I call it "torturing the data."
In my class, the students take their hypotheses and observations and we begin to test them out using formulae and calculations. This may take one of two forms: logical queries or "regression analysis."
Logical queries will say if condition "A" exists, then perform calculation "B" and provide me with the desired output "C." Regression analysis is a mathematical or statistical operation in which you attempt replicate or predict the dependent variable, by using the independent variable.
If you perform a regression, then it is important to determine that your output meets or exceeds many of the statistical tests or requirements that confirm the statistical soundness and significance of the output.
Step 5. Define Your Trading Rule
The calculations that you perform in step four will now dictate a set of trading rules that you can now "codify" (or "systematize").
For example, I started out with the hypothesis "If the S&P 500 drops by more that 2% on a Friday, then the index will rise on the following trading day."
Now, through observations and calculations, let's say I determine that the trading rule here is "If the S&P 500 drops by more than 2% on a Friday, then buy the S&P 500 on Friday's close and hold it until the it gains 1%."
A great example of a trading rule was developed by TheStreet.com's James Altucher, which he calls the "QQQQ Crash System." Here is how the rule is stated:
below the 10-day moving average of the low price of each day.
To calculate this, you can use the lower Bollinger Band using a 10-day moving average, 1.5 standard deviation and the price series of the lows of each day.- Loading Comments...
- Loading Comments...
Recent Comments
Featured Photo Galleries
| Dow Jones | S&P 500 | NASDAQ | 10-Year Note | |
|---|---|---|---|---|
| 10,328.89 | 1,102.47 | 2,211.69 | 35.46 |
Oil *
73.88
|
|
UP
20.63
|
UP
6.40
|
UP
31.64
|
UP
0.59
|
10 Yr
3.55%
SPDR Gold
108.95
|
|
+0.20%
|
+0.58%
|
+1.45%
|
+1.69%
|
Data delayed 20 minutes |














