Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the restrict-user-access domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/portfol1/public_html/wp/wp-includes/functions.php on line 6114

Deprecated: Class Jetpack_Geo_Location is deprecated since version 14.3 with no alternative available. in /home1/portfol1/public_html/wp/wp-includes/functions.php on line 6114

Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /home1/portfol1/public_html/wp/wp-content/plugins/add-meta-tags/metadata/amt_basic.php on line 118
Uncategorized | Portfolio Yoga - Part 5

Are US Markets Over-valued

One of the constant thesis I hear about US Markets is that they are way over-valued (and hence should fall anytime soon). This mantra is accompanied by a chart of the long term cyclically adjusted price earnings chart (CAPE), with data from Robert Shiller.

But I wonder, is the long term average really meaningful. The data starts from 1881 (1st data point for CAPE) and for the next 91 years, the currency was pegged (more or less) to Gold. Its been 45 years from the time Nixon de-linked US Dollar from Gold.

If one calculates the Average and Standard Deviations of both those periods, one finds that while based on pure long term CAPE, we are bit above the 1 Standard Deviation, if we were to split the period, we actually end up below the 1 Standard Deviation.

While CAPE more or less peaked out at 27.50 in mid 2007, the average for the period between 2003 and 2007 (Dec) comes to 25.91. Anyone who felt markets were expensive in relation to the historical past would have had to miss the entire rally.

US

Sipping Gold vs Sipping Nifty

This post is based on a request from a reader of this blog. While he wondered how the returns of L&T would have compared against Gold and Crude if one invested a equal amount of money from 2000 till end of 2014, I have instead chosen to compare Gold vs Nifty. Since Crude is a pure commodity which cannot be taken on delivery (by most ordinary investors), I have ignored the same.

While its easy to get data for Nifty, getting data of Gold (especially Monthly data is tough). Hence I have used whatever best represents the same. For the years from 2000 to 2004, I used RBI Gold prices (Yearly) and then incremented the price to make up for the absence of data. From 2005 to 2006, I used monthly closing prices of MCX-Gold and for the rest of the period, I have used Gold Bees.

For Nifty, I used Spot Nifty for the period 2000 to 2001 and from 2002 on-wards used data from Nifty Bees. I have not included Dividends nor added any other transaction costs.

The idea was to invest a sum of 5000.00 per month. Since the entire sum cannot be invested every month (unless one bought in fractions as well), the sum that was available after investment was added to the pool which was available for the next month.

The total period of analysis was hence 14 years (Jan 2000 to Dec 2014). Total Investment came to 9,00,000.00
(Nine Lakhs only).

The closing value at end of 2014 for Gold came to 25,38,484.87 while the same for Nifty came to 31,62,625.68. While 6,00,000 may not seem to be a big difference, do note that this is almost 66% of the investment. When we calculate the XIRR returns, the same is 15.13% for Nifty vs 11.86% for Gold.

As you would know, the higher the compounding, the difference in final returns will vary over time. On the other hand, do note that at end of 2014, markets were at the highest point ever while Gold was down 17.9% below its all time high (touched in November 2012). Add to this is the fact that since I have not included dividends that would have accrued over time and if the same was invested, the returns from Nifty would edge even higher. Gold on the other hand has no dividends and has a small holding cost as well.

To conclude, here is a quote by Warren Buffett

“Gold gets dug out of the ground in Africa, or someplace. Then we melt it down, dig another hole, bury it again and pay people to stand around guarding it. It has no utility. Anyone watching from Mars would be scratching their head.” – Warren Buffett

Hypothetical performance and real world problems

Recently, a US based fund – F-Squared Investments was in the news for “falsely advertised a successful seven-year track record for the investment strategy based on the actual performance of real investments for real clients”. Even the hypothetical results they provided via a back-test of the investment strategy was bumped up due to a error in the way it was calculated.

Here is a quote from the magazine Fortune

They had developed the model’s hypothetical performance by applying buy and sell recommendations a week before the model would have actually made those suggestions, enabling the model to buy an ETF just before the price rose and sell just before it dropped. Because of the error, F-Squared’s calculations showed that the strategy had returned 135% during the period. In fact, the strategy’s hypothetical performance should have been 38%.

Back-testing is a nice way to understand and test ideas. But the very fact that back-test has been made easy by charting / statistical programs has meant that every one now just writes a few lines of code and runs a back-test on the whole data to see if the logic works. If yes, next step is in directly trying to implement the same without even worrying about the nuances of the program and whether the back-test results are close to the real results that will be possible.

Let me provide a few basic ways in which the back-test results may be way different from what can be expected in real trading scenario.

Cost of Slippage / Commission: How much of commission / slippage are you adding to the system for every trade that is carried out. If the system is trading on a lower time frame, its guaranteed that this number will be big regardless of which low cost broker you trade with.

There are basically two ways as to how people place their orders based on signals. The first way is to enter the trade as soon as the bar is completed. The second way is to enter the trade only if the bar high / low is broken (high in case of Long / Cover and low in case of Sell / Short).

The first method is straight forward and simple. As soon as the bar gets completed, you take a trade. But how much of a difference can be expected there? A point or two would always be there. Now while that does not seem to be a big number, think about how much of difference you shall see in reality if your system has even a average slippage of 1.5 to 2 points every trade and it trades say 300 trades per year.

The second method where one places a order above the high / low of the bar is even more liable for slippage due to the very fact that it being a stop order, the order trigger and execution price will be at least 3 – 5 points to ensure guaranteed fill.

Quite a few people I know have a filter of another few points just to ensure that they do not get a entry if the bar high / low is not conclusively crossed. That adds in a way to the misery of the system since every trade will be having a even higher slippage than what is generally thought of.

And last but not the least, slippage is high when markets are volatile. So, if your system seemed to have performed pretty good during the 2008 crisis, do add a note to yourself that liquidity in moving markets can be very poor and not as per expectations.

Cost of Rolls: Most guys who back-test use data from running futures contract since that is the most widely available data plus also enables one to test a large period in one go. But embedded into that data is the rollover cost.

Lets take a recent example. Assume you were long going into the December 2014 expiry. Since once the data series of December ends, the fresh data from January starts adding to the series. But the gap which one sees is not a real gap in the sense that if you had rolled over paying 100 Rupees (during the closing 5 minutes of Expiry day), this is seen as a profit in the back-test when in reality you never saw that 100 bucks 🙂

To overcome this issue, I believe a lot of guys use Spot data for their testing. But since we cannot trade Spot and will end up trading the futures, how big will be the difference between the two. Even on intra-day basis, we sometimes see enormous shifts in the premium. The other day, Nifty opened with a premium of around 58 points and slipped to 40 by the time the day ended. And yesterday, one saw it dip down to 20 before bouncing back to 30.

And finally, how much of data are you testing? This is a very big challenge for many since the larger the sample size of data one uses, the worse the system results seem to show. So, to avoid that should one use a smaller sample, one that is closer to the current market?

Well, if you want to fool yourselves, go ahead. But if you don’t, test for as long a period as possible. The greater the period, the more robust the strategy will be (if it hold up, that is). Falls we saw in 2008 / 2000 are the kind of things one should expect going forward as well. And if your system will get hanged up due to that kind of volatility, its just a matter of time before your system reduces your equity balance to Zero.

One way to measure system robustness is also in the number of back-test trades you see. The higher the number, the better it is. Remember reading somewhere that anything over 400 trades in a back-test signifies a good sample size.

And remember that even after accounting for everything that I have written about above, you will still need to beat the Buy & Hold returns by a handsome margin. Else, you are just wasting time on a venture that will get you sleepless nights without the benefit of a bounty at the end of the road.

Finally, all of the above will be useless if your system is based on some optimization. It shall pass any and every hind-sight test but shall fail the moment you start trading it in a real environment. I personally abhor optimization though even I fall prey to it (Trading one time frame than the other because historical records indicate that this is the better than the other). But if you understand the process of why the signal is generated and if you have enough out of sample test results, this is something that can be more or less overcome to a extent.

The 3 Percent factor

So, with markets going downhill by approximately 3%, there is a lot of noise associated with this incident in the financial world. Since Sensex has crumbled by 850+ points, that should be the big heading for most pink papers tomorrow.

But this is not even its biggest or even 2nd biggest fall (even when measured in point terms which is pretty wrong considering that when Sensex started, we had a value that was less than the fall of today). In fact, today’s fall is the 7th largest when considered in terms of points and 232nd or somewhere around when measured point wise.

There are many interesting things with todays fall which suggests to me that while this is not a start of the fall like one saw in 2008 (which is in the memory of most investors / traders), this fall does not signify a short term bottom either. So, before we jump into the market with most of us being on a Buy on Dip mode, shall we check out the evidence in hand?

