Forecasting Methods
forecast stocks, bonds, foreign exchange and indicators
Monday, July 12, 2010
Gold Stocks
Will gold prices continue to rise? Who knows, as they've gone through the stratosphere recently. However, even if gold prices stay steadily at higher levels, gold companies should look to see their profits stay high, even as other sectors of the market sag.
Evidently even Cramer agrees with me. LOL
"Cramer said gold was up 24% last year and thinks it has not finished going higher. His picks tonight for the shiny yellow stuff are the SPDR Gold Shares (NYSE: GLD) ETF, and then in miners he likes Freeport-McMoRan Copper & Gold Inc. (NYSE: FCX) and Eldorado Gold Corp. (NYSE: EGO). Cramer even addressed the new small-cap Market Vectors Junior Gold Miners (NYSE: GDXJ) ETF for exposure. A brief explanation of each and his more general reasoning is below."
http://247wallst.com/2010/01/08/jim-cramers-gold-stocks-for-2010-gld-fcx-ego-gdxj/
Technical Analysis
If it sounds funny at all that this wouldn't be remotely obvious, during the Internet boom and what with 401K plans, with companies in the red and everybody betting on the Internet, a lot of companies went for years without any profits and their stocks never took a dive ... until the year 2000 and 2001, that is, when the market started tanking.
Technical analysis is not exactly the antithesis to fundamental analysis, but it looks primarily to stock movements, rather than company fundamentals, looking at the chart of the stock prices, etc., to determine how the stock is going to move and what it's going to do day to day.
Technical analysts make up indicators, most of which are calculations based upon the movements of prices, to give value levels to symbolic criteria, with names such as support and resistance, to rationalize what the market has done in the past, and try to determine levels with which they might determine what the market will do in the future, or if it is a wise time to invest or not to invest.
I wasn't too much into technical analysis until I got the book 'Batting .800' by Larry Williams. It was part of a course he had at the time towards investing, and it was quite a good read. He talks a lot about how he views patterns and what he tries to look for as a professional trader.
Towards this end of finding patterns in stock data, I've been thinking of making my own data mining tool, because I've never seen any tools that had the kinds of features that I've wanted in any other data mining tools.
Tuesday, September 8, 2009
S&P 90% Accurate Forecasting w/a Trendline!
My journey into forecasting started in 2005 when I came across an article in AI in Finance magazine called “Tahiti or Bust”. It outlined the experiences of an AI Expert who worked with an S&P trader to forecast the market. By combining neural nets and the trader’s expert knowledge, they were able to retire to Tahiti.

After about 2 years of trying to recreate their success, with little success, I discovered a little thing about the S&P and error measures, I found quite a few articles about people who were able to do very wellt rading in the short term. People like Larry Williams, who reportedly made $1 million trading futures in a year, starting with a $10,000 account.
http://www.amazon.ca/Made-Trading-Commodities-Last-Year/dp/0930233107
It was then that I noticed something about the S&P. Which is, if you look at the log of the S&P, which is that if you look at the long-term log value of the S&P, and draw a regression line, that it is 90% accurate. How many of these trading successes and strategies were based upon the long-term rise of the S&P, and how many were based upon other strategies?
Jurik RSX
Jurik Research (http://www.jurikres.com/) has an excellent version of these types of indicators called RSX. When I was trading forex for a while at night, I used RSX in combination with the JMA, and it helped a lot with with upswings and downswings. The problem with RSI and %R is that they are very jittery and prone to false signals. RSX seemed to be less prone to false signals, and helped out a lot.
One of the experiments that I did because I was tired of trying of re-installing the Jurik Indicators each time I upgraded computers, and because I wanted to try to use indicators with my own custom trading software was trying to reproduce this type of indicator on my own. One of the things that I tried first was a truncated FFT, essentially using a lowpass filter. Woila! Instant success. While not exactly the same as the JMA or RSX, it produced results close enough to use for trading.
Thursday, September 3, 2009
Using Williams %R
Below is a snapshot of Google (GOOG) showing buy signals that were generated from the %R signal. You can choose a value, 70% or 80%, to buy at. Each of these were good trading signals showing a good time to buy.

Links:
http://trader.snowcron.com/williams.htm
Tuesday, September 1, 2009
Cleaning Data
The methodology we used was a standard technique, which was to run forward the data via a windowing technique (take, for example, 200 values), and compare the standard deviation of the data with the data values. If the data value was more than a standard deviation away from the rest of the data, it was suspect. If it was several, it was very suspect. This is a standard technique evidently in the industry.
The rest cannot be disclosed because I signed a non-disclosure agreement, but suffice it to say that you want to make sure that when you're forecasting, that you scrub the data and look for outliers.
I especially had this problem when trading Forex, and with some data exchanges later in my trading experience, because there would be huge outliers and run-ups, run-downs especially in times when the exchanges aren't open. For example, Sunday afternoon and early evening Pacific time, Tokyo is just coming online, and there isn't a lot of trading going on. Sometimes during those hours there can be dramatic up and down jumps that show up badly when you start to do calculation. Filtering these out with data scrubbing can help things dramatically -- otherwise your indicators can show wild jumps.
Market Physics Part II
