<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5815834906618132494.post7875282317638300993..comments</id><updated>2009-07-02T16:50:54.790-05:00</updated><category term='xts'/><category term='Code'/><category term='Interactive Brokers'/><category term='Drawdown'/><category term='LSPM'/><category term='quantmod'/><category term='Data'/><category term='Releases'/><category term='HIstorical Data'/><category term='blotter'/><category term='quantstrat'/><category term='Events'/><category term='TTR'/><category term='API'/><category term='IBrokers'/><category term='Examples'/><category term='R'/><category term='Excel'/><title type='text'>Comments on FOSS Trading: RSI(2) with Position Sizing</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.fosstrading.com/feeds/7875282317638300993/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default'/><link rel='alternate' type='text/html' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html'/><author><name>Joshua Ulrich</name><uri>https://profiles.google.com/101580259945483587604</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-cNBfNQ-0tKE/AAAAAAAAAAI/AAAAAAAAAAA/QxKaQjp1h4M/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5815834906618132494.post-3510659784508130867</id><published>2009-07-02T16:50:54.790-05:00</published><updated>2009-07-02T16:50:54.790-05:00</updated><title type='text'>Thanks Josh, I found that the problem lies in how ...</title><content type='html'>Thanks Josh, I found that the problem lies in how the lag operator works. I posted a similar problem to the R Finance Community and the error should be corrected in the new version of quantmod. &lt;br /&gt;&lt;br /&gt;To quote Jeff:&lt;br /&gt;&amp;quot;lag.zoo was designed by Achim and Kurt to map as closely as possible to R&amp;#39;s ts class behavior, which by all rational interpretations is simply inconsistent with the common understanding of lagged series. Zoo&amp;#39;s goal was a better ts; xts is a time-based zoo.&lt;br /&gt;&lt;br /&gt;That said, lag.xts makes a break from this R lag &amp;quot;design&amp;quot; and implements a different set of default behavior, more consistent with user expectations IMO.&lt;br /&gt;&lt;br /&gt;Take a look at ?lag.xts&lt;br /&gt;&lt;br /&gt;Obviously the downside is management of this difference amongst time classes.&amp;quot;&lt;br /&gt;&lt;br /&gt;Thanks again</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/3510659784508130867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/3510659784508130867'/><link rel='alternate' type='text/html' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html?showComment=1246571454790#c3510659784508130867' title=''/><author><name>Sc00per</name><uri>http://www.blogger.com/profile/02804157233788845545</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html' ref='tag:blogger.com,1999:blog-5815834906618132494.post-7875282317638300993' source='http://www.blogger.com/feeds/5815834906618132494/posts/default/7875282317638300993' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1646027639'/></entry><entry><id>tag:blogger.com,1999:blog-5815834906618132494.post-4521275014495963594</id><published>2009-06-24T13:53:30.324-05:00</published><updated>2009-06-24T13:53:30.324-05:00</updated><title type='text'>Hi Sean,

It&amp;#39;s really hard to say, without mor...</title><content type='html'>Hi Sean,&lt;br /&gt;&lt;br /&gt;It&amp;#39;s really hard to say, without more information.  Here are the things I would expect to cause differences:&lt;br /&gt;&lt;br /&gt;- actual data differences between Yahoo and Bloomberg&lt;br /&gt;&lt;br /&gt;- data object differences (i.e. getSymbols returns an xts object, the function you use to pull Bloomberg data may return a data.frame, matrix, etc.)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/4521275014495963594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/4521275014495963594'/><link rel='alternate' type='text/html' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html?showComment=1245869610324#c4521275014495963594' title=''/><author><name>Joshua Ulrich</name><uri>http://www.blogger.com/profile/16641971932645230429</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html' ref='tag:blogger.com,1999:blog-5815834906618132494.post-7875282317638300993' source='http://www.blogger.com/feeds/5815834906618132494/posts/default/7875282317638300993' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1996417509'/></entry><entry><id>tag:blogger.com,1999:blog-5815834906618132494.post-6914607882963769639</id><published>2009-06-19T07:53:50.603-05:00</published><updated>2009-06-19T07:53:50.603-05:00</updated><title type='text'>Thank you very much for the informative post. I wa...</title><content type='html'>Thank you very much for the informative post. I was wondering if you knew of any limitations this code would have when we do not use the getSymbols quantmod function and instead use imported Bloomberg data. &lt;br /&gt;&lt;br /&gt;I have found that the results from Bloomberg data differ highly from the results you&amp;#39;ve posted. &lt;br /&gt;&lt;br /&gt;I think that this problem may be due to how RSI and ROC calculate the signals and returns respectively. &lt;br /&gt;&lt;br /&gt;Any advice or suggestions would be awesome. Thanks in advance. &lt;br /&gt;&lt;br /&gt;Sean</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/6914607882963769639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/6914607882963769639'/><link rel='alternate' type='text/html' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html?showComment=1245416030603#c6914607882963769639' title=''/><author><name>Sc00per</name><uri>http://www.blogger.com/profile/02804157233788845545</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html' ref='tag:blogger.com,1999:blog-5815834906618132494.post-7875282317638300993' source='http://www.blogger.com/feeds/5815834906618132494/posts/default/7875282317638300993' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1646027639'/></entry><entry><id>tag:blogger.com,1999:blog-5815834906618132494.post-4027616853492820664</id><published>2009-05-16T10:59:00.000-05:00</published><updated>2009-05-16T10:59:00.000-05:00</updated><title type='text'>Hi Damian,

I'll keep that in mind for when we sta...</title><content type='html'>Hi Damian,&lt;br /&gt;&lt;br /&gt;I'll keep that in mind for when we start showing some more complicated trading systems and portfolio management using another package, 'blotter'.&lt;br /&gt;&lt;br /&gt;You can see a demo of the blotter package by installing it, attaching it (via 'library()'), and running 'demo(turtles)'.&lt;br /&gt;&lt;br /&gt;Please do note that the blotter package is still in heavy development, so many things will probably change.  Such is life on the bleeding edge. :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/4027616853492820664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/4027616853492820664'/><link rel='alternate' type='text/html' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html?showComment=1242489540000#c4027616853492820664' title=''/><author><name>Joshua Ulrich</name><uri>http://www.blogger.com/profile/16641971932645230429</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html' ref='tag:blogger.com,1999:blog-5815834906618132494.post-7875282317638300993' source='http://www.blogger.com/feeds/5815834906618132494/posts/default/7875282317638300993' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1996417509'/></entry><entry><id>tag:blogger.com,1999:blog-5815834906618132494.post-5273533306891766022</id><published>2009-05-15T11:52:00.000-05:00</published><updated>2009-05-15T11:52:00.000-05:00</updated><title type='text'>This is awesome - very cool.  I also was curious i...</title><content type='html'>This is awesome - very cool.  I also was curious if you could put together a simple example of the following:&lt;br /&gt;&lt;br /&gt;- Take four ETFs (SPY,IWM,QQQQ,TLT) and rank them by their 12m ROC.&lt;br /&gt;- Buy the top one on the first day of the month.&lt;br /&gt;- Rerank at the beginning of each month, sell the fund if it has fallen from the top position and buy the new top position.&lt;br /&gt;&lt;br /&gt;Thanks much!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/5273533306891766022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/5273533306891766022'/><link rel='alternate' type='text/html' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html?showComment=1242406320000#c5273533306891766022' title=''/><author><name>Damian</name><uri>http://www.blogger.com/profile/16016686632386396090</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html' ref='tag:blogger.com,1999:blog-5815834906618132494.post-7875282317638300993' source='http://www.blogger.com/feeds/5815834906618132494/posts/default/7875282317638300993' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1750744102'/></entry><entry><id>tag:blogger.com,1999:blog-5815834906618132494.post-1716202800968099813</id><published>2009-05-02T19:29:00.000-05:00</published><updated>2009-05-02T19:29:00.000-05:00</updated><title type='text'>i look forward to it -- never could get my head ar...</title><content type='html'>i look forward to it -- never could get my head around performance metrics..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/1716202800968099813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5815834906618132494/7875282317638300993/comments/default/1716202800968099813'/><link rel='alternate' type='text/html' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html?showComment=1241310540000#c1716202800968099813' title=''/><author><name>Autore del blog</name><uri>http://www.blogger.com/profile/08536859794554569165</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.fosstrading.com/2009/05/rsi2-with-position-sizing.html' ref='tag:blogger.com,1999:blog-5815834906618132494.post-7875282317638300993' source='http://www.blogger.com/feeds/5815834906618132494/posts/default/7875282317638300993' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1316456195'/></entry></feed>
