<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for Investing Intelligently</title>
	<atom:link href="http://www.investingintelligently.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.investingintelligently.com</link>
	<description>Not just another (Canadian) financial blog</description>
	<pubDate>Mon, 15 Mar 2010 18:12:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Comment on &#8220;It is very hard, if not impossible, to justify active management&#8221; by Daddy Paul</title>
		<link>http://www.investingintelligently.com/2009/02/26/it-is-very-hard-if-not-impossible-to-justify-active-management/#comment-8592</link>
		<dc:creator>Daddy Paul</dc:creator>
		<pubDate>Sun, 14 Mar 2010 17:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/?p=469#comment-8592</guid>
		<description>I respectfully disagree that it is hard to justify active management. I do believe if you are talking single country large caps stocks index funds are the way you go but when it comes to mid and small cap investing and global funds a good managed fund will yield superior results.</description>
		<content:encoded><![CDATA[<p>I respectfully disagree that it is hard to justify active management. I do believe if you are talking single country large caps stocks index funds are the way you go but when it comes to mid and small cap investing and global funds a good managed fund will yield superior results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CommunityLend Pre-Launch Site Revealed by Colin Henderson</title>
		<link>http://www.investingintelligently.com/2008/04/10/communitylend-pre-launch-site-revealed/#comment-8588</link>
		<dc:creator>Colin Henderson</dc:creator>
		<pubDate>Wed, 24 Feb 2010 17:38:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/2008/04/10/communitylend-pre-launch-site-revealed/#comment-8588</guid>
		<description>It has been a while but thought I would let you know we are now live and accepting borrowers and lenders.  It has been a long journey, but we received the necessary licences and we are open for business in Ontario and Quebec for now, with other provinces coming as soon as possible.</description>
		<content:encoded><![CDATA[<p>It has been a while but thought I would let you know we are now live and accepting borrowers and lenders.  It has been a long journey, but we received the necessary licences and we are open for business in Ontario and Quebec for now, with other provinces coming as soon as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Got laid off by Canadian Personal Finance Blog &#187; Blog Archive &#187; Random Thoughts: Financial Shock Collar?</title>
		<link>http://www.investingintelligently.com/2009/11/06/got-laid-off/#comment-8568</link>
		<dc:creator>Canadian Personal Finance Blog &#187; Blog Archive &#187; Random Thoughts: Financial Shock Collar?</dc:creator>
		<pubDate>Fri, 05 Feb 2010 06:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/?p=474#comment-8568</guid>
		<description>[...] hadn&#8217;t noticed but Dave over a Investing Intelligently Got Laid Off, now it looks like he has found something, but does bring home that the alleged [...]</description>
		<content:encoded><![CDATA[<p>[...] hadn&#8217;t noticed but Dave over a Investing Intelligently Got Laid Off, now it looks like he has found something, but does bring home that the alleged [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Air Miles Blows by JadeDragon</title>
		<link>http://www.investingintelligently.com/2007/08/30/air-miles-blows/#comment-8564</link>
		<dc:creator>JadeDragon</dc:creator>
		<pubDate>Wed, 03 Feb 2010 02:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/2007/08/30/air-miles-blows/#comment-8564</guid>
		<description>On the contrary, it is all in how you use the Air Miles program.  By lowering my cost per mile and collecting a lot I don't mind redeeming for merchandise.  I actually got a John Deere riding lawn mower, honeymoon cruise, exercise equipment and lots of other stuff.  I've linked to one of my guides on how I pulled it off.</description>
		<content:encoded><![CDATA[<p>On the contrary, it is all in how you use the Air Miles program.  By lowering my cost per mile and collecting a lot I don&#8217;t mind redeeming for merchandise.  I actually got a John Deere riding lawn mower, honeymoon cruise, exercise equipment and lots of other stuff.  I&#8217;ve linked to one of my guides on how I pulled it off.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VEA vs XIN: Foreign Exchange Fees vs. Higher MER by Paul</title>
		<link>http://www.investingintelligently.com/2008/10/21/vea-vs-xin-foreign-exchange-fees-vs-higher-mer/#comment-8557</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 26 Jan 2010 18:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/?p=457#comment-8557</guid>
		<description>My comments are assuming you have a CAD based account (in my case my RRSP).  So you get hit with the exchange rate both ways (div to you, then stock purchase with dividends)</description>
		<content:encoded><![CDATA[<p>My comments are assuming you have a CAD based account (in my case my RRSP).  So you get hit with the exchange rate both ways (div to you, then stock purchase with dividends)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VEA vs XIN: Foreign Exchange Fees vs. Higher MER by Paul</title>
		<link>http://www.investingintelligently.com/2008/10/21/vea-vs-xin-foreign-exchange-fees-vs-higher-mer/#comment-8556</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 26 Jan 2010 14:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/?p=457#comment-8556</guid>
		<description>One thing you did not address is the exchange rate costs associated with Dividends.  With each dividend getting hit with a loss of 1%, it will make it less desirable to own a US based ETF vs a CAD based ETF.  Additionally, some Canadian stock brokers don't do DRIPS for VEA, but they do allow it for XIN.  

Things to consider before swapping XIN for VEA. I'm still on the fence whether it makes sense for me.</description>
		<content:encoded><![CDATA[<p>One thing you did not address is the exchange rate costs associated with Dividends.  With each dividend getting hit with a loss of 1%, it will make it less desirable to own a US based ETF vs a CAD based ETF.  Additionally, some Canadian stock brokers don&#8217;t do DRIPS for VEA, but they do allow it for XIN.  </p>
<p>Things to consider before swapping XIN for VEA. I&#8217;m still on the fence whether it makes sense for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Investing Inside an RRSP vs. Outside an RRSP by CanadianInvestor</title>
		<link>http://www.investingintelligently.com/2006/03/26/investing-inside-an-rrsp-vs-outside-an-rrsp/#comment-8554</link>
		<dc:creator>CanadianInvestor</dc:creator>
		<pubDate>Tue, 26 Jan 2010 10:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/2006/03/26/investing-inside-an-rrsp-vs-outside-an-rrsp/#comment-8554</guid>
		<description>In retrospect, CC was right on both counts - the capital gains plan hasn't happened and the Foster plan's vulnerability has been exposed in 2008!</description>
		<content:encoded><![CDATA[<p>In retrospect, CC was right on both counts - the capital gains plan hasn&#8217;t happened and the Foster plan&#8217;s vulnerability has been exposed in 2008!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Investment Performance Software by Dave</title>
		<link>http://www.investingintelligently.com/2006/07/27/investment-performance-software/#comment-8533</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 01 Jan 2010 03:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/2006/07/27/investment-performance-software/#comment-8533</guid>
		<description>Carlos, here it is. It uses NumPy.

&lt;pre&gt;from __future__ import division
import unittest, csv, string, datetime
from numpy import floor, reshape, size, array, arange
from dateutil.relativedelta import relativedelta
import sys

def xirr(cash_flows, dates, yld=0.1, maxiter=50):
    """
    @param cash_flows list of cashflows
    @param dates list of datetime.date objects
    @param yld guess for rate of return
    @param maxiter maximum iterations
    """
    assert len(dates) == len(cash_flows)
    for date in dates:
        assert type(date) == datetime.date

    date_ordinals = array([x.toordinal() for x in dates])
    cash_flows = array(cash_flows)

    #number of years in cash flow FIXME: use max and min date, not first and last in list
    func = int(floor(yearfrac(dates[0], dates[-1])))
    if func == 0:
        func = 1
    #matlab: tf = func*(dates(:,loop)-dates(1,loop))/(datemnth(dates(1,loop),12*func,0,0)-dates(1,loop));
    tf = func*(date_ordinals - date_ordinals[0]) / (dates[0] + relativedelta(months = +12*func) - dates[0]).days

    # Determine the best guess for yld
    min_result = sys.maxint
    best_yld = None
    for yld in arange(-0.9, 1, 0.1):
        if yld == 0:
            continue
        result_f = abs(sum(cash_flows / ((1 + yld)**tf)))
        if result_f &lt; min_result:
            min_result = result_f
            best_yld = yld

    yld = best_yld
    print "Using guess yld=", yld

    func = 2
    k = 1
    #Newton's Method
    while abs(func) &gt; 1.e-6:
        #cash flow polynomial
        func = sum(cash_flows / ((1 + yld)**tf))
        #%(CF poly)'
        f_prime = -sum((cash_flows/((1 + yld)**tf)) * (tf/(1 +yld)))
        if f_prime == 0:
            yld = None
            break

        delta = -func/f_prime
        yld = yld + delta
        k += 1
        if k == maxiter + 1:
            print 'Number of maximum iterations reached.'
            print 'Please increase MAXITER or use different GUESS.'
            yld = None
            break
    return yld

def yearfrac(date1, date2):
    wYears = int(floor(abs((date1 - date2).days) / 365.))
    date1W = datetime.date(date1.year + wYears, date1.month, date1.day)
    numerator = (date1W - date2).days
    try:
        denominator = (date1W - datetime.date(date1W.year + 1, date1W.month, date1W.day)).days
    #-----handle weird leap year case
    except ValueError:
        date1W = date1W + datetime.timedelta(1)
        denominator = (date1W - datetime.date(date1W.year + 1, date1W.month, date1W.day)).days
    yearFraction = numerator / float(denominator)
    return yearFraction + wYears&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Carlos, here it is. It uses NumPy.</p>
<pre>from __future__ import division
import unittest, csv, string, datetime
from numpy import floor, reshape, size, array, arange
from dateutil.relativedelta import relativedelta
import sys

def xirr(cash_flows, dates, yld=0.1, maxiter=50):
    """
    @param cash_flows list of cashflows
    @param dates list of datetime.date objects
    @param yld guess for rate of return
    @param maxiter maximum iterations
    """
    assert len(dates) == len(cash_flows)
    for date in dates:
        assert type(date) == datetime.date

    date_ordinals = array([x.toordinal() for x in dates])
    cash_flows = array(cash_flows)

    #number of years in cash flow FIXME: use max and min date, not first and last in list
    func = int(floor(yearfrac(dates[0], dates[-1])))
    if func == 0:
        func = 1
    #matlab: tf = func*(dates(:,loop)-dates(1,loop))/(datemnth(dates(1,loop),12*func,0,0)-dates(1,loop));
    tf = func*(date_ordinals - date_ordinals[0]) / (dates[0] + relativedelta(months = +12*func) - dates[0]).days

    # Determine the best guess for yld
    min_result = sys.maxint
    best_yld = None
    for yld in arange(-0.9, 1, 0.1):
        if yld == 0:
            continue
        result_f = abs(sum(cash_flows / ((1 + yld)**tf)))
        if result_f < min_result:
            min_result = result_f
            best_yld = yld

    yld = best_yld
    print "Using guess yld=", yld

    func = 2
    k = 1
    #Newton's Method
    while abs(func) > 1.e-6:
        #cash flow polynomial
        func = sum(cash_flows / ((1 + yld)**tf))
        #%(CF poly)&#8217;
        f_prime = -sum((cash_flows/((1 + yld)**tf)) * (tf/(1 +yld)))
        if f_prime == 0:
            yld = None
            break

        delta = -func/f_prime
        yld = yld + delta
        k += 1
        if k == maxiter + 1:
            print &#8216;Number of maximum iterations reached.&#8217;
            print &#8216;Please increase MAXITER or use different GUESS.&#8217;
            yld = None
            break
    return yld

def yearfrac(date1, date2):
    wYears = int(floor(abs((date1 - date2).days) / 365.))
    date1W = datetime.date(date1.year + wYears, date1.month, date1.day)
    numerator = (date1W - date2).days
    try:
        denominator = (date1W - datetime.date(date1W.year + 1, date1W.month, date1W.day)).days
    #&#8212;&#8211;handle weird leap year case
    except ValueError:
        date1W = date1W + datetime.timedelta(1)
        denominator = (date1W - datetime.date(date1W.year + 1, date1W.month, date1W.day)).days
    yearFraction = numerator / float(denominator)
    return yearFraction + wYears</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Portfolio Update: Switched from iShares&#8217; XIN to Vanguard&#8217;s VEA by Dave</title>
		<link>http://www.investingintelligently.com/2007/09/08/portfolio-update-switched-from-ishares-xin-to-vanguards-vea/#comment-8532</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 01 Jan 2010 03:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/2007/09/08/portfolio-update-switched-from-ishares-xin-to-vanguards-vea/#comment-8532</guid>
		<description>Ryan, I think it's ok if you're in your 20s or 30s but once you get a bit older it's probably a good idea to gradually start shifting towards more CAD as you get closer to retiring, either by selling USD investments, or just buying more CAD investments.</description>
		<content:encoded><![CDATA[<p>Ryan, I think it&#8217;s ok if you&#8217;re in your 20s or 30s but once you get a bit older it&#8217;s probably a good idea to gradually start shifting towards more CAD as you get closer to retiring, either by selling USD investments, or just buying more CAD investments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VEA vs XIN: Foreign Exchange Fees vs. Higher MER by Dave</title>
		<link>http://www.investingintelligently.com/2008/10/21/vea-vs-xin-foreign-exchange-fees-vs-higher-mer/#comment-8531</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 01 Jan 2010 03:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.investingintelligently.com/?p=457#comment-8531</guid>
		<description>If you read the post above, the key is to not trade them. Just buy once, hold it, and sell when you retire. This way you minimize the amount of times you pay foreign exchange costs (twice) and you also increase the advantage of the lower MER once you have held it for many years (10 years in the example above).</description>
		<content:encoded><![CDATA[<p>If you read the post above, the key is to not trade them. Just buy once, hold it, and sell when you retire. This way you minimize the amount of times you pay foreign exchange costs (twice) and you also increase the advantage of the lower MER once you have held it for many years (10 years in the example above).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
