The Finance Professor
How to Build Your Own Trading Model in 8 Steps
04/28/08 - 02:00 PM EDT
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.The Finance Professor grades a new set of balance sheets.
The Finance Professor breaks down a few key ways to cut through the noise of quarterly data.
The Finance Professor breaks down the consumer credit card market and how you fit into the landscape.
Apple and AT&T were among the most searched stocks on TheStreet.com Friday. Here's what Cramer had to say about them recently.
Catch up on his thinking on the hottest topics of the past week.
Investors will have to deal with a Fed meeting and another flood of earnings and economic data.
Looking for deep value with Defiance Asset Management, polling big investors about where the market's headed, plus much more.
See who made what calls.
3 Stocks I Saw On TVDan Fitzpatrick examines three stocks viewed on Fast Money and Mad Money Today's stocks include Deere & Co., Petrobras and MBIA
TheStreet.com Ratings checks in on First Community Bancorp and First Niagara Financial Group two months after recommending the stock.
Take-Two's latest hit receives a perfect score from industry reviewers.
- Top Rocket Stocks for Week: Walter
- Cramer on Top Searched Stocks: Citi
- Credit vs. Debit Cards: Weighing the Options
- Power Stock Rankings: Energy
- Top Dividend Stocks of the Week: Pepsi
- Let the 3G-Phone War Begin
- IndyMac Sputters to Loss
- Report: Icahn Zeroes in on Yahoo!
- Tuesday's Analysts' Upgrades, Downgrades
- TSC Ratings' Upgrades, Downgrades
- Cramer's 'Mad Money' Recap: Mad Money's Rally Playbook
- The Polycarbonate Price Cut
- CalPERS Pushes for Clean House at Standard Pacific
- Investing in China: What You Need to Know
- Coming Week: 'Glimmer of Hope'
- Top Stocks With Insider Buying, Buybacks
- New Solar ETF Helps Spread Sector's Risk
- Feuerstein's Biotech-Stock Mailbag
- Need to Own Energy? Here's How to Do It
- My Company Doesn't Provide Health Insurance (Gulp!)
Sponsored by:

BEAT THE STREET GAME:



