<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stock Market Analysis at DeepMarket &#187; Technical Analysis</title>
	<atom:link href="http://www.deepmarket.com/category/technical-analysis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deepmarket.com</link>
	<description>Think outside the Black Box</description>
	<lastBuildDate>Fri, 19 Mar 2010 18:01:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Oil drops to 54 bucks</title>
		<link>http://www.deepmarket.com/technical-analysis/oil-drops-to-54-bucks/</link>
		<comments>http://www.deepmarket.com/technical-analysis/oil-drops-to-54-bucks/#comments</comments>
		<pubDate>Wed, 10 Jan 2007 22:31:13 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Technical Analysis]]></category>

		<guid isPermaLink="false">http://www.deepmarket.com/technical-analysis/oil-drops-to-54-bucks/</guid>
		<description><![CDATA[Generally I don&#8217;t watch commodities, but since I got a $900 natural gas bill (my whole house uses gas &#8211; gas water heater and gas heat) a couple of years ago &#8211; I am more prone to take notice as to the price level of natural gas.  I think it is hovering in the $6-7 [...]]]></description>
			<content:encoded><![CDATA[<p>Generally I don&#8217;t watch commodities, but since I got a $900 natural gas bill (my whole house uses gas &#8211; gas water heater and gas heat) a couple of years ago &#8211; I am more prone to take notice as to the price level of natural gas.  I think it is hovering in the $6-7 level now, but it seems the real story is oil.  Apparently (since I don&#8217;t have any real data on crude), oil closed below $55 today &#8211; almost below $54 &#8211; breaking some long-term support.  Excellent!  I say that only as a consumer, not a trader (which I am not a trader and have not been a trader in years).  Over the summer it seemed that $100 oil was more likely than $40 oil.  Hmmmm&#8230;  What does everyone think now?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepmarket.com/technical-analysis/oil-drops-to-54-bucks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10 Day Stock Correlation Data Added</title>
		<link>http://www.deepmarket.com/technical-analysis/10-day-stock-correlation-data-added/</link>
		<comments>http://www.deepmarket.com/technical-analysis/10-day-stock-correlation-data-added/#comments</comments>
		<pubDate>Tue, 25 Apr 2006 01:54:57 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Technical Analysis]]></category>

		<guid isPermaLink="false">http://www.deepmarket.com/technical-analysis/10-day-stock-correlation-data-added/</guid>
		<description><![CDATA[Since there was some new interest in shorter correlation time periods, I finally got around to adding 10 day correlation data for all the stocks.  A friendly reader &#8211; Jon &#8211; had asked about looking at multiple periods:
Time frames of, say, 365 days, and 250 days, are useful but more importantly perhaps, the shorter [...]]]></description>
			<content:encoded><![CDATA[<p>Since there was some new interest in <a href="http://www.deepmarket.com/stocks/additional-information-on-stock-correlations/">shorter correlation time periods</a>, I finally got around to adding 10 day correlation data for all the stocks.  A friendly reader &#8211; Jon &#8211; had asked about looking at multiple periods:</p>
<p><strong><em>Time frames of, say, 365 days, and 250 days, are useful but more importantly perhaps, the shorter time periods of 100 days, 30 days, and 7 days really need to be looked at.</em></strong></p>
<p>So, what I did was set everything up to display 200 days, 100 days, 30 days and 10 days of stock correlations.  For each stock, the top 5 positive correlations for each time period and the top 5 negative correlations for each time period.  I decided to go with a 10 day period instead of the 7 day period because we are working with trading days, not calendar days &#8211; 5 trading days in a week.  Not really important, because obviously the 10 days cuts across calendar weeks &#8211; it just seemed nicer to be looking at two trading weeks at a time.</p>
<p>I had also mentioned that DeepMarket doesn&#8217;t have index data and Jon asked:</p>
<p><em><strong>Not having index data is a problem, as sometimes it would be useful to look at these correlations in the context of the market. Is it not possible to use another source? What about Yahoo! they have a lot of available historic and recent data.</strong></em></p>
<p>Well, this is a question of <em>MAY I</em> vs. <em>CAN I.</em>  There is no question that I CAN, but I MAY NOT display that data here on DeepMarket.  I don&#8217;t have the rights to display that data &#8211; sorry!  To show that data is really expensive and I only display the data that is in my feed.  The exchanges (who own most of the indexes) are really weird about it and I was looking for data with my &#8220;path of least resistance&#8221; algorithm &#8211; so, what you see is what you get.  Don&#8217;t even ask about mutual fund data&#8230;</p>
<p>However &#8211; you can look for proxies.  A fantastic proxy &#8211; and probably the most famous is the <a href="http://www.deepmarket.com/stock/qqqq">triple Q</a> or <a href="http://www.deepmarket.com/stock/qqqq">QQQ</a> or <a href="http://www.deepmarket.com/stock/qqqq">QQQQ</a> &#8211; which is the <a href="http://www.nasdaq.com/aspxcontent/qqqq/default.aspx">NASDAQ 100 Tracking Stock</a> &#8211; check the link for a better understanding.  Bottom line &#8211; its moves are correlated with the <a href="http://dynamic.nasdaq.com/services/indexes/ViewIndexes/Nasdaq_100.aspx?symbol=IXNDX">NASDAQ 100 Index</a> &#8211; and an excellent proxy for the index.  Of course, in this case the movements are not only correlated, but causal in relationship to each other.  So, use our little search tool in the upper right corner and see if you can find a proxy for the index you are looking for.</p>
<p>Okay &#8211; that is a ton of data out there for all the stocks.  I am not sure if it is helpful &#8211; data is always the first step.  Now that we have all this data, I hope people are able to come up with some interesting strategies.  Jon gave us some clues and hopefully others are willing to share their ideas and insights &#8211; I welcome comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepmarket.com/technical-analysis/10-day-stock-correlation-data-added/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Acceptable Head and Shoulders Pattern</title>
		<link>http://www.deepmarket.com/technical-analysis/acceptable-head-and-shoulders-pattern/</link>
		<comments>http://www.deepmarket.com/technical-analysis/acceptable-head-and-shoulders-pattern/#comments</comments>
		<pubDate>Tue, 04 Apr 2006 02:08:39 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Technical Analysis]]></category>

		<guid isPermaLink="false">http://www.deepmarket.com/technical-analysis/acceptable-head-and-shoulders-pattern/</guid>
		<description><![CDATA[I made a big mistake.  I was under the impression that Head and Shoulders was a &#8220;bearish&#8221; pattern, when in fact it may depend on the preceeding trend.  Jon, from the Fickle Trader pointed this misunderstand (okay &#8211; let&#8217;s be honest &#8211; my ignorance):
If there is no preceding trend, then why should we [...]]]></description>
			<content:encoded><![CDATA[<p>I made a big mistake.  I was under the impression that Head and Shoulders was a &#8220;bearish&#8221; pattern, when in fact it may depend on the preceeding trend.  Jon, from the <a href="http://fickletrader.blogspot.com/">Fickle Trader</a> pointed this misunderstand (okay &#8211; let&#8217;s be honest &#8211; my ignorance):</p>
<blockquote><p>If there is no preceding trend, then why should we expect a trend reversal? If you are looking for price declines after the head and shoulders pattern completes, you need to identify the conditions where the stock has a preceding uptrend on the same timeframe as your h&#038;s pattern.</p></blockquote>
<p>Oooooooops.  He also says:</p>
<blockquote><p>For the purposes of head and shoulders analysis, I recommend we define a prior uptrend as a series of higher highs and higher lows (you can identify this with correlation too).</p></blockquote>
<p>Dang it &#8211; I messed up that last <a href="http://www.deepmarket.com/technical-analysis/quick-glance-at-head-and-shoulders-pattern-statistics">experiment in looking at head and shoulders</a>, so we will re-do it to see what difference it makes.  Thanks for pointing out my, uh, ignorance!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepmarket.com/technical-analysis/acceptable-head-and-shoulders-pattern/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick Glance at Head and Shoulders Pattern Statistics</title>
		<link>http://www.deepmarket.com/technical-analysis/quick-glance-at-head-and-shoulders-pattern-statistics/</link>
		<comments>http://www.deepmarket.com/technical-analysis/quick-glance-at-head-and-shoulders-pattern-statistics/#comments</comments>
		<pubDate>Fri, 31 Mar 2006 22:05:20 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Technical Analysis]]></category>

		<guid isPermaLink="false">http://www.deepmarket.com/?p=47</guid>
		<description><![CDATA[Remember, this blog is like a whiteboard &#8211; we are kind of brainstorming here&#8230;
I am beginning to play around with quantifying the predictability of patterns, such as the head and shoulders pattern.  There is a lot of analysis, running of data and thinking that needs to be done, but I wanted to talk a [...]]]></description>
			<content:encoded><![CDATA[<p>Remember, this blog is like a whiteboard &#8211; we are kind of brainstorming here&#8230;</p>
<p>I am beginning to play around with quantifying the predictability of patterns, such as the head and shoulders pattern.  There is a lot of analysis, running of data and thinking that needs to be done, but I wanted to talk a little about what I am seeing so far.  To really understand the usability of certain patterns, you really need to slice and dice the data in various ways to understand what tendency the market/stock/index/whatever might have after a pattern presents itself.  As an experiment, I pulled closing data from about a thousand stocks that I had over 10 years worth of data.  Presently, I am just trying to get a handle on the H&#038;S pattern across ALL stocks, so I figured I would ignore individual stocks and just look at some global numbers.</p>
<p>I decided to be very simplistic (and practical) and look at the seven day H&#038;S pattern.  I am making a HUGE assumption in this next step &#8211; I am assuming the general tendency of the pattern will play out within seven days (again, seven to match the length of the pattern).  In the future, I plan on looking at days one through pattern length X 2 &#8211; or something of that nature &#8211; to give use a better understanding of how a pattern evolves once it is recognizable.  So, here are some early numbers:</p>
<p>- The average stock showed a 7 period head and shoulders pattern every 349 trading days<br />
- That equates to about .4% of all stocks having a head and shoulders of length 7 at any one time</p>
<p>Okay, those make sense.  It seems that patterns like this are relatively rare.</p>
<p>- It seems that only about 400 stocks out of 1000 had a tendency to move DOWN seven days after an H&#038;S pattern </p>
<p>Ooops&#8230;</p>
<blockquote><p><em><a href="http://www.investopedia.com/terms/h/head-shoulders.asp">The &#8220;head-and-shoulders&#8221; pattern is believed to be one of the most reliable trend-reversal patterns.</a></em></p></blockquote>
<p>Okay, let&#8217;s dig just a little here:</p>
<p>- Of the 400 odd stocks that showed a tendency to go down after an H&#038;S pattern, the average seven day loss was 1.7%<br />
- Of the 600 remaining stocks that showed a tendency to go UP after an H&#038;S pattern, the average seven day gain was 2.45%</p>
<p>Okay, that is just a little taste.  I have plenty of work ahead of me to really see what is going on.  Also, if anyone sees any problems in my logic or has questions about how I am calculating things &#8211; let me know.  I am skipping a lot for ease on my part and trying to get to the deeper issues, but details can be important and that is where the mistakes can be made!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepmarket.com/technical-analysis/quick-glance-at-head-and-shoulders-pattern-statistics/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Feedback on Correlation Pattern Matching</title>
		<link>http://www.deepmarket.com/technical-analysis/feedback-on-correlation-pattern-matching/</link>
		<comments>http://www.deepmarket.com/technical-analysis/feedback-on-correlation-pattern-matching/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 16:00:59 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Technical Analysis]]></category>

		<guid isPermaLink="false">http://www.deepmarket.com/technical-analysis/feedback-on-correlation-pattern-matching/</guid>
		<description><![CDATA[Previously, I discussed the importance of feedback in understanding and learning and that is one nice aspect of blogs &#8211; getting feedback from readers.  Michael wrote a nice entry about the last article over at Taylor Tree, a blog that discusses &#8220;the mechanics of system trading such as money management, position sizing, etc.&#8221; &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Previously, I discussed the importance of <a href="http://www.deepmarket.com/stock-market/deciphering-the-language-of-the-stock-market/">feedback in understanding and learning</a> and that is one nice aspect of blogs &#8211; getting feedback from readers.  Michael wrote a nice entry about the last article over at <a href="http://taylortree.com/">Taylor Tree</a>, a blog that discusses &#8220;the mechanics of system trading such as money management, position sizing, etc.&#8221; &#8211; good stuff!  He describes an interesting pattern he calls <a href="http://taylortree.com/2006/01/developing-melba-toast.html">Melba Toast</a>, but I don&#8217;t think that the simple pattern matching I described would be the best way to identify this pattern.  I need to look at more <a href="http://taylortree.com/2006/02/melba-toast-examples.html">Melba Toast examples</a>. </p>
<p>I got some really good questions from Thomas Czaszyski, who writes a <a href="http://www.flymybike.com/">stock investment and research blog</a>.  Thomas asked the perfect question:</p>
<blockquote><p>This head and shoulders, I understand how to get it and everything now, but what does it mean?</p></blockquote>
<p>Exactly!  Now, I know the classic chartist answer, but I am not interested in regurgitating the same answer a chartist would give.  Luckily, Scott pointed us to the book <a href="http://mysite.verizon.net/resppzq7/mybooks.html">Encyclopedia of Chart Patterns</a>, so I would recommend Thomas check that reference.  Or do a quick look at <a href="http://www.chartpatterns.com/headandshoulders.htm">head and shoulders described</a> by chartists.  Thanks for the pointer to the books Scott &#8211; I certainly want to take a look at how everything was quantified.  My major concern is &#8211; how did they identify the patterns?  Were humans finding the patterns?</p>
<p>Also, to Thomas &#8211; good luck with Princeton!  Don&#8217;t be surprised if you find that most academics don&#8217;t truly understand the stock market and trading, let alone technical analysis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepmarket.com/technical-analysis/feedback-on-correlation-pattern-matching/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Correlation Pattern Matching Explained</title>
		<link>http://www.deepmarket.com/technical-analysis/correlation-pattern-matching-explained/</link>
		<comments>http://www.deepmarket.com/technical-analysis/correlation-pattern-matching-explained/#comments</comments>
		<pubDate>Wed, 29 Mar 2006 16:56:37 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Technical Analysis]]></category>

		<guid isPermaLink="false">http://www.deepmarket.com/?p=45</guid>
		<description><![CDATA[It has been pointed out that in the article Oversimplified Method for Finding Patterns in Stock Charts the actual method used was not described in detail.  The process is pretty simple &#8211; you might even say oversimplified.  It was just an error of omission, not an attempt to hide any proprietary methods.  [...]]]></description>
			<content:encoded><![CDATA[<p>It has been pointed out that in the article <a href="http://www.deepmarket.com/stock-market/oversimplified-method-for-finding-patterns-in-stock-charts/">Oversimplified Method for Finding Patterns in Stock Charts</a> the actual method used was not described in detail.  The process is pretty simple &#8211; you might even say oversimplified.  It was just an error of omission, not an attempt to hide any proprietary methods.  In fact, just as a gentle reminder &#8211; this blog is for the open discussion and exploration of advanced techniques for analyzing the stock market.</p>
<p>So, let&#8217;s review.  I am not a chartist or a technical analyst, but am interested in understanding patterns that seem to have &#8220;legendary&#8221; status among those who dabble in these arts.  One of my greatest concerns is that there is little work on validating chart patterns in an objective manner.  So, for instance &#8211; how reliable, profitable and practical are these patterns?</p>
<p>Well, before we can approach those questions, we needed a way to detect patterns in a repeatable fashion.  Pattern matching is a fascinating field, but we just needed a quit and dirty solution.  Correlation was that simple solution.  What was not described was how we are using correlation to find patterns in stock charts.  We are going to use some data that never changes (a stock in the database that has stopped trading) and Excel to show this simple process.</p>
<p><a href="http://www.deepmarket.com/stock/amnt">AMNT</a> stopped trading on 12/12/2005 and just so happens to have a really classic <a href="http://www.deepmarket.com/stock-market/oversimplified-method-for-finding-patterns-in-stock-charts/">head and shoulders pattern</a> in the last seven days of trading:</p>
<p><img src="http://www.deepmarket.com/stock_chart.php?s=amnt&#038;l=7" alt="AMNT Head and Shoulders" /></p>
<p>Using Excel, we can describe the process that is used to find the head and shoulders pattern (or any other pattern &#8211; given a template of the pattern).  First, we need a template of the pattern we are looking for in the chart data.  I explored the charting and technical analysis literature and &#8220;eye-balled&#8221; the patterns people were describing as head and shoulders.  This is far from scientific, but a good start.  What I came up with as a template for head and shoulders is:</p>
<p><img src="http://www.deepmarket.com/hs_chart.png" alt="Head and Shoulders Template" /></p>
<p>Or, very simply using numbers from 0 to 100:</p>
<p>0<br />
60<br />
20<br />
80<br />
30<br />
70<br />
20</p>
<p>Seven data points gives us a template for what I think a head and shoulders pattern would look like.  This template is certainly open to discussion, but this is more about the process than the correctness of the template.  What is important is that we can use the above template to easily and quickly identify that general pattern.  We have a template of 7 data point, so we need to look at 7 data points from the stock data we wish to search for patterns.  We are using AMNT and the last 7 data points (looking at closing prices) are:</p>
<p>10.22<br />
10.25<br />
10.24<br />
10.28<br />
10.24<br />
10.26<br />
10.24</p>
<p>Now, open up Excel and paste the two columns of data into columns A and B of your worksheet.  It doesn&#8217;t matter which column you put the data &#8211; template in A or template in B:</p>
<p><img src='/wp-content/excel_template.png' alt='Correlation Example in Excel' /></p>
<p>Now, using the Excel function <em>CORREL</em> we are going to find the correlation between the template and the stock data.  Put the following formula into any cell that isn&#8217;t already being used:</p>
<p>=CORREL(A1:A7,B1:B7)</p>
<p>The result is a correlation of .940712, which is a pretty good match.  You look at the pattern&#8217;s template and the actual stock data and see that it is a pretty good match.  Pretty simple, huh?</p>
<p>For what we are doing, we have this process written in Java and every morning we search for patterns that have a correlation greater than .85 &#8211; why .85?  No reason, just an arbitrary point.  For those who wish to do this for themselves in other languages or technical analysis packages, you just need a correlation function and the ability to use that function to compare two sets of data.  Once you have that setup, then you can play around with any number of templates describing different patterns and correlation cut points.</p>
<p><iframe frameborder="0" scrolling="no" width="139" height="45" src="http://thoof.com/tr/5773"> </iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepmarket.com/technical-analysis/correlation-pattern-matching-explained/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Finding Inverted Head and Shoulders Automatically</title>
		<link>http://www.deepmarket.com/technical-analysis/finding-inverted-head-and-shoulders-automatically/</link>
		<comments>http://www.deepmarket.com/technical-analysis/finding-inverted-head-and-shoulders-automatically/#comments</comments>
		<pubDate>Wed, 15 Mar 2006 23:21:40 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Technical Analysis]]></category>

		<guid isPermaLink="false">http://www.deepmarket.com/technical-analysis/finding-inverted-head-and-shoulders-automatically/</guid>
		<description><![CDATA[Last week we put together a really simple way to identify Head and Shoulders patterns in stock charts and we have a daily list of stocks with potential Head and Shoulders &#8211; BUT, these are experimental of course.  This where the human interacts with the technology.  We have an algorithm that searchs for [...]]]></description>
			<content:encoded><![CDATA[<p>Last week we put together a really simple way to <a href="http://www.deepmarket.com/stock-market/oversimplified-method-for-finding-patterns-in-stock-charts/">identify Head and Shoulders patterns</a> in stock charts and we have a <a href="http://www.deepmarket.com/headandshoulders.php">daily list of stocks with potential Head and Shoulders</a> &#8211; BUT, these are experimental of course.  This where the human interacts with the technology.  We have an algorithm that searchs for potential patterns, then it is left to the human to determine if it really is a Head and Shoulders formation.  And what does it mean if it is a correct formation in the eyes of the human?  That is left to the human to decide.</p>
<p>And in that spirit we put up a new page which lists <a href="http://www.deepmarket.com/invertedheadandshoulders.php">stocks with potential Inverted Head and Shoulders</a> chart patterns.  To be honest, when I look at these patterns they do not seem to be as disctinctive as the regular H&#038;S formations.  Any chartists want to give us some feedback?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deepmarket.com/technical-analysis/finding-inverted-head-and-shoulders-automatically/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
