Tag Archives: management

3 Common Backtesting Traps With Easy Solutions

Backtests have become the weapon of choice for rationalizing various forms of tactical asset allocation, which has become increasingly popular as a risk-management tool since the 2008 crash. The hazards of backtesting – studying how a strategy performed in the past – are well known, which leads some folks to shun the concept entirely. But that’s going too far. In some respects, every investment plan owes a debt to some type of backtesting – even for a buy-and-hold strategy, which assumes that the future will deliver gains on par with what was earned in the past. The proper lesson is that designing robust backtests, which demands close attention to detail. Easier said than done, of course, in part because the pitfalls can be subtle. Here are three that routinely trip up the novice and perhaps even some experienced investors: The use of total return prices for technical signals; Failing to correct for look-ahead bias by not using lagged signals; and Overlooking the importance of neutral signals for computing backtest results. The good news is that these traps are easily avoided. But there’s a catch: you have to be aware of the hazards. With that in mind, let’s briefly review these backtesting snares with some simple examples. Total return data. Imagine that you’ve created what you think of as a winning investment strategy that’s based on two signals: a) the ratio for a set of short and long moving averages; b) the trailing return for a rolling x-day window. The results look encouraging, but the upbeat outcome may be an illusion if the calculations use total return prices. Why? Consider a mutual fund that’s unchanged on the day but dispenses a hefty distribution at the close of trading. Imagine that this fund is priced at $10 a share and it spits out a 50-cent-per-share payout. Although the underlying portfolio value was unchanged on the day the mutual fund’s price falls by 50 cents to $9.50 to compensate for the distribution. The net result for shareholders: their holdings in the fund remain unchanged on the day. The 50-cent-per-share drop is offset by a 50-cent distribution. In short, a net wash. It’s a routine affair in day-to-day market activity, but it’s a trap if you’re looking at a fund’s technical profile without adjusting for distributions. Let’s say that the 50-cent price decline pushes the fund into negative territory in terms of the short/long moving average ratio and trailing x-day return. On the surface, this looks like a sell signal when, in fact, it’s nothing of the sort since the fund’s portfolio value hasn’t changed. The solution is to use price data that strips out distributions. If you don’t make that adjustment, your backtests using technical signals are probably faulty. Keep in mind too that the total return price histories aren’t real in the sense that the prices have been retroactively adjusted down to compensate for dividends, capital gains, etc. In other words, total return prices weren’t available in real time through history. Ignoring this issue runs the risk that your backtests are telling lies. Lagged signals & avoid look-ahead bias. This is another common mistake that can turn a sow’s ear into pearls, if only on paper. There are many variations to this trap depending on the complexity of the strategy, but the basic form can be illustrated with a simple example. Take a strategy that issues a “sell” signal when price falls below an x-day moving average and a “buy” when price rises above that average. Let’s also assume that we’re using end-of-day closing prices. You test the strategy and discover that it delivers a strong performance through time. But you forget one small item: the end-of-day signals aren’t available until after the market closes. In other words, calculating returns for a real-world version of the strategy requires using lagged “buy” and “sell” signals. One solution: assume a one-day lag. A “sell” signal is issued at Monday’s close, which translates to assuming that security was sold at the following day’s close. How much difference will such a seemingly minor change make in a strategy’s results? A lot. Indeed, many strategies that look wonderful in backtests turn into dogs after correcting for look-ahead bias. Neutral signals. This is an especially subtle problem because it’s counterintuitive in some respects. The problem is when there’s a gray area with one or more trading signals. For instance, let’s say you’re using two signals to determine if the current climate for an asset is bullish or bearish. A “buy” is when both signals are bullish; a “sell” is when both are bearish. If there’s a split decision – one is bullish, the other bearish – the signal is neutral, which is to say that the previous signal holds until both signals indicate a decisive change, one way or the other. As an example, both signals issued a “buy” signal the first trading day of the month. Two weeks later one of the signals turns bearish but there’s no confirmation in the other signal, which continues to align with a bullish reading. The net result: we no longer have a “buy” signal, but there’s no “sell” signal either. In that case, the previous signal – a “buy” – remains in force until a “sell” signal arrives. Obvious? Well, sure, once we spell it out and are aware of the subtlety. But designing this nuance into the code can trip up a rookie. The solution: generate a historical record of “buy” and “sell” signals and monitor the net result via a “position” signal. A standard system is to generate a “1” for “buy”, “0” for netural, and “-1” for “sell” in the “position” data. By contrast, a common mistake is to only calculate the “buy” signals and assume that the absence of a “buy” is the equivalent of “sell”. Not necessarily, but that won’t be obvious unless you compute a separate set of “sell” and “neutral” signals. What’s the relevance? Results. A backtest that equates “neutral” with “buy” signals can and usually does dispense substantially different results vs. a test that recognizes the distinction. Okay, maybe you want to blur the lines for tactical reasons. That’s fine. The danger arises when the analyst doesn’t spot the difference in advance. These are hardly the only pitfalls in backtesting, but they’re relatively common – and easily avoided. The question is whether these quantitative stumbles have skewed results in some of the more influential backtests that have found a wide audience in recent years? The answer: unclear until (if) we can reproduce the research. Unfortunately, most of the backtests that make the rounds these days don’t provide the accompanying code. That’s one more reason why it’s essential to crunch the numbers directly before making substantial monetary commitments to a given strategy. As President Reagan famously advised, Trust but Verify. That’s a good policy for geopolitical negotiations and for backtesting investment strategies.

