<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CEABSHc7fip7ImA9WhBSGUQ.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372</id><updated>2013-02-27T11:19:19.906-08:00</updated><category term="featured" /><category term="morning star" /><category term="tradingsystem" /><category term="strategy" /><category term="performance" /><category term="historical data" /><category term="books" /><category term="concepts" /><category term="candlesticks" /><category term="backtest" /><category term="bullish kicker" /><title>Quantifying Technical Analysis</title><subtitle type="html">An Open Notebook Trading Project</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://blog.kilotrader.com/" /><author><name>Nitin Juneja</name><uri>https://plus.google.com/100479187074798439710</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh3.googleusercontent.com/-OOuknuRqU-A/AAAAAAAAAAI/AAAAAAAAAHA/tak7FyTmwOU/s512-c/photo.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/kilotrader/PcGl" /><feedburner:info uri="kilotrader/pcgl" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CEMNRXk-cCp7ImA9WhJaE0Q.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-405714590577767651</id><published>2012-10-04T16:14:00.000-07:00</published><updated>2012-10-04T16:14:54.758-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-04T16:14:54.758-07:00</app:edited><title>Google has deleted all my blogspot images</title><content type="html">I started this blog as a way for me to document my trading experiments. I was doing very good till the point when Google started deleting my images. Apparently, the launched G+ and migrated all my images and lost it. I did continue with my testing of candle stick patterns... but I stopped uploading them&lt;br /&gt;
&lt;br /&gt;
In the next little while with be re-generating this content and re-posting the results. Hopefully, I will be able to do this in a month or so&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/AC4euDRGWW8" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/405714590577767651?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/405714590577767651?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/AC4euDRGWW8/google-has-deleted-all-my-blogspot.html" title="Google has deleted all my blogspot images" /><author><name>Nitin Juneja</name><uri>https://plus.google.com/100479187074798439710</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh3.googleusercontent.com/-OOuknuRqU-A/AAAAAAAAAAI/AAAAAAAAAHA/tak7FyTmwOU/s512-c/photo.jpg" /></author><feedburner:origLink>http://blog.kilotrader.com/2012/10/google-has-deleted-all-my-blogspot.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcNQno7eSp7ImA9WhJaFUo.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-8823649347717253897</id><published>2011-01-27T13:26:00.000-08:00</published><updated>2012-10-06T19:48:13.401-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-06T19:48:13.401-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><category scheme="http://www.blogger.com/atom/ns#" term="morning star" /><title>More about the Morning Doji Star</title><content type="html">Last month, I &lt;a href="http://blog.kilotrader.com/2010/12/morning-star-doji-mythical-pattern.html"&gt;blogged&lt;/a&gt; that the morning doji star was a very rare pattern. I claimed that on an EOD basis, there are only ten instances of occurrence of this pattern in SP500 stocks over the last 15 years. The 10 instances are shown below. Of the 10 opportunities, 6 are profitable in the short term&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
1. AES on 10/30/1997&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-WQd80J_v_C4/UHDm7SFuD4I/AAAAAAAAAEs/racFm0i-CII/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="520" src="http://1.bp.blogspot.com/-WQd80J_v_C4/UHDm7SFuD4I/AAAAAAAAAEs/racFm0i-CII/s640/1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
2. ETN on 4/23/1998&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-1XlsvC1bu50/UHDpthGskQI/AAAAAAAAAE8/RC4pvkB4KSE/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="566" src="http://4.bp.blogspot.com/-1XlsvC1bu50/UHDpthGskQI/AAAAAAAAAE8/RC4pvkB4KSE/s640/2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&amp;nbsp;3. DHR on 10/5/1998&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="http://4.bp.blogspot.com/-CQwj9mGwI0k/UHDpwXnNeAI/AAAAAAAAAFE/dobZ0h1raho/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="574" src="http://4.bp.blogspot.com/-CQwj9mGwI0k/UHDpwXnNeAI/AAAAAAAAAFE/dobZ0h1raho/s640/3.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="http://1.bp.blogspot.com/__JBjNQamaLE/TUHhSPJjC8I/AAAAAAAAASU/KUsZgJIINWY/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
4. VNO on 10/12/1998&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-xE0zC1pNVqg/UHDpwxSVO0I/AAAAAAAAAFM/QLgcNCX_Gio/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://3.bp.blogspot.com/-xE0zC1pNVqg/UHDpwxSVO0I/AAAAAAAAAFM/QLgcNCX_Gio/s640/4.png" width="598" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&amp;nbsp;5. AMT on 7/13/2001&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-dTd80gPd5TQ/UHDpxVmFBJI/AAAAAAAAAFU/tLU99VOamCo/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="548" src="http://2.bp.blogspot.com/-dTd80gPd5TQ/UHDpxVmFBJI/AAAAAAAAAFU/tLU99VOamCo/s640/5.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&amp;nbsp;6. PX on 9/25/2001&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-oxuZGqE_NKg/UHDryDMO8dI/AAAAAAAAAFc/-YlVGqA3OR0/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://3.bp.blogspot.com/-oxuZGqE_NKg/UHDryDMO8dI/AAAAAAAAAFc/-YlVGqA3OR0/s640/6.png" width="502" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&amp;nbsp;7. LLL on 1/16/2002&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-EN4mApX0Iok/UHDsBdOQtiI/AAAAAAAAAFk/4xhhj5VhFxI/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="504" src="http://3.bp.blogspot.com/-EN4mApX0Iok/UHDsBdOQtiI/AAAAAAAAAFk/4xhhj5VhFxI/s640/7.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&amp;nbsp;8. PPG on 4/8/2002&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-TjX_iM07BSE/UHDsazwhJeI/AAAAAAAAAFs/Z79ogctXcwE/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="538" src="http://1.bp.blogspot.com/-TjX_iM07BSE/UHDsazwhJeI/AAAAAAAAAFs/Z79ogctXcwE/s640/8.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&amp;nbsp;9. CLX on 1/31/2005&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-Kmh0pVjFpCc/UHDtK5OGyCI/AAAAAAAAAF0/gjTTd1Q33qY/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="496" src="http://1.bp.blogspot.com/-Kmh0pVjFpCc/UHDtK5OGyCI/AAAAAAAAAF0/gjTTd1Q33qY/s640/9.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&amp;nbsp;10. VNO on 6/20/2005&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-fQu3sdtzj10/UHDtSKERVOI/AAAAAAAAAF8/2OZ3bNJEqRU/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="458" src="http://2.bp.blogspot.com/-fQu3sdtzj10/UHDtSKERVOI/AAAAAAAAAF8/2OZ3bNJEqRU/s640/10.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/vJnVwPV-dJU" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/8823649347717253897?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/8823649347717253897?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/vJnVwPV-dJU/more-about-morning-doji-star.html" title="More about the Morning Doji Star" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-WQd80J_v_C4/UHDm7SFuD4I/AAAAAAAAAEs/racFm0i-CII/s72-c/1.png" height="72" width="72" /><feedburner:origLink>http://blog.kilotrader.com/2011/01/more-about-morning-doji-star.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkAEQXYzeip7ImA9WhJaFUo.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-5366150068195558024</id><published>2010-12-23T14:25:00.000-08:00</published><updated>2012-10-06T19:58:20.882-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-06T19:58:20.882-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="candlesticks" /><category scheme="http://www.blogger.com/atom/ns#" term="strategy" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><category scheme="http://www.blogger.com/atom/ns#" term="morning star" /><title>Morning Star Doji : a mythical pattern</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-NkUeS-Hx51Y/UHDvpMjYr8I/AAAAAAAAAGE/KD-hqHdwsO4/s1600/morning-star-doji.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-NkUeS-Hx51Y/UHDvpMjYr8I/AAAAAAAAAGE/KD-hqHdwsO4/s1600/morning-star-doji.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
The morning star star is shown on the left.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: #242424; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;b&gt;Quantifying the Morning Star Doji&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: #242424; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
Traditionally, a formed when the following conditions are met:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Prior to Day 1&lt;/b&gt;: a down trend exists. I characterize this be having three days with lower closes&lt;br /&gt;
&lt;b&gt;Day 1 candle&lt;/b&gt; : Long and Dark. I have characterized this candle with a body that is atleast 65% of the candle length&lt;br /&gt;
&lt;b&gt;Day 2 candle &lt;/b&gt;: This candle is the doji candle. The candle should gap down. The High of the candle needs to be less than the low of Day 1 candle. This is a doji, so the candle body should be less than 15% of the total candle length&lt;br /&gt;
&lt;b&gt;Day 3 candle &lt;/b&gt;: This should be a white candle that gaps up. Since this is a white candle, the Close is higher than the Open. The Low of this candle should be higher than the High of the previous day candle&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;/div&gt;
&lt;div class="art-PostContent" style="color: #242424; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;div align="left" class="body_text"&gt;
&lt;div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;Problem with &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif;"&gt;&lt;b&gt;the Morning Star Doji&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
The definition of this pattern is actually quiet strict. I back-tested this pattern. In the last 15 years, there were less than 10 instances of this pattern. I was genuinely surprised and re-checked my runs. Same results.&lt;br /&gt;
&lt;br /&gt;
I think the requirement between the requirement that there be a gap between bar1 and bar2 and another gap between bar2 and bar3 makes it an overly restrictive candle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/8NuvUhFirIg" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/5366150068195558024?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/5366150068195558024?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/8NuvUhFirIg/morning-star-doji-mythical-pattern.html" title="Morning Star Doji : a mythical pattern" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-NkUeS-Hx51Y/UHDvpMjYr8I/AAAAAAAAAGE/KD-hqHdwsO4/s72-c/morning-star-doji.jpg" height="72" width="72" /><feedburner:origLink>http://blog.kilotrader.com/2010/12/morning-star-doji-mythical-pattern.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MCQXs7eCp7ImA9WhJaFUo.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-4909221529622098683</id><published>2010-12-10T11:52:00.000-08:00</published><updated>2012-10-06T20:11:00.500-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-06T20:11:00.500-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="strategy" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><category scheme="http://www.blogger.com/atom/ns#" term="bullish kicker" /><title>Profitability of the bullish kicker candlestick pattern</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-p2GsayZWFgE/UHDyq1yCgJI/AAAAAAAAAGU/Yx65tBGz-Nw/s1600/BullishKicker.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-p2GsayZWFgE/UHDyq1yCgJI/AAAAAAAAAGU/Yx65tBGz-Nw/s1600/BullishKicker.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;A bullish kicker is signal is shown on the left.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;It shows a change in sentiment on what the buyers and sellers feel about the stock. The first candle is dark (close &amp;lt; open). I generally like see this red candle at the end of a trend. The bullish candle is the green candle (close &amp;gt; open) and the Low is greater than the previous candle's High. This usually marks a drastic change in sentiment regarding the stock. The traders before the green candle were pessimistic about the stock and the sellers were winning. They were successful in bringing the stock down. The kicker candle usually represents a change in sentiment and buyers are back. This may represent a positive announcement by the company.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;&lt;b&gt;Quantifying the Bullish Kicker&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align="left" class="body_text"&gt;
&lt;div style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;
A bullish kicker is formed when the following conditions are met:&lt;/div&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;A down trend marked by three down days&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;The third candle has a close lower than open&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;The fourth candle open is greater than the high of the third candle&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;The fourth candle closes higher than the open&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;Back-testing Bullish Kicker&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: #242424; font-weight: normal;"&gt;&lt;span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;"&gt;DataSet : SP500&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;"&gt;BackTest Period : 15 years&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: #242424; font-weight: normal;"&gt;Buy Signal :&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Look for 3 consecutive down days&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;A Bullish Kicker candle is seen on the fourth day&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Buy at Open on the fifth day&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;Sell Signal: &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Limit order at 1.02 of the Entry Price&lt;/li&gt;
&lt;li&gt;2% Stop Loas&lt;/li&gt;
&lt;/ul&gt;
&lt;/span&gt;&lt;ul style="color: #383838; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; list-style-type: none; margin-bottom: 1em; margin-left: 2em; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: #242424; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-weight: normal;"&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/ul&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: #242424; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-weight: normal;"&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;Profitability / Performance of Bullish Kicker&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: #242424; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-weight: normal;"&gt;Since I am only interested in finding out if this particular signal does act as a trend reversal signal. I am not interested in building a trading system. The best performance measure for this task is the&amp;nbsp;&lt;a href="http://blog.kilotrader.com/2010/05/performance-metrics.html" style="color: #c70f31; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none;"&gt;Win-Rate&lt;/a&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;as it represents the probability that my hypothesis is correct.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: #242424; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;style type="text/css"&gt;
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
&lt;/style&gt;