While its true that a 3% fall had not occurred for a long time and hence may have come as a surprise, the fact is that through out the bull run between 2003-2008, we had multiple such instances. Its only since the surge in 2009 that we are seeing longer rallies without any corrections.

In fact, as the chart below shows, until 2010, we did not have a year without at least one 3% correction. As you can see, even in strongly bullish years of 2005 / 2006 and 2007, we had multiple instances where market corrected by 3% or more in a day.

Sensex

On television, I observed a news flash which informed me that the markets had broken the 100 day DMA. That in itself would not make news on any other day, but on big days like, even small factor seems to get blown up. For markets to enter what is known as a bear market, the general measurement is either a 20% fall from the peak or the break of the 200 day DMA.

Currently, the 20% level for Nifty comes to 6901 while the 200 day DMA comes in at 7658. Both are pretty far to make one worry at the current juncture.

Lets now take a look at the Nifty PE (Trailing 4Q, Standalone).

NiftyPE

Not much of a change there. While market has fallen, there is nothing to say, that its a cheap market out there, especially considering the rate of growth we are seeing in Nifty companies. It would be interesting to see how the results crop up for Q3 when they get released in this month.

The breadth indicators generally give a indication of the current market situation. I had tweeted about how the number of companies that were trading above the 10 day EMA was lowest in years on 17/12/2014 and the markets promptly went up from there. As on date, of the companies listed and traded on NSE, 65% of them were above the 200 day, 46.5% were above its 60 day EMA and 36.8% were above its 10 day EMA. No sign of a large scale selling pressure.

In fact, if you were to check the performance of stocks in F&O, no stocks had a fall >10%. Since de-leveraging starts first in FNO stocks, this is something to note. On days when there is total capitulation, you can see stocks closing with losses or 20% or even more. Not today though.

In fact, the number of stocks that advanced to a new 52 Week high were greater than the number of stocks that hit its 52 Week low. While small cap index too fell by 3%, it seem that a lot of stocks not only escaped the fall unscathed but logged gains as well.

All in all, while markets did fall pretty hard today, the facts above seem to indicate that this is not the end or we are not even close in that regard. There is no reason that we should see a crash similar to 2008 unless there is total world capitulation, but we need to fall even more before we rush to buy the dip.

Markets are in a long term bull market and there will be several opportunities where fresh money can be invested to take advantage of the same. But if one is not careful in choosing when to deploy those funds, it may in the short term actually cause grief due to one being too early.

While I am not a great believer in many a pattern, we do seem to be seeing a slanted Head & Shoulder pattern form on the Nifty chart. Going by this chart, if we were to break the 8000 barrier, we may get to see 7400 (which incidentally is a pretty nice support as well).

Nifty

January has had once of the worst records amongst all other months and this time seems to be no different though we do have quite a number of days to go before we conclude that January has behaved as per its historical standards.

Trade Well, Be Safe 🙂

Spicy Links for 05.01.2015

Byron Trott: The billionaires’ banker (Fortune)

What went wrong for SpiceJet at a time when it was headed to recovery & will it survive? (ET)

India’s new paradigm in financing infrastructure and attracting investments (Urbanomics)

Case Study – Surprising Results of combining HDFC Top 200 & Recurring Deposit (StableInvestor)

Video’s

Lessons Learned from Ivar Kreuger – David Marcus of Evermore Global Advisors (GI)

Don’t expect a big bang union budget”, says, Samir Arora (BTV)

From the Archives

Quants: The Alchemists of Wall Street – A Documentary about algorithmic trading (Profittube)

Bull Market Rewriting Rules On P/e Multiples (ChicagoTrib)

Friday Links – 02.01.2015

Bull runs, bear markets and the year ahead (LiveMint)

Fiscal Deficit Jumps Higher, Not Enough “Make in India” (CapitalMind)

Book review: History of modern India (MostlyEconomics)

Mixed Media / Timepass

86 Viral Images From 2014 That Were Totally Fake (Gizmodo)

Why digital diaries aren’t about to douse photographic calendars (LiveMint)

First Day First Show, Links for 1st Jan 2015

75+ Quotes by the Dhandho Investor, Mohnish Pabrai (StableInvestor)

Should I have separate portfolios for separate goals? (ValueResearch)

The Last Chart of 2014 (CapitalMind)

Mohnish Pabrai in conversation (ET)

Review of the markets in 2014 (Self)

International Links

In 2014 I Learned That (TRB)

Reviewing the Year in Markets (WSJ)