15 Top Performing Fidelity Funds In Q3 2015

The performance of Fidelity mutual funds fell in the third quarter from the second quarter and mirrored the broader trend of declining returns in July-September 2015. The third quarter of 2015 ended up giving the worst performance for the benchmarks since Sep 2011. In the third quarter, the Dow, S&P 500 and Nasdaq declined 7.6%, 7% and 7.4%, respectively. Obviously, it was difficult for mutual funds as well. In fact, calling the third quarter a bloodbath will not be far from the truth. Just 17% of mutual funds managed to finish in the green in the third quarter. This was a slump from 41% in the second quarter, which was also a sharp fall from 87% of the funds that ended in the positive territory in the first quarter. Reflecting the broader trend of slumping returns, Fidelity’s top-gainer in the third quarter, Fidelity Spartan Long Treas Adv (MUTF: FLBAX ), could post only 5.5% return. In fact, except for this fund’s Investor class fund, Fidelity Spartan Long Treas Inv (MUTF: FLBIX ), there was no other that managed a 5% plus gain. The majority of gainers in the third quarter posted flimsy returns of 1-2%. However, FLBAX’s gain of 5.5% helped Fidelity to beat other key fund families, which we will discuss later. Fidelity’s Performance in Q3 vs. Q2 Out of the 971 funds we studied, just 111 funds managed to finish in the green. However, the gains were very modest as all these funds posted an average gain of 1.2%. In comparison, 504 funds out of 950 funds had finished in the positive territory in the second quarter. But the larger concern here is that while only 22 funds suffered above 5% loss in the second quarter, 655 funds ended the third quarter with more than 5% negative returns. Out of the 857 funds that finished in the red in the third quarter, 189 funds lost at least 10%. The average loss for these 857 funds was a worrying 8%. (Note: These numbers include same funds of different classes). The biggest loser among the Fidelity funds in the third quarter was Fidelity Adv China Region C (MUTF: FCHKX ), which nosedived 26.3%. This is completely in contrast to what happened in the second quarter, when Fidelity’s best gainer Fidelity China Region Fund (MUTF: FHKCX ) added 11.6%. China region funds were robust gainers in the second quarter and the country was the third-best category performer in the first half of 2015 as well. However this time, the worst performer is the China category. This is a result of the market rout that the China region suffered since mid June. In fact, China-led global growth worries were primarily responsible for the market rout in key markets across the globe; eventually pushing most mutual funds lower. Also, the 11.6% gain from FHKCX had helped Fidelity to beat other prominent fund families like Vanguard, BlackRock and American Funds to mention a few in the second quarter. In the third quarter, Fidelity failed to beat Vanguard, the best gain of which hit 8.4% by Vanguard Extended Duration Treasury Index Fund Institutional (MUTF: VEDTX ). In a quarter ravaged by headwinds, mutual funds from the Vanguard Group gave a decent performance. However, Fidelity managed to beat both BlackRock and American Funds. From the American Funds stable, American Funds US Govt Sec R5 (MUTF: RGVFX ) was the best performer with timid gains of 1.7% in the quarter. BlackRock’s best performer was Blackrock US Real Estate Sec Str I (MUTF: BIREX ), which gained 2.4%. Franklin Templeton’s best gainer also belonged to the Real Estate category. Franklin Real Estate Sec R6 (MUTF: FSERX ) gained 3.4%, falling short of Fidelity. Watch out for our Mutual Fund Commentary section in the coming days, wherein we will be reporting on performances and best picks from fund families and varied categories. Top 15 Fidelity Funds in Q3 Below we present the top 15 Fidelity funds with best returns in 3Q 2015: Fund Name Objective Description Q3 Total Return Q3 % Rank vs Obj YTD Total Return % Yield Expense Ratio Beta vs S&P 500 Load Fidelity Spartan Long Treas Inv Government 5.49 1 – 2.55 0.2 -0.06 N Fidelity Select Retailing Other 3.17 1 9.78 0.22 0.81 1.03 N Fidelity Spartan Rl Est Index Inv Real Est 2.84 10 -3 2.25 0.23 0.53 N Fidelity Real Estate Investment Real Est 2.76 12 -2.7 1.62 0.78 0.51 N Fidelity Spartan Inter Treas Inv Government 2.59 4 2.98 1.79 0.2 -0.01 N Fidelity Adv CA Muni Inc A Muni CA 1.7 37 1.69 2.87 0.79 -0.02 Y Fidelity Adv NY Muni Income A Muni NY 1.59 23 1.91 2.69 0.78 -0.03 Y Fidelity Series Real Estate Eqty Real Est 1.59 40 -3.65 1.56 0.75 0.54 N Fidelity Adv Muni Income A Muni Natl 1.49 26 1.32 3.14 0.8 -0.01 Y Fidelity Adv Real Estate Fund A Real Est 1.44 41 -3.93 1.27 1.11 0.55 Y Fidelity Government Income Fund Government 1.41 10 1.33 1.35 0.45 -0.01 N Fidelity Adv Government Income A Government 1.33 11 1.09 1.04 0.77 -0.01 Y Fidelity Mortgage Securities Govt-Mtg 1.32 11 1.78 2.14 0.46 0.01 N Fidelity Spartan US Bond Index Inv Corp-Inv 1.28 3 0.99 2.28 0.22 – N Fidelity Adv Mortgage Secs A Govt-Mtg 1.24 16 1.51 1.79 0.82 0.01 Y Note: The list excludes the same funds with different classes, and institutional funds have been excluded. Funds having minimum initial investment above $5000 have been excluded. Q3 % Rank vs Objective* equals the percentage the fund falls among its peers. Here, 1 being the best and 99 being the worst. The best 15 Vanguard mutual fund performers are primarily from three varied categories. These are Government Bond, Real Estate and Municipal Bond mutual funds. This was expected, as Long Government was the second best performing category in the third quarter, according to Morningstar. From this category, four funds made it to the best gainers’ list. These are Fidelity Spartan Long Treas Inv, Fidelity Spartan Inter Treas Inv (MUTF: FIBIX ), Fidelity Government Income Fund (MUTF: FGOVX ) and Fidelity Adv Government Income A (MUTF: FVIAX ). While FLBIX and FIBIX carry a Zacks Mutual Fund Rank #1 (Strong Buy), FGOVX and FVIAX carry a Zacks Mutual Fund Rank #2 (Buy). Meanwhile, Fidelity Mortgage Securities (MUTF: FMSFX ) and Fidelity Adv Mortgage Secs A (MUTF: FMGAX ) from the Government Mortgage category also found a place in the list. Both FMSFX and FMGAX carry a Zacks Mutual Fund Rank #1. Separately, many sub Municipal fund categories, such as Muni California Long, Muni Pennsylvania and Muni New York Long, featured in the top performers’ list for the third quarter. However, the gains were modest, with Muni California Long performing the best, notching up a 1.7% gain in the quarter. Three funds from this category, Fidelity Adv CA Muni Inc A (MUTF: FCMAX ), Fidelity Adv NY Muni Income A (MUTF: FNMAX ) and Fidelity Adv Muni Income A (MUTF: FAMUX ) featured in the best performers’ list. While FCMAX and FNMAX carry a Strong Buy rank, FAMUX has a Zacks Mutual Fund Rank #3 (Hold). Apart from the Government and Municipal categories, Real Estate was also in the top list of fund category performers. The sector returned nearly 1.4% in the third quarter. Four Fidelity funds feature in the list of the top 15 gainers. These are Fidelity Spartan Rl Est Index Inv (MUTF: FRXIX ), Fidelity Real Estate Investment (MUTF: FRESX ), Fidelity Series Real Estate Eqty (MUTF: FREDX ) and Fidelity Adv Real Estate Fund A (MUTF: FHEAX ). However, FRESX and FHEAX carry a Zacks Mutual Fund Rank #4 (Sell) and Zacks Mutual Fund Rank #5 (Strong Sell). FRXIX is the only fund here that carries a Zacks Mutual Fund Rank #1 while FREDX carries a Zacks Mutual Fund Rank #3 (Hold). Original post .