My first challenge to overcome was creating a "back tester." I accomplished this by writing some code in Java that can call an internet based web service which has historical quotes. The back tester, can run a strategy, select holdings, buy holdings, sell holdings and track all the transactions over a time period. I also wanted to be able to track and chart the performance of a given strategy over time. While tracking performance may seem to be easy at first glance, it becomes a challenge when you start doing things like depositing money into the account on a regular basis. I did some searching on the internet on different methods of tracking performance, and I settled on a concept called "Net Asset Value" to track the performance; which allows you to track the performance gain of the investments, but is not impacted by periodic deposits into the account. There is an article on "The Fool" which describes the basic idea.
http://www.fool.com/FoolFAQ/FoolFAQ0056.htm
It took me about 3 weeks of coding before I had something which could execute some simple strategies and do all the functions discribed above. It was fun and I got to dust off some of my rusty coding skills!
Monday, September 30, 2013
One more disclaimer
I did want to mention that I am a current subscriber to an investing news letter called sound mind investing. I was immediately drawn to their news letter because the approaches they seem to have incorported in their strategies use many of the ideas that I have been drawn to; especially with regard to asset allocation and momentum. In fact they recently started a new strategy called Dynamic Asset Allocation, which switches among 6 different funds based on their most recent momentum scores. I bring this up because I want to be honest and transparent about from where I am receiving my "inspiration." I have certainly learned some things from reading their articles and news letters; however, I want to test some of my own theories to see if it is possible to improve the performance.
Basic Principles
As I mentioned in my welcoming post, I really got a lot of our the book A Random Walk Down Wallstreet. Specifically are asset classes, risk/reward profiles and corrolation. Corrolation is the idea that some investments follow their overall market very closely, and some do not. A risk reward profile is a 2 axis graph that shows the relationship between how volitile a stock is (how much varience it has about it's moving average), and the overall performance it provides over time. Finally financial instruments can be grouped into different classes; for example, long term bonds, short term bonds, large capstocks , small cap stocks, and commodities are instruments.
The idea is that we can group different stocks and asset classes together, to smooth out the ride (make them less volitile), or increase performance. We do this by combining stocks which are not corrolated to each other, such that the overall performance is increasing over time but losses in one asset class are conteracted by gains in the others. The seemigly pervailing wisdom of today is coming from this idea, we should spread our invements over different asset classes to reduce risk, and is called Asset Allocation.
Another major principal I borrow from "technical analysis" is momentum. Momentum is the concept borrowed from physics known as inertia. Assets moving in a geneneral trend tend to follow that trend until acted upon by an outside force.
I've been toying with some ideas of combining both. Can we use momentum to move in and out of the best performing asset classes, and yet be spread out over across enough asset classes to avoid unneeded risk?
These are the questions that are driving a lot of my current tests.
The idea is that we can group different stocks and asset classes together, to smooth out the ride (make them less volitile), or increase performance. We do this by combining stocks which are not corrolated to each other, such that the overall performance is increasing over time but losses in one asset class are conteracted by gains in the others. The seemigly pervailing wisdom of today is coming from this idea, we should spread our invements over different asset classes to reduce risk, and is called Asset Allocation.
Another major principal I borrow from "technical analysis" is momentum. Momentum is the concept borrowed from physics known as inertia. Assets moving in a geneneral trend tend to follow that trend until acted upon by an outside force.
I've been toying with some ideas of combining both. Can we use momentum to move in and out of the best performing asset classes, and yet be spread out over across enough asset classes to avoid unneeded risk?
These are the questions that are driving a lot of my current tests.
Welcome
Ive been having some ideas about an investing strategy for my personal use, and I thought I'd like to start a blog about what I am finding. First though, I'd like to introduce myself. My name is Jeff Hansen. I am a father of 2 girls and happily married for 16 years. I currently employeed by CentryLink as an IT Systems Engineer. I enjoyed helping people with their personal finances for 20 years and have been an active investor for 17 years.
My favorite book on the stock market has to be A Random Walk Down Wallstreet by Burton MailKeil. I have a bent towards value investing and I also enjoy technical analysis. I consider myself an investing "hobbyiest." As such, I do feel I need to be forthcoming that I am not a professional stock market advisor; I don't have a CFP, CFA, or any other credentials. I dont sell insurance, nor am I a stock boker. On the other hand, maybe that gives me an advantage that I don't have any other incentive than to create the best performing strategy than strictly the strategy's performance to it's own end. :)
I have been writing some software that will allow me to test some theories about certain strategies by pulling historical prices off the internet and running the strategy over different time periods. I have already run many backtests and what I am finding is very interesting which you may find
My favorite book on the stock market has to be A Random Walk Down Wallstreet by Burton MailKeil. I have a bent towards value investing and I also enjoy technical analysis. I consider myself an investing "hobbyiest." As such, I do feel I need to be forthcoming that I am not a professional stock market advisor; I don't have a CFP, CFA, or any other credentials. I dont sell insurance, nor am I a stock boker. On the other hand, maybe that gives me an advantage that I don't have any other incentive than to create the best performing strategy than strictly the strategy's performance to it's own end. :)
I have been writing some software that will allow me to test some theories about certain strategies by pulling historical prices off the internet and running the strategy over different time periods. I have already run many backtests and what I am finding is very interesting which you may find
Intriguing.
Subscribe to:
Posts (Atom)