&lt;br /&gt;
&lt;table class="tableizer-table"&gt;
&lt;tbody&gt;
&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;PERFORMANCE&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Number of Trades&lt;/td&gt;&lt;td&gt;1,511&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Winning Trades&lt;/td&gt;&lt;td&gt;825&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Losing Trades&lt;/td&gt;&lt;td&gt;686&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;-0.28%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Win Rate&lt;/td&gt;&lt;td&gt;54.60%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Loss Rate&lt;/td&gt;&lt;td&gt;45.40%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2.9&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;2.18%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Loss %&lt;/td&gt;&lt;td&gt;-3.24%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2.85&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2.96&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div align="left" class="body_text" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;
&lt;br /&gt;
In the last 15 years there were 1511 instances of the bullish-kicker... that is about 100 every year. That is actually quiet good and sufficient to build a good trading strategy on. The win-rate was ~55%. Another way to look at it is that there is a 54% chance of making a 2% profit and a 45% change of losing 3%. If you did execute on every opportunity presented by this signal, you would have lost out in the end.&lt;br /&gt;
&lt;br /&gt;
The number shown above are adjusted for commission (&lt;a href="http://www.interactivebrokers.com/"&gt;Interactive Brokers structure&lt;/a&gt;) and not adjusted for any slippage&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Bullish Kicker Setup Example&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align="left" class="body_text" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Verdana, sans-serif; font-size: 13px;"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-8050_BIdLco/UHDxAMyXV7I/AAAAAAAAAGM/03vicujJ36I/s1600/bullish_kicker_setup.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="546" src="http://3.bp.blogspot.com/-8050_BIdLco/UHDxAMyXV7I/AAAAAAAAAGM/03vicujJ36I/s640/bullish_kicker_setup.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/zSyn_A1eEOU" height="1" width="1"/&gt;</content><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/4909221529622098683?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/4909221529622098683?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/zSyn_A1eEOU/profitability-of-bullish-kicker.html" title="Profitability of the bullish kicker candlestick pattern" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-p2GsayZWFgE/UHDyq1yCgJI/AAAAAAAAAGU/Yx65tBGz-Nw/s72-c/BullishKicker.jpg" height="72" width="72" /><feedburner:origLink>http://blog.kilotrader.com/2010/12/profitability-of-bullish-kicker.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUBQX0zeip7ImA9Wx9REEw.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-5740976945343094691</id><published>2010-11-09T10:09:00.000-08:00</published><updated>2010-12-10T12:50:50.382-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-10T12:50:50.382-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="historical data" /><category scheme="http://www.blogger.com/atom/ns#" term="tradingsystem" /><title>Adjusting Yahoo Data</title><content type="html">In my &lt;a href="http://blog.kilotrader.com/2010/08/differences-between-google-historical.html"&gt;previous post&lt;/a&gt;, I had explained that Yahoo and Google EOD (End of Day) historical data does not match.&lt;br /&gt;
&lt;br /&gt;
Let us take a look at XOM. On 12/30/1994, Google reports the close price as $43.85. Yahoo reports the close price of $87.35 and also reports an adjusted close of $35.53. Y! adjusted close prices are adjusted for any splits and dividends. On the other hand, Google only adjusts for splits.&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
From a technical analysis point of view, I am usually not interested in the effects of dividends and am interested only in the split adjustment factor. Also, I prefer to use Y! EOD data as it is better in quality than Google data. It is more complete and is available for longer periods of time.To use Y! data, I would have to make some adjustments. The split-adjusted price can be calculated as follows:&lt;br /&gt;
&lt;br /&gt;
split_adjusted_close (y') = split_div_adjusted_close(as reported by yahoo adjusted close)/div_adjustment_factor&lt;br /&gt;
&lt;br /&gt;
To get the div_adjustment_factor, I need to look at &amp;nbsp;all the dividend payouts. For XOM, the dividend table looks like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border="0" cellpadding="2" cellspacing="1" style="font-family: arial, helvetica, sans-serif; font-size: 12px; line-height: 1.22em;"&gt;&lt;tbody style="line-height: 1.22em;"&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 11, 2010&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.44 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 11, 2010&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.44 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 8, 2010&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.42 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 9, 2009&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.42 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 11, 2009&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.42 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 11, 2009&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.42 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 6, 2009&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.40 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 7, 2008&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.40 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 11, 2008&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.40 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 9, 2008&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.40 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 7, 2008&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.35 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 7, 2007&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.35 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 9, 2007&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.35 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 10, 2007&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.35 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 7, 2007&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.32 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 9, 2006&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.32 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 10, 2006&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.32 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 10, 2006&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.32 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 8, 2006&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.32 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 8, 2005&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.29 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 10, 2005&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.29 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 11, 2005&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.29 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 8, 2005&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.27 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 9, 2004&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.27 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 11, 2004&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.27 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 11, 2004&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.27 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 9, 2004&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.25 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 7, 2003&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.25 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 11, 2003&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.25 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 9, 2003&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.25 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 6, 2003&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.23 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 7, 2002&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.23 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 9, 2002&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.23 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
May 9, 2002&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.23 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Feb 7, 2002&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.23 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Nov 7, 2001&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.23 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: right;"&gt;&lt;div style="text-align: left;"&gt;
Aug 9, 2001&lt;/div&gt;
&lt;/td&gt;&lt;td class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px; text-align: center;"&gt;&lt;div style="text-align: left;"&gt;
$ 0.23 Dividend&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="font-size: 12px; line-height: 1.22em;"&gt;&lt;td align="right" class="yfnc_tabledata1" nowrap="" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td align="center" class="yfnc_tabledata1" colspan="6" style="background-attachment: scroll; background-clip: initial; background-color: white; background-image: none; background-origin: initial; background-position: 0px 0px; background-repeat: repeat repeat; font-size: 12px; line-height: 1.22em; padding-bottom: 3px; padding-left: 8px; padding-right: 8px; padding-top: 3px;"&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
For every dividend payout, I need to calculate a div_adjustment_factor. This is calculated as follows:&lt;br /&gt;
&lt;br /&gt;
div_adjustment_factor = div/previous_close * previous_div_adjustment&lt;br /&gt;
&lt;br /&gt;
For the Aug11 payout, the div_adjustment is :&lt;br /&gt;
div = $0.44&lt;br /&gt;
adjusted close on Aug 10 = $61.93&lt;br /&gt;
previous_div_adjustment = 1&lt;br /&gt;
div_adjustment = 0.44/61.93 = 0.007&lt;br /&gt;
&lt;br /&gt;
When I make these calculation to the complete data set, I am able to match Y!EOD and Google EOD. I can then use this for any technical analysis work that I need to do&lt;br /&gt;
&lt;br /&gt;
I have written a python script that download Y!data, adjusts it and saves it in a sqlite3 database. I can share this script with you, if you are interested. Drop me an Email at guru[at]kilotrader.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/YXBRwc9Ihhc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/5740976945343094691/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/11/adjusting-yahoo-data.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/5740976945343094691?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/5740976945343094691?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/YXBRwc9Ihhc/adjusting-yahoo-data.html" title="Adjusting Yahoo Data" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/11/adjusting-yahoo-data.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMEQ346fyp7ImA9Wx9REEw.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-5581534602191749531</id><published>2010-08-12T17:00:00.000-07:00</published><updated>2010-12-10T12:53:22.017-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-10T12:53:22.017-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="historical data" /><category scheme="http://www.blogger.com/atom/ns#" term="tradingsystem" /><title>DIfferences between Google Historical Data and Yahoo Historical Data</title><content type="html">In my search for a reliable source for historical data, I looked at many places. Some of the things that I was thinking about were :&lt;br /&gt;
- Data source needs to be free&lt;br /&gt;
- It should go back at-least 15 years&lt;br /&gt;
- It should be complete&lt;br /&gt;
- I should be able to download daily data and historical data in an automated way.&lt;br /&gt;
- Daily data should be available at 3pm every day&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
At this point I am only looking for OHLV data and NO fundamental data. &amp;nbsp;The two places where I could free historical data were : Google and Yahoo. Unfortunately, the data is not the same. Take the following example,&lt;br /&gt;
&lt;br /&gt;
Google quote: &amp;nbsp;WMT for Jan 1, 1992, Close :$14.78&lt;br /&gt;
Yahoo quote: WMT for Jan 1, 1992, Close: $59.13, Adj Close: $12.32&lt;br /&gt;
&lt;br /&gt;
So, Yahoo provides a quote for the end of day as it happened ($59.13) and also an adjusted close which makes and adjustment for any splits that happened on the stock. Google however adjusts for both splits and for any dividends that the company gave. So the numbers don't match.&lt;br /&gt;
&lt;br /&gt;
Also, Google does not provide the Open price for the ticker. So it is incomplete&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/oSmAAeyUyhw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/5581534602191749531/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/08/differences-between-google-historical.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/5581534602191749531?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/5581534602191749531?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/oSmAAeyUyhw/differences-between-google-historical.html" title="DIfferences between Google Historical Data and Yahoo Historical Data" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/08/differences-between-google-historical.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QARHcyfCp7ImA9WhJaFUU.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-5139353242006972039</id><published>2010-06-04T14:37:00.000-07:00</published><updated>2012-10-06T20:42:25.994-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-06T20:42:25.994-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="historical data" /><category scheme="http://www.blogger.com/atom/ns#" term="tradingsystem" /><title>Historical Stock Price Data Source</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;br /&gt;
Most of the work that I do depends on EOD Data (end of day) data. At the end of the trading day, I like to download price/volume data for all the stocks in my universe, run my strategies, look for signals for the next day and place the buy/sell/stop orders before I go to sleep. This takes the stress out of trading and I really do not have to look at the screen all day and I can focus on my day job.&lt;br /&gt;
&lt;br /&gt;
For this to work, I need to spend about an hour every day to plan my trades the next day. I simulate my backtests using &lt;a href="http://personal.fidelity.com/products/trading/Trading_Platforms_Tools/Wealth_Lab_Pro_Overview-Tools.shtml.cvsr?refpr=brk23"&gt;Fidelity Wealth-Lab Pro&lt;/a&gt;. Fidelity does a very good job of delivering EOD historical data. But... they send the data over after 10PM at night. This leaves me very little time to plan my next day's trades. I would really like this data available at 3PM instead of 10PM&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This led to do a search on what other sources of historical data are out there. This led me to &lt;a href="http://www.quantshare.com/sa-43-10-ways-to-download-historical-stock-quotes-data-for-free"&gt;this great article&lt;/a&gt;. I think it provides an awesome summary of the free data sources out there.&lt;br /&gt;
&lt;br /&gt;
Yahoo and Google dominate the market. Yahoo provides more data than Google. Yahoo provides prices unprocessed and then adds an extra column for "split and dividend" adjusted close prices. You can then adjust the Open/Close/High/Low based on the adjustment ratios. Google provides data that is split adjusted and not dividend adjusted. So the Yahoo and Google data does not match up&lt;br /&gt;
&lt;br /&gt;
Also, Google does not provide Open prices for before 1990. This is a setback and has kept me away from Google.&lt;br /&gt;
&lt;br /&gt;
With the Yahoo data, I have written some C-sharp code to download the data and store it in an sqlite database. I hope incrementally build this database and use with Fidelity Wealth Lab for analysis&lt;br /&gt;
&lt;br /&gt;
Kewl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/k7I5l4EC3XE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/5139353242006972039/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/06/historical-stock-price-data-source.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/5139353242006972039?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/5139353242006972039?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/k7I5l4EC3XE/historical-stock-price-data-source.html" title="Historical Stock Price Data Source" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/06/historical-stock-price-data-source.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4GR3s-eyp7ImA9Wx9REEw.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-1214227709025798537</id><published>2010-05-19T08:00:00.000-07:00</published><updated>2010-12-10T12:28:46.553-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-10T12:28:46.553-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="candlesticks" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><title>Summary of Candlestick Backtesting</title><content type="html">This post summarizes the candlestick back-testing so far.&lt;br /&gt;
&lt;br /&gt;
To understand the effectiveness / profitability of these signals, I choose to look at two measures of performance.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Number of Trades : The number of trades is number of times the particular showed happened during the back-test period. There are two inferences from this number:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;If the number is small, the results are not statistically reliable.&lt;/li&gt;
&lt;li&gt;The number provides an insight into the prevalence of the signal. This is important when building a system&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;a href="http://blog.kilotrader.com/2010/05/performance-metrics.html"&gt;Win-Rate&lt;/a&gt;&amp;nbsp;: The win rate represents number of times this particular signal was profitable. Looking forward, this can be thought of the probability that this signal will be profitable&lt;/li&gt;
&lt;/ul&gt;
The back-tests were done on the SP500 symbols over the past 15 years.&lt;br /&gt;
&lt;br /&gt;
&lt;style type="text/css"&gt;
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
&lt;/style&gt;

&lt;br /&gt;
&lt;table class="tableizer-table"&gt;
&lt;tbody&gt;
&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;Pattern&lt;/th&gt;&lt;th&gt;Win-Rate&lt;/th&gt;&lt;th&gt;Number of Trades&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href="http://blog.kilotrader.com/2010/05/do-candlestick-patterns-work.html"&gt;Doji&lt;/a&gt;&lt;/td&gt;&lt;td&gt;52.72%&lt;/td&gt;&lt;td&gt;3403&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href="http://blog.kilotrader.com/2010/05/backtesting-bullish-engulfing-pattern.html"&gt;Bullish Engulfing Pattern&lt;/a&gt;&lt;/td&gt;&lt;td&gt;45.60%&lt;/td&gt;&lt;td&gt;6268&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href="http://blog.kilotrader.com/2010/05/backtesting-bullish-harami-pattern.html"&gt;Bullish Harami&lt;/a&gt;&lt;/td&gt;&lt;td&gt;47.87%&lt;/td&gt;&lt;td&gt;3787&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href="http://blog.kilotrader.com/2010/05/backtest-hammer.html"&gt;Hammer&lt;/a&gt;&lt;/td&gt;&lt;td&gt;46.71%&lt;/td&gt;&lt;td&gt;2387&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href="http://blog.kilotrader.com/2010/12/profitability-of-bullish-kicker.html"&gt;Bullish Kicker Pattern&lt;/a&gt;&lt;/td&gt;&lt;td&gt;54.6%&lt;/td&gt;&lt;td&gt;1511&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/yKInxZBkpfw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/1214227709025798537/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/summary-of-candlestick-backtesting.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/1214227709025798537?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/1214227709025798537?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/yKInxZBkpfw/summary-of-candlestick-backtesting.html" title="Summary of Candlestick Backtesting" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>4</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/summary-of-candlestick-backtesting.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkEGSX87eCp7ImA9WhJaGEw.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-8562574831061520765</id><published>2010-05-18T08:00:00.000-07:00</published><updated>2012-10-09T13:30:28.100-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-10-09T13:30:28.100-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="candlesticks" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><title>Backtesting the Bullish Harami Pattern</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-8eep3MgaQvs/UHSIU8mHNqI/AAAAAAAAAGk/RPTG7ZiIWSs/s1600/bullish-harami.gif" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-8eep3MgaQvs/UHSIU8mHNqI/AAAAAAAAAGk/RPTG7ZiIWSs/s1600/bullish-harami.gif" /&gt;&lt;/a&gt;&lt;/div&gt;
This is the third post in my &lt;a href="http://blog.kilotrader.com/2010/05/more-on-candles_14.html"&gt;three 
part series&lt;/a&gt; of backtesting a candlestick patterns. Earlier, I 
back-tested the &lt;a href="http://blog.kilotrader.com/2010/05/backtesting-bullish-engulfing-pattern.html"&gt;Bullish
 Engulfing Pattern&lt;/a&gt; and &lt;a href="http://blog.kilotrader.com/2010/05/backtest-hammer.html"&gt;the Hammer&lt;/a&gt;. Today, I will back test the Bullish Harami Pattern.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quantifying the Hammer&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A Bullish Harami pattern is formed when all the following conditions 
should be met :&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt; today's bar is white (up day) and yesterday's bar is dark&lt;/li&gt;
&lt;li&gt;today's candle height is less than yesterday's candle body&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;b&gt;Back Testing the Pattern&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt; &lt;br /&gt;
DataSet : SP500&lt;br /&gt;
BackTest Period : 15 years&lt;br /&gt;
&lt;br /&gt;
Buy Signal :&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;Look for 3 consecutive down days&lt;/li&gt;
&lt;li&gt;
A &lt;i&gt;Bullish Harami&lt;/i&gt; is formed on the third day and the fourth day&lt;/li&gt;
&lt;li&gt;
Buy at Open on the fifth day &lt;/li&gt;
&lt;/ul&gt;
Sell Signal:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
Sell on the sixth day&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Performance&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I am only interested in finding out if this particular signal does act 
as a trend reversal signal. I am not interested in building a trading 
system. The best performance measure for this task is the &lt;a href="http://blog.kilotrader.com/2010/05/performance-metrics.html"&gt;Win-Rate&lt;/a&gt;&lt;b&gt;
 &lt;/b&gt;as it represents the probability that my hypothesis is correct.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;
&lt;/b&gt;

&lt;style type="text/css"&gt;
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
&lt;/style&gt;

&lt;br /&gt;
&lt;table class="tableizer-table"&gt;
&lt;tbody&gt;
&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;PERFORMANCE&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Number of Trades&lt;/td&gt;&lt;td&gt;2,387&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Winning Trades&lt;/td&gt;&lt;td&gt;1,115&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Losing Trades&lt;/td&gt;&lt;td&gt;1,272&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;-0.27%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Win Rate&lt;/td&gt;&lt;td&gt;46.71%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Loss Rate&lt;/td&gt;&lt;td&gt;53.29%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;2.54%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Loss %&lt;/td&gt;&lt;td&gt;-2.73%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Setup&lt;/b&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-slTj-k9ECH0/UHSJSZv72JI/AAAAAAAAAGs/wL3RgaXxyHA/s1600/bullish_harami_setup.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/-slTj-k9ECH0/UHSJSZv72JI/AAAAAAAAAGs/wL3RgaXxyHA/s640/bullish_harami_setup.png" width="552" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/G2WVtf0GxV4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/8562574831061520765/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/backtesting-bullish-harami-pattern.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/8562574831061520765?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/8562574831061520765?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/G2WVtf0GxV4/backtesting-bullish-harami-pattern.html" title="Backtesting the Bullish Harami Pattern" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-8eep3MgaQvs/UHSIU8mHNqI/AAAAAAAAAGk/RPTG7ZiIWSs/s72-c/bullish-harami.gif" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/backtesting-bullish-harami-pattern.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04ARXw8cSp7ImA9WxFXEU8.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-2006677346731224695</id><published>2010-05-17T11:43:00.000-07:00</published><updated>2010-05-17T11:45:44.279-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-17T11:45:44.279-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="candlesticks" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><title>Backtest the Hammer</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/__JBjNQamaLE/S-xiD4johrI/AAAAAAAAAQw/9pGmspcxtDI/s1600/hammer.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/__JBjNQamaLE/S-xiD4johrI/AAAAAAAAAQw/9pGmspcxtDI/s200/hammer.png" width="195" /&gt;&lt;/a&gt;&lt;/div&gt;
This is the second post in my &lt;a href="http://blog.kilotrader.com/2010/05/more-on-candles_14.html"&gt;three part series&lt;/a&gt; of backtesting a few candlestick patterns. Earlier, I back-tested the &lt;a href="http://blog.kilotrader.com/2010/05/backtesting-bullish-engulfing-pattern.html"&gt;Bullish Engulfing Pattern&lt;/a&gt;. Today, I will back test the Hammer.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quantifying the Hammer&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A Hammer pattern is formed when all the following conditions 
should be met :&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt; today's bar is white (up day) followed by three down days&lt;/li&gt;
&lt;li&gt;Candle's body height is less than 40% of the total candle height&lt;/li&gt;
&lt;li&gt;Close is located near the top of the candle &lt;/li&gt;
&lt;/ol&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://www.codecogs.com/eqnedit.php?latex=Close%20%3C%20%28High%20-%20%280.1%20*%20%28High-%20Low%29%29%29" style="margin-left: 1em; margin-right: 1em;" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?Close%20%3C%20%28High%20-%20%280.1%20*%20%28High-%20Low%29%29%29" title="Close &amp;lt; (High - (0.1 * (High- Low)))" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Back Testing the Pattern&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt; &lt;br /&gt;
DataSet : SP500&lt;br /&gt;
BackTest Period : 15 years&lt;br /&gt;
&lt;br /&gt;
Buy Signal :&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;Look for 3 consecutive down days&lt;/li&gt;
&lt;li&gt;
A &lt;i&gt;Hammer candlestick&lt;/i&gt; is formed on the fourth day&lt;/li&gt;
&lt;li&gt;
Buy at Open on the fifth day &lt;/li&gt;
&lt;/ul&gt;
Sell Signal:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
Sell on the sixth day&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Performance&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I am only interested in finding out if this particular signal does act 
as a trend reversal signal. I am not interested in building a trading 
system. The best performance measure for this task is the &lt;a href="http://blog.kilotrader.com/2010/05/performance-metrics.html"&gt;Win-Rate&lt;/a&gt;&lt;b&gt;
 &lt;/b&gt;as it represents the probability that my hypothesis is correct.&lt;b&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;style type="text/css"&gt;
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
&lt;/style&gt;

&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;table class="tableizer-table"&gt;
&lt;tbody&gt;
&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;PERFORMANCE&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Number of Trades&lt;/td&gt;&lt;td&gt;3,787&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Winning Trades&lt;/td&gt;&lt;td&gt;1,813&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Losing Trades&lt;/td&gt;&lt;td&gt;1,974&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;-0.21%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Win Rate&lt;/td&gt;&lt;td&gt;47.87%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Loss Rate&lt;/td&gt;&lt;td&gt;52.13%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;2.68%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Loss %&lt;/td&gt;&lt;td&gt;-2.86%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Setup&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/__JBjNQamaLE/S_GNV0Bh_fI/AAAAAAAAARA/idHpHT1rugI/s1600/hammer1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="292" src="http://1.bp.blogspot.com/__JBjNQamaLE/S_GNV0Bh_fI/AAAAAAAAARA/idHpHT1rugI/hammer1.png" width="620" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/SIse4nrnANw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/2006677346731224695/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/backtest-hammer.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/2006677346731224695?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/2006677346731224695?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/SIse4nrnANw/backtest-hammer.html" title="Backtest the Hammer" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/__JBjNQamaLE/S-xiD4johrI/AAAAAAAAAQw/9pGmspcxtDI/s72-c/hammer.png" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/backtest-hammer.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04MQXg4fSp7ImA9WxFXEU8.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-3699217917876241904</id><published>2010-05-15T08:00:00.000-07:00</published><updated>2010-05-17T11:46:20.635-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-17T11:46:20.635-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="candlesticks" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><title>Backtesting Bullish Engulfing Pattern</title><content type="html">&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://www.candlestickgenius.com/images/clip_image002_0003.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="226" src="http://www.candlestickgenius.com/images/clip_image002_0003.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
In my blog post &lt;a href="http://blog.kilotrader.com/2010/05/more-on-candles_14.html"&gt;yesterday&lt;/a&gt;, I said that I will be back testing three candlestick patterns. Today, it is the &lt;a href="http://www.candlestickgenius.com/images/clip_image002_0003.jpg"&gt;Bullish Engulfing Pattern&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Quantifying the B-E Pattern&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A Bullish-Engulfing pattern is formed when all the following conditions should be met :&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt; today's bar is white (up day)&lt;/li&gt;
&lt;li&gt; yesterday's bar is dark (down day)&lt;/li&gt;
&lt;li&gt;today's trading range is larger than yesterday's&lt;/li&gt;
&lt;li&gt;today's close is greater than yesterday's open&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;Backtesting the pattern&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
DataSet : SP500&lt;br /&gt;
BackTest Period : 15 years&lt;br /&gt;
&lt;br /&gt;
Buy Signal :&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;Look for 3 consecutive down days&lt;/li&gt;
&lt;li&gt;
A &lt;i&gt;Bullish-Engulfing candlestick&lt;/i&gt; is formed on the fourth day&lt;/li&gt;
&lt;li&gt;
Buy at Open on the fifth day &lt;/li&gt;
&lt;/ul&gt;
Sell Signal:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;
Sell on the sixth day&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Performance&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I am only interested in finding out if this particular signal does act as a trend reversal signal. I am not interested in building a trading system. The best performance measure for this task is the &lt;a href="http://blog.kilotrader.com/2010/05/performance-metrics.html"&gt;Win-Rate&lt;/a&gt;&lt;b&gt; &lt;/b&gt;as it represents the probability that my hypothesis is correct.&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;style type="text/css"&gt;
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
&lt;/style&gt;

&lt;br /&gt;
&lt;table class="tableizer-table"&gt;
&lt;tbody&gt;
&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;PERFORMANCE&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Number of Trades&lt;/td&gt;&lt;td&gt;6,268&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Winning Trades&lt;/td&gt;&lt;td&gt;2,858&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Losing Trades&lt;/td&gt;&lt;td&gt;3,410&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;-0.37%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Win Rate&lt;/td&gt;&lt;td&gt;45.60%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Loss Rate&lt;/td&gt;&lt;td&gt;54.40%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;2.56%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Loss %&lt;/td&gt;&lt;td&gt;-2.83%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
In this particular example, there are two things I would like to note :&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Bullish Engulfing patterns happen quite often. For the SP 500 stocks in the last 15 years, they showed up about 400 times in one year&lt;/li&gt;
&lt;li&gt;They are NOT very good at predicting a trend reversal. For the SP 500 stocks in the last 15 years, they were correct only 45% of the time&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Buy Setup&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/__JBjNQamaLE/S-24rK0c2WI/AAAAAAAAAQ8/JEXfIuRHXqA/s1600/be1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="291" src="http://3.bp.blogspot.com/__JBjNQamaLE/S-24rK0c2WI/AAAAAAAAAQ8/JEXfIuRHXqA/be1.png" width="620" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/yUf0rEvGdIE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/3699217917876241904/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/backtesting-bullish-engulfing-pattern.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/3699217917876241904?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/3699217917876241904?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/yUf0rEvGdIE/backtesting-bullish-engulfing-pattern.html" title="Backtesting Bullish Engulfing Pattern" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/__JBjNQamaLE/S-24rK0c2WI/AAAAAAAAAQ8/JEXfIuRHXqA/s72-c/be1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/backtesting-bullish-engulfing-pattern.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUUEQX86fCp7ImA9WxFQGEs.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-7461774643777839812</id><published>2010-05-14T13:00:00.001-07:00</published><updated>2010-05-14T13:00:00.114-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-14T13:00:00.114-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="candlesticks" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><category scheme="http://www.blogger.com/atom/ns#" term="concepts" /><title>More on Candles</title><content type="html">My recent forays into candlestick patterns has not been very encouraging. I tested the &lt;i&gt;doji&lt;/i&gt; as a trend reversal signal and the results were not impressive.&lt;br /&gt;
&lt;br /&gt;
On doing some more research, I came across &lt;a href="http://candlestickgenius.com/"&gt;candlestickgenius.com&lt;/a&gt;. They claim to be fairly successful at spotting candlestick pattern and have a description on the most &lt;a href="http://www.candlestickgenius.com/candlestick-patterns-top-5.html"&gt;reliable candlestick patterns&lt;/a&gt;. In the next few posts, I will be testing three of these patterns and presenting the results.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Bullish Engulfing&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Bullish engulfing pattern is formed when&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;today's candle is taller than previous day's&lt;/li&gt;
&lt;li&gt;today's candle body is taller than previous day's&lt;/li&gt;
&lt;li&gt;today's candle is white and the previous day's is black &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://www.candlestickgenius.com/images/clip_image002_0003.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="227" src="http://www.candlestickgenius.com/images/clip_image002_0003.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;Hammer&lt;/b&gt;&lt;br /&gt;
A hammer is formed when:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;today's candle is white&lt;/li&gt;
&lt;li&gt; today's candle body is short in relation to the candle height&lt;/li&gt;
&lt;li&gt;today's candle body is located near the top of the candle&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/__JBjNQamaLE/S-xiD4johrI/AAAAAAAAAQw/9pGmspcxtDI/s1600/hammer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/__JBjNQamaLE/S-xiD4johrI/AAAAAAAAAQw/9pGmspcxtDI/s1600/hammer.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;Bullish Harami Pattern&lt;/b&gt;&lt;br /&gt;
A bullish harami is formed when:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;today's candle is white&amp;nbsp;&lt;/li&gt;
&lt;li&gt;previous day's candle is dark&lt;/li&gt;
&lt;li&gt;today's candle is shorter than previous&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/__JBjNQamaLE/S-xk_JQzQKI/AAAAAAAAAQ0/3S4UYTnPGZA/s1600/bh.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="199" src="http://2.bp.blogspot.com/__JBjNQamaLE/S-xk_JQzQKI/AAAAAAAAAQ0/3S4UYTnPGZA/s320/bh.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/ukXVnzo0Y-c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/7461774643777839812/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/more-on-candles_14.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/7461774643777839812?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/7461774643777839812?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/ukXVnzo0Y-c/more-on-candles_14.html" title="More on Candles" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/__JBjNQamaLE/S-xiD4johrI/AAAAAAAAAQw/9pGmspcxtDI/s72-c/hammer.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/more-on-candles_14.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQFQnY9eCp7ImA9WxFWFkQ.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-7867390741680800866</id><published>2010-05-13T12:29:00.000-07:00</published><updated>2010-06-04T16:15:13.860-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-04T16:15:13.860-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="candlesticks" /><category scheme="http://www.blogger.com/atom/ns#" term="strategy" /><category scheme="http://www.blogger.com/atom/ns#" term="featured" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><title>Do Candlestick Patterns Work ?</title><content type="html">Recently, I have been exposed to a lot of material on candlestick charts (&lt;a href="http://www.amazon.com/Japanese-Candlestick-Charting-Techniques-Second/dp/0735201811?ie=UTF8&amp;amp;tag=quantifyi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;Japanese Candlestick Charting Techniques&lt;/a&gt;, &lt;a href="http://www.candlestickforum.com/"&gt;Candlestick Forum&lt;/a&gt;). I really like the intuitive look and feel of a candlestick charts.&lt;br /&gt;
&lt;br /&gt;
Generally speaking, quantitative trading and chart patterns do not work well together. Candlesticks make it easier. In candlestick parlance, a &lt;i&gt;doji&lt;/i&gt; is formed when a security closes very near its open price. From a quantitative perspective, I could spot a &lt;i&gt;doji&lt;/i&gt; as follows :&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://latex.codecogs.com/gif.latex?%5Cfrac%7BAbs%20%28Close[bar]-Open[bar]%29%7D%7BHigh[bar]%20-%20Low[bar]%7D%20%3C%200.15" title="\frac{Abs (Close[bar]-Open[bar])}{High[bar] - Low[bar]} &amp;lt; 0.15" /&gt;


&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Doji as a trend reversal signal&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://stockcharts.com/school/doku.php?id=chart_school:chart_analysis:introduction_to_candlesticks#doji"&gt;Conventional wisdom&lt;/a&gt; states that the &lt;i&gt;doji&lt;/i&gt; is a trend reversal 
signal. It signals a 'draw' between the buyers and sellers. If a &lt;i&gt;doji&lt;/i&gt; shows up at end of consecutive
 down days, it may mean that the down trend is coming to an end.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Back testing the Idea&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Let us back test this idea. I will set up my test as follows :&lt;br /&gt;
&lt;br /&gt;
DataSet : SP500&lt;br /&gt;
BackTest Period : 15 years&lt;br /&gt;
&lt;br /&gt;
Buy Signal :&lt;br /&gt;
Condition 1 : Look for 5 consecutive down days&lt;br /&gt;
Condition 2 : A &lt;i&gt;doji&lt;/i&gt; is formed on the sixth day&lt;br /&gt;
&lt;br /&gt;
Buy At Open on the seventh day&lt;br /&gt;
&lt;br /&gt;
Sell Signal:&lt;br /&gt;
Sell on the eighth day&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Buy Setup&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/__JBjNQamaLE/S-tE6scbviI/AAAAAAAAAQU/Z_BIc6VEhw4/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="292" src="http://2.bp.blogspot.com/__JBjNQamaLE/S-tE6scbviI/AAAAAAAAAQU/Z_BIc6VEhw4/s640/2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;style type="text/css"&gt;
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
&lt;/style&gt;

&lt;br /&gt;
&lt;table class="tableizer-table"&gt;
&lt;tbody&gt;
&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;BackTest Results&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Net Profit&lt;/td&gt;&lt;td&gt;($7,782.10)&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Number of Trades&lt;/td&gt;&lt;td&gt;3,403&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Profit per Bar&lt;/td&gt;&lt;td&gt;($1.14)&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Profit&lt;/td&gt;&lt;td&gt;($2.29)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Total Commission&lt;/td&gt;&lt;td&gt;($13,612.00)&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;0.04%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Winning Trades&lt;/td&gt;&lt;td&gt;1,794&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Losing Trades&lt;/td&gt;&lt;td&gt;1,609&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Win Rate&lt;/td&gt;&lt;td&gt;52.72%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Loss Rate&lt;/td&gt;&lt;td&gt;47.28%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Gross Profit&lt;/td&gt;&lt;td&gt;$152,433.90 &lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Gross Loss&lt;/td&gt;&lt;td&gt;($160,216.00)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit&lt;/td&gt;&lt;td&gt;$84.97 &lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Loss&lt;/td&gt;&lt;td&gt;($99.57)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;2.69%&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Loss %&lt;/td&gt;&lt;td&gt;-2.92%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Max Consecutive Winners&lt;/td&gt;&lt;td&gt;36&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;Max Consecutive Losses&lt;/td&gt;&lt;td&gt;18&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
The theory is impressive. The name of the signal is impressive. The back test results are NOT. And this leads me to question. Do candlestick patterns work?&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/Y6XmEMzctBI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/7867390741680800866/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/do-candlestick-patterns-work.html#comment-form" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/7867390741680800866?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/7867390741680800866?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/Y6XmEMzctBI/do-candlestick-patterns-work.html" title="Do Candlestick Patterns Work ?" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/__JBjNQamaLE/S-tE6scbviI/AAAAAAAAAQU/Z_BIc6VEhw4/s72-c/2.png" height="72" width="72" /><thr:total>5</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/do-candlestick-patterns-work.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8ER3g4eyp7ImA9WxFQF0s.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-4422795823563724201</id><published>2010-05-13T08:00:00.000-07:00</published><updated>2010-05-13T08:00:06.633-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-13T08:00:06.633-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="concepts" /><title>Performance Metrics - resonance</title><content type="html">Recently, I blogged about &lt;a href="http://blog.kilotrader.com/2010/05/performance-metrics.html"&gt;Performance Metrics&lt;/a&gt;. My friend at &lt;a href="http://engineering-returns.com/my-kpis/"&gt;Engineering Returns&lt;/a&gt; agrees with me. &lt;br /&gt;
&lt;br /&gt;
I am not sure if the author has ranked his KPIs in ascending order of importance. But if he did, his top three metrics match with my top three.&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/e096itLek2g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/4422795823563724201/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/performance-metrics-resonance_13.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/4422795823563724201?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/4422795823563724201?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/e096itLek2g/performance-metrics-resonance_13.html" title="Performance Metrics - resonance" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/performance-metrics-resonance_13.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIFQH4_fSp7ImA9WxFQF0w.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-4318275024488353494</id><published>2010-05-11T16:00:00.000-07:00</published><updated>2010-05-12T19:25:11.045-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-12T19:25:11.045-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="strategy" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><title>A Price Action Based Strategy</title><content type="html">The use of price action to make buy/sell is prevalent. According to many, price action is the fundamental thesis of practitioners of technical analysis.&amp;nbsp; Technical Analysis is the art of following price action.&lt;br /&gt;
&lt;br /&gt;
I am presenting back test results for a simple price action based strategy. This is a "long-only" strategy&lt;br /&gt;
&lt;br /&gt;
BUY SIGNAL&lt;br /&gt;
- If price goes down for three consecutive days&lt;br /&gt;
- If ATR (Average Trading Range) is lesser for three consecutive days&lt;br /&gt;
&lt;br /&gt;
TYPICAL SETUP&lt;br /&gt;
A entry typical is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/__JBjNQamaLE/S-nheKf-fBI/AAAAAAAAAP4/KCMcD4ZdBEY/s1600/ddatr1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/__JBjNQamaLE/S-nheKf-fBI/AAAAAAAAAP4/KCMcD4ZdBEY/ddatr1.png" width="620" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
BACK TEST RESULTS&lt;br /&gt;
&lt;br /&gt;
DataSet : SP500&lt;br /&gt;
Period : 15 years&lt;br /&gt;
&lt;br /&gt;
&lt;style type="text/css"&gt;
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
&lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table class="tableizer-table"&gt;&lt;tbody&gt;
&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;Long Trades&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Net Profit&lt;/td&gt;&lt;td&gt;$18,457.37 &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Profit per Bar&lt;/td&gt;&lt;td&gt;$5.41 &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Total Commission&lt;/td&gt;&lt;td&gt;($6,640.00)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Number of Trades&lt;/td&gt;&lt;td&gt;1,660&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit&lt;/td&gt;&lt;td&gt;$11.12 &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;0.26%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2.06&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Winning Trades&lt;/td&gt;&lt;td&gt;982&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Win Rate&lt;/td&gt;&lt;td&gt;59.16%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Gross Profit&lt;/td&gt;&lt;td&gt;$69,689.33 &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit&lt;/td&gt;&lt;td&gt;$70.97 &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;1.88%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;1.95&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Losing Trades&lt;/td&gt;&lt;td&gt;678&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Loss Rate&lt;/td&gt;&lt;td&gt;40.84%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Gross Loss&lt;/td&gt;&lt;td&gt;($51,231.96)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Loss&lt;/td&gt;&lt;td&gt;($75.56)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Loss %&lt;/td&gt;&lt;td&gt;-2.09%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;2.21&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Maximum Drawdown&lt;/td&gt;&lt;td&gt;($2,383.78)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Profit Factor&lt;/td&gt;&lt;td&gt;1.36&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Recovery Factor&lt;/td&gt;&lt;td&gt;7.74&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Payoff Ratio&lt;/td&gt;&lt;td&gt;0.9&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
It is amazing to note a simple strategy as stated above,&lt;br /&gt;
- has a win rate of 60%&lt;br /&gt;
- is profitable over a long period of time&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/R9XQNDhQun0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/4318275024488353494/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/price-action-based-strategy.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/4318275024488353494?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/4318275024488353494?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/R9XQNDhQun0/price-action-based-strategy.html" title="A Price Action Based Strategy" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/__JBjNQamaLE/S-nheKf-fBI/AAAAAAAAAP4/KCMcD4ZdBEY/s72-c/ddatr1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/price-action-based-strategy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMFQXs4cCp7ImA9WxFRGUQ.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-1526265192996426344</id><published>2010-05-03T18:11:00.000-07:00</published><updated>2010-05-04T10:16:50.538-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-04T10:16:50.538-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="concepts" /><title>Performance Metrics</title><content type="html">&lt;div style="text-align: center;"&gt;&amp;nbsp; &lt;i&gt;"What Gets Measured Gets Done"&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;
Over the past few weeks, I have been thinking about how to measure the success/failure of my trading strategy. I wrote a post titled, &lt;a href="http://blog.kilotrader.com/2010/04/what-is-good-strategy.html"&gt;What is a good strategy&lt;/a&gt;. I have also been looking what other people are doing with respect to performance metrics of a strategy.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.stockalicious.com/"&gt;Stockalicious&lt;/a&gt; claims to the the Worlds Easiest Portfolio Analysis tool. It sure is easy. I uploaded my trades saved in a csv format and it gave me the following metrics&lt;br /&gt;
&lt;br /&gt;
Total Return&lt;br /&gt;
Maximum Return&lt;br /&gt;
Minimum Return&lt;br /&gt;
Annualized Return&lt;br /&gt;
Volatility&lt;br /&gt;
Sharpe Ratio&lt;br /&gt;
Max DrawDown&lt;br /&gt;
Max Cost of Capital&lt;br /&gt;
Max Equity&lt;br /&gt;
&lt;br /&gt;
On top of these measures, I think there are two other important measures: CAGR and Win Ratio. The Win ratio is easily calculated. It is the ratio of&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.codecogs.com/eqnedit.php?latex=Win%20Ratio%20=%20%5Cfrac%7BNumber%20Of%20Winning%20Trades%7D%7BNumber%20of%20Losing%20Trades%7D" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?Win%20Ratio%20=%20%5Cfrac%7BNumber%20Of%20Winning%20Trades%7D%7BNumber%20of%20Losing%20Trades%7D" title="Win Ratio = \frac{Number of Winning Trades}{Number of Losing Trades}" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
CAGR stands for Compound Annual Growth Rate. I think it gives the most accurate way of comparing two strategy by normalizing time over an year. It can be calculated as shown below&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.codecogs.com/eqnedit.php?latex=CAGR%20=%20%5Cleft%20%28%20%5Cleft%20%28%20%5Cfrac%7BEndingCapital%7D%7BStartingCapital%7D%20%5Cright%20%29%5E%7B%5Cfrac%7B1%7D%7BNoOfYears%7D%7D-1%20%5Cright%20%29%20*%20100" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?CAGR%20=%20%5Cleft%20%28%20%5Cleft%20%28%20%5Cfrac%7BEndingCapital%7D%7BStartingCapital%7D%20%5Cright%20%29%5E%7B%5Cfrac%7B1%7D%7BNoOfYears%7D%7D-1%20%5Cright%20%29%20*%20100" title="CAGR = \left ( \left ( \frac{EndingCapital}{StartingCapital} \right )^{\frac{1}{NoOfYears}}-1 \right ) * 100" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
A portfolio that has a rate of return of 1% over 4 trading days has a CAGR of ~85%. Another portfolio that has a  rate of return of 5% over 20 trading days also has a CAGR of ~85%. Gains of 1% over 4 days may be more achievable that gains of 5% of over a month.&lt;br /&gt;
&lt;br /&gt;
Another important metric is the Max Drawdown as a measure of risk to the portfolio. This is a measure of the difference between the highest value of the portfolio to the lowest value of the portfolio. A very high drawdown can make the strategy impractical as you may not the capital to execute the on the signals provided by the strategy.&lt;br /&gt;
&lt;br /&gt;
I think that these three measures (win ratio, cagr and draw down) are the most important of all the performance measures out there&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/FndTX17-IQM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/1526265192996426344/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/05/performance-metrics.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/1526265192996426344?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/1526265192996426344?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/FndTX17-IQM/performance-metrics.html" title="Performance Metrics" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>3</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/05/performance-metrics.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQCQXk-fip7ImA9WxFRGUQ.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-2481563653464773034</id><published>2010-04-27T14:23:00.000-07:00</published><updated>2010-05-04T10:16:00.756-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-04T10:16:00.756-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="books" /><title>Relatively Speaking !!</title><content type="html">&lt;a href="http://www.amazon.com/What-Buy-When-Sell-Performance/dp/1592803598?ie=UTF8&amp;amp;tag=quantifyi-20&amp;amp;link_code=bil&amp;amp;camp=213689&amp;amp;creative=392969" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" target="_blank"&gt;&lt;img alt="What to Buy and When to Sell: Technical Strategies for Selecting High Performance Stocks" src="http://ws.amazon.com/widgets/q?MarketPlace=US&amp;amp;ServiceVersion=20070822&amp;amp;ID=AsinImage&amp;amp;WS=1&amp;amp;Format=_SL160_&amp;amp;ASIN=1592803598&amp;amp;tag=quantifyi-20" /&gt;&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=quantifyi-20&amp;amp;l=bil&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1592803598" style="border: medium none ! important; margin: 0px ! important; padding: 0px ! important;" width="1" /&gt;&lt;br /&gt;
&lt;br /&gt;
I just finished reading this book called&lt;a href="http://www.amazon.com/Beat-Market-Invest-Knowing-Stocks/dp/0132439786?ie=UTF8&amp;amp;tag=quantifyi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt; Beat the Market: Invest by Knowing What Stocks to Buy and What Stocks to Sell&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=quantifyi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0132439786" style="border: medium none ! important; margin: 0px ! important; padding: 0px ! important;" width="1" /&gt; by Charles D. Kirkpatrick. This book has resonated with me quite a bit. Needless to say, I highly recommend it.&lt;br /&gt;
&lt;br /&gt;
The book presents the authors research where is looks at the market in relation to itself and introduces the concept of &lt;i&gt;relatives&lt;/i&gt;. The author compares the performance of the stock in relation to the other stocks in the market and ranks them in percentiles. He then 'backtests' and claims that the &lt;i&gt;'market leaders'&lt;/i&gt; continue to lead the market in the short term and yield better than the market.&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. It is a simple idea that makes sense.&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/PrnJXsvlYnI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/2481563653464773034/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/04/relatively-speaking.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/2481563653464773034?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/2481563653464773034?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/PrnJXsvlYnI/relatively-speaking.html" title="Relatively Speaking !!" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/04/relatively-speaking.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUDRHoyfCp7ImA9WxFRGUQ.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-2416584067812800369</id><published>2010-04-23T17:19:00.000-07:00</published><updated>2010-05-04T10:14:35.494-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-04T10:14:35.494-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="strategy" /><title>What is a good strategy ?</title><content type="html">In my &lt;a href="http://blog.kilotrader.com/2010/04/simple-moving-average-based-strategy.html"&gt;&lt;span style="background-color: white;"&gt;last post&lt;/span&gt;&lt;/a&gt;, I showed a very simple strategy. Of course it does not work in the real world. It exposes too much of your capital to risk... capital that is better used elsewhere.&lt;br /&gt;
&lt;br /&gt;
So, that leads to me to the question of this post. What is a good strategy. The strategy in the last post was profitable.&amp;nbsp; Over a span of 5years, it yielded 11%. On an annualized basis, its gave 2.21 % per year. It is definitely not fantastic, but is better than your bank.&lt;br /&gt;
&lt;br /&gt;
Notice that the win rate for that strategy was 40.48 %. I could think of this number as probability of being successful in my next trade.&amp;nbsp; Another way to state this is : I made a profit of 19.27% for 40.48% of my trades and I took a loss of 9.16% for 59.25% of my trades. This gives me an average profit of 2.35% / trades. An average trade was 127 bars long (~ 3 months).&lt;br /&gt;
&lt;br /&gt;
The goal of a good strategy is to get the best returns with the smallest risk. So,&amp;nbsp; a desirable strategy would have :&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;A high average profit number&lt;/li&gt;
&lt;li&gt;A high win rate&lt;/li&gt;
&lt;li&gt;A low average barsHeld number (trade length)&lt;/li&gt;
&lt;/ol&gt;Is there such a strategy out there?&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/TXBnfPmaa4g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/2416584067812800369/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/04/what-is-good-strategy.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/2416584067812800369?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/2416584067812800369?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/TXBnfPmaa4g/what-is-good-strategy.html" title="What is a good strategy ?" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/04/what-is-good-strategy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUNQX4yfCp7ImA9WxFRGUQ.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-8312234798179079811</id><published>2010-04-16T17:19:00.001-07:00</published><updated>2010-05-04T10:14:50.094-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-04T10:14:50.094-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="strategy" /><category scheme="http://www.blogger.com/atom/ns#" term="backtest" /><title>A simple Moving Average Based Strategy</title><content type="html">&lt;p&gt;Let us take a look at a very simple moving average based strategy. This strategy is discussed in &lt;a target="_blank"  href="http://www.amazon.com/Beyond-Technical-Analysis-Develop-Implement/dp/0471415677?ie=UTF8&amp;tag=quantifyi-20&amp;link_code=btl&amp;camp=213689&amp;creative=392969"&gt;Beyond Technical Analysis&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=quantifyi-20&amp;l=btl&amp;camp=213689&amp;creative=392969&amp;o=1&amp;a=0471415677" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important; padding: 0px !important" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;STRATEGY RULES :&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;Rule 1 : Go LONG at next days&amp;#39; open if 3-day SMA crosses over 65-day SMA&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;Rule 2 : Close LONG position and Go SHORT next days&amp;#39; open if 3-day SMA crosses under 65-day SMA&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;Rule 3 : Cover SHORT position. Back to Rule 1.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;Since moving averages are lagging indicators of trend, rule 1 indicates in the last three days, the short-term price action for the&lt;br /&gt;
security is positive and it may be time to jump in.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;This strategy is an long/short strategy is always takes a position. There is no &amp;quot;time-out&amp;quot; period. You are either long or&lt;br /&gt;
short with the security.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;The back test results are shown below. The strategy was back tested on 5 year data with S&amp;amp;P 100 stocks&lt;br /&gt;
&lt;/p&gt;&lt;style type="text/css"&gt;
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 10px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
&lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table class="tableizer-table"&gt;&lt;tr class="tableizer-firstrow"&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;All Trades&lt;/th&gt;&lt;th&gt;Long Trades&lt;/th&gt;&lt;th&gt;Short Trades&lt;/th&gt;&lt;th&gt;Buy &amp; Hold&lt;/th&gt;&lt;th&gt;&amp;nbsp;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Starting Capital&lt;/td&gt;&lt;td&gt;$10,000.00&lt;/td&gt;&lt;td&gt;$10,000.00&lt;/td&gt;&lt;td&gt;$10,000.00&lt;/td&gt;&lt;td&gt;$10,000.00&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Ending Capital&lt;/td&gt;&lt;td&gt;$11,151.13&lt;/td&gt;&lt;td&gt;$11,326.72&lt;/td&gt;&lt;td&gt;$9,824.41&lt;/td&gt;&lt;td&gt;$12,685.16&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Net Profit&lt;/td&gt;&lt;td&gt;$1,151.13&lt;/td&gt;&lt;td&gt;$1,326.72&lt;/td&gt;&lt;td&gt;($175.59)&lt;/td&gt;&lt;td&gt;$2,685.16&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Net Profit %&lt;/td&gt;&lt;td&gt;11.51%&lt;/td&gt;&lt;td&gt;13.27%&lt;/td&gt;&lt;td&gt;-1.76%&lt;/td&gt;&lt;td&gt;26.85%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Annualized Gain %&lt;/td&gt;&lt;td&gt;2.21%&lt;/td&gt;&lt;td&gt;2.53%&lt;/td&gt;&lt;td&gt;-0.35%&lt;/td&gt;&lt;td&gt;4.88%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Exposure&lt;/td&gt;&lt;td&gt;54.66%&lt;/td&gt;&lt;td&gt;24.41%&lt;/td&gt;&lt;td&gt;30.89%&lt;/td&gt;&lt;td&gt;79.77%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Total Commission&lt;/td&gt;&lt;td&gt;($55.50)&lt;/td&gt;&lt;td&gt;($33.96)&lt;/td&gt;&lt;td&gt;($21.54)&lt;/td&gt;&lt;td&gt;($4.90)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Return on Cash&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Margin Interest Paid&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Dividends Received&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;td&gt;$0.00&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Number of Trades&lt;/td&gt;&lt;td&gt;620&lt;/td&gt;&lt;td&gt;404&lt;/td&gt;&lt;td&gt;216&lt;/td&gt;&lt;td&gt;95&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit&lt;/td&gt;&lt;td&gt;$1.86&lt;/td&gt;&lt;td&gt;$3.28&lt;/td&gt;&lt;td&gt;($0.81)&lt;/td&gt;&lt;td&gt;$28.26&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;2.35%&lt;/td&gt;&lt;td&gt;3.80%&lt;/td&gt;&lt;td&gt;-0.38%&lt;/td&gt;&lt;td&gt;32.62%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;127.37&lt;/td&gt;&lt;td&gt;86.60&lt;/td&gt;&lt;td&gt;203.61&lt;/td&gt;&lt;td&gt;1,238.99&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Winning Trades&lt;/td&gt;&lt;td&gt;251&lt;/td&gt;&lt;td&gt;162&lt;/td&gt;&lt;td&gt;89&lt;/td&gt;&lt;td&gt;62&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Win Rate&lt;/td&gt;&lt;td&gt;40.48%&lt;/td&gt;&lt;td&gt;40.10%&lt;/td&gt;&lt;td&gt;41.20%&lt;/td&gt;&lt;td&gt;65.26%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Gross Profit&lt;/td&gt;&lt;td&gt;$3,935.18&lt;/td&gt;&lt;td&gt;$2,500.72&lt;/td&gt;&lt;td&gt;$1,434.46&lt;/td&gt;&lt;td&gt;$3,470.93&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit&lt;/td&gt;&lt;td&gt;$15.68&lt;/td&gt;&lt;td&gt;$15.44&lt;/td&gt;&lt;td&gt;$16.12&lt;/td&gt;&lt;td&gt;$55.98&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Profit %&lt;/td&gt;&lt;td&gt;19.27%&lt;/td&gt;&lt;td&gt;18.52%&lt;/td&gt;&lt;td&gt;20.62%&lt;/td&gt;&lt;td&gt;65.73%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;204.39&lt;/td&gt;&lt;td&gt;156.62&lt;/td&gt;&lt;td&gt;291.35&lt;/td&gt;&lt;td&gt;1,229.94&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Max Consecutive Winners&lt;/td&gt;&lt;td&gt;14&lt;/td&gt;&lt;td&gt;14&lt;/td&gt;&lt;td&gt;12&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Losing Trades&lt;/td&gt;&lt;td&gt;369&lt;/td&gt;&lt;td&gt;242&lt;/td&gt;&lt;td&gt;127&lt;/td&gt;&lt;td&gt;33&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Loss Rate&lt;/td&gt;&lt;td&gt;59.52%&lt;/td&gt;&lt;td&gt;59.90%&lt;/td&gt;&lt;td&gt;58.80%&lt;/td&gt;&lt;td&gt;34.74%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Gross Loss&lt;/td&gt;&lt;td&gt;($2,784.05)&lt;/td&gt;&lt;td&gt;($1,174.00)&lt;/td&gt;&lt;td&gt;($1,610.05)&lt;/td&gt;&lt;td&gt;($785.77)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Loss&lt;/td&gt;&lt;td&gt;($7.54)&lt;/td&gt;&lt;td&gt;($4.85)&lt;/td&gt;&lt;td&gt;($12.68)&lt;/td&gt;&lt;td&gt;($23.81)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Loss %&lt;/td&gt;&lt;td&gt;-9.16%&lt;/td&gt;&lt;td&gt;-6.06%&lt;/td&gt;&lt;td&gt;-15.09%&lt;/td&gt;&lt;td&gt;-29.57%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Average Bars Held&lt;/td&gt;&lt;td&gt;74.97&lt;/td&gt;&lt;td&gt;39.73&lt;/td&gt;&lt;td&gt;142.12&lt;/td&gt;&lt;td&gt;1,256.00&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Max Consecutive Losses&lt;/td&gt;&lt;td&gt;16&lt;/td&gt;&lt;td&gt;19&lt;/td&gt;&lt;td&gt;19&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Maximum Drawdown&lt;/td&gt;&lt;td&gt;($1,846.04)&lt;/td&gt;&lt;td&gt;($854.87)&lt;/td&gt;&lt;td&gt;($2,264.80)&lt;/td&gt;&lt;td&gt;($6,304.03)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Maximum Drawdown Date&lt;/td&gt;&lt;td&gt;10/28/2009&lt;/td&gt;&lt;td&gt;7/7/2009&lt;/td&gt;&lt;td&gt;4/14/2010&lt;/td&gt;&lt;td&gt;3/9/2009&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Maximum Drawdown %&lt;/td&gt;&lt;td&gt;-15.20%&lt;/td&gt;&lt;td&gt;-7.87%&lt;/td&gt;&lt;td&gt;-18.73%&lt;/td&gt;&lt;td&gt;-43.94%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Maximum Drawdown % Date&lt;/td&gt;&lt;td&gt;10/28/2009&lt;/td&gt;&lt;td&gt;7/7/2009&lt;/td&gt;&lt;td&gt;4/14/2010&lt;/td&gt;&lt;td&gt;3/9/2009&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Wealth-Lab Score&lt;/td&gt;&lt;td&gt;3.43&lt;/td&gt;&lt;td&gt;9.55&lt;/td&gt;&lt;td&gt;-1.36&lt;/td&gt;&lt;td&gt;3.43&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Sharpe Ratio&lt;/td&gt;&lt;td&gt;0.22&lt;/td&gt;&lt;td&gt;0.40&lt;/td&gt;&lt;td&gt;-0.20&lt;/td&gt;&lt;td&gt;0.35&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Profit Factor&lt;/td&gt;&lt;td&gt;1.41&lt;/td&gt;&lt;td&gt;2.13&lt;/td&gt;&lt;td&gt;0.89&lt;/td&gt;&lt;td&gt;4.42&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Recovery Factor&lt;/td&gt;&lt;td&gt;0.62&lt;/td&gt;&lt;td&gt;1.55&lt;/td&gt;&lt;td&gt;0.00&lt;/td&gt;&lt;td&gt;0.43&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Payoff Ratio&lt;/td&gt;&lt;td&gt;2.10&lt;/td&gt;&lt;td&gt;3.06&lt;/td&gt;&lt;td&gt;1.37&lt;/td&gt;&lt;td&gt;2.22&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/2thF36ncVHM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/8312234798179079811/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/04/simple-moving-average-based-strategy.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/8312234798179079811?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/8312234798179079811?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/2thF36ncVHM/simple-moving-average-based-strategy.html" title="A simple Moving Average Based Strategy" /><author><name>guru ji</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/04/simple-moving-average-based-strategy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cBRno6fip7ImA9WxFQF08.&quot;"><id>tag:blogger.com,1999:blog-3251571361906002372.post-6824805388715676514</id><published>2010-03-18T13:29:00.001-07:00</published><updated>2010-05-12T20:24:17.416-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-12T20:24:17.416-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="concepts" /><title>Moving Averages</title><content type="html">Moving Averages are the most widespread of technical indicators that are used in trading equities, futures and currencies. Arguably, they are the most successful of the indicators that are out there. At the very least, they are as good as any other indicator. They are really easy to understand and implement. Maybe, that explains the popularity.&lt;br /&gt;
&lt;br /&gt;
As a beginner, it is vital to understand moving averages. We need to understand what they are and how they behave and how profitable they really are.  Over the next few posts, I intend to explore this very simple concept and test MA based trading strategies.&lt;br /&gt;
&lt;br /&gt;
Simply stated a moving average is the average value of the last &lt;span style="font-style: italic;"&gt;n&lt;/span&gt; days of trading. Since this value is different for every trading, it value is 'moving' with time. Plotted against the time axis, it provides smoothed version of the time series under consideration (close, high, low).&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/__JBjNQamaLE/S6U80Yi4b0I/AAAAAAAAAOk/9UENyfwwNI8/s1600-h/1.pkg.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="201" src="http://3.bp.blogspot.com/__JBjNQamaLE/S6U80Yi4b0I/AAAAAAAAAOk/9UENyfwwNI8/1.pkg.png" width="450" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Shown above are two moving average curves for &lt;a href="http://www.google.com/finance?q=cost"&gt;COST&lt;/a&gt;. In the picture shown above the arithmetic average is used to give us a &lt;b&gt;Simple Moving Average, SMA&lt;/b&gt;. You could also use a linearly weighted average (&lt;b&gt;Linear Weighted Moving Average, LMA&lt;/b&gt;) or an exponentially weighted average (&lt;b&gt;Exponentially Weighted Moving Average, EMA&lt;/b&gt;).&lt;img src="http://feeds.feedburner.com/~r/kilotrader/PcGl/~4/AlrrFwtSGec" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.kilotrader.com/feeds/6824805388715676514/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.kilotrader.com/2010/03/moving-averages_18.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/6824805388715676514?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3251571361906002372/posts/default/6824805388715676514?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/kilotrader/PcGl/~3/AlrrFwtSGec/moving-averages_18.html" title="Moving Averages" /><author><name>An Open Notebook Trading Project</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/__JBjNQamaLE/S6U80Yi4b0I/AAAAAAAAAOk/9UENyfwwNI8/s72-c/1.pkg.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://blog.kilotrader.com/2010/03/moving-averages_18.html</feedburner:origLink></entry></feed>
