Saturday, 19 November 2011

Thoughts about moving averages

There's a certain sort of trader or market commentator who gets excited when they see the current market price or index level rising above or below a particular moving average, be it the 30-day, 60-day or 180-day moving average. And it's easy to see why, because when you look back at the historical graph, then looking back on when those crossing points happened was normally a good time to buy or sell. In general, if the spot price crosses a longer moving average from above, that's a signal to sell, and when it crosses from below, it's a good time to sell.


And actually, it turns out that if you did this, you would outperform a buy and hold strategy for all three moving averages. The best one is the 30 day moving average. I've built a little spreadsheet that models this trading strategy with the Russian RTS index, and you can download it from here. You can cut and paste your own time series, and try your own pairs.

Actually, as it turns out, the best trading strategy of all would have been to use the 26 day moving average and the spot price. This holds if you look at the RTS since inception. I got all excited about this, until I looked at the last twelve months, which shows me that I should have been using the 1 day moving average instead of the spot price, and the 84 day moving average. The 1 and 26 pair would have made me money, but much less. The 1 and 30, and the 1 and 60, and the 1 and 180 would not have done so well.

(You can investigate this using the data tables function of Excel. I haven't included it in the spreadsheet linked above, because it's very processor intensive, and makes the spreadsheet very unwieldy. If you want to play with it, I've included it in the spreadsheet here, but it may crash your computer, as it's a bit buggy, and needs quite a powerful computer. It might make sense for you to build your own data table in Excel, which is quite simple, and is a useful thing to learn.)

So what works for one period doesn't necessarily work for all periods. Also, when I applied this to the S&P, it turned out that almost none of the strategies outperformed a buy and hold strategy, and those that were, were fairly randomly distributed. (By the way, I haven't found any investigations of this in the literature or online, and would love to see references if anyone knows of anyone who has investigated this topic. I can't believe I'm the only person who has thought of it. And also I know that there are easier ways to do this than Excel, but my programming isn't up to it yet.)

What does this have to do with emerging markets? Well, it's more about investing in general. Beware of any rules of thumb, because they don't necessarily hold up when you test them against the data. It may be that these trading rules are only stable over a short period of time, and need to be continually updated. I suspect that a lot of high frequency trading programs use variants on these strategies, calculating optimal patterns, and then trading with them. The bottom line is that technical analysis is complex stuff, and should only be used if you have a lot of computational firepower to deploy - using crude tools will almost certainly lead to disappointing results.

Saturday, 5 November 2011

Demographics

"Demographics is Destiny" when it comes to forecasting long term capital flows.

This is the World Bank's data on current population growth - by and large, the countries with the fastest growing populations are also emerging markets - the more advanced countries aren't growing at all. There are a couple of wrinkles in the data - rich Islamic countries also have fast growing populations, and many of the former Soviet countries have falling populations.



Population growth is a good thing - people are after all a factor of production, just like materials and technology, so the more of them you have, the greater your potential GDP. And even better, once you have paid this factor of production, they go out and buy your output! So the greater the population, the greater the addressable market size, and so the greater potential for corporate growth. This why no one who is interested in economic growth should oppose immigration.

Here's a link to a full database of age dependency ratios. Again, the emerging markets do better here, so resources are not being siphoned off to pay for the upkeep of a large nonworking population, and this means that they can be addressed to more productive purposes. I'm not sure if the countries which report a zero dependency ratio really have no pensioners at all, or if the numbers are negligible relative to the working age population, or if they just didn't report data. They are all quite small countries, and not really investible, so I've left them off the graph below.




As with population growth, it's the older more mature countries that have a high pensions burden, and African and Islamic countries that don't. Now, for some of the African countries, this reflects low life expectancy, so not many people survive to pensions age, implying that the economy has different problems to deal with. And one shouldn't be too static about the analysis - it seems inevitable that the pensions age will rise in the mature economies, which will simultaneously boost the working age population and reduce the retired population, so that fraction will come down.

Having a high dependency ratio is not necessarily a bad thing - it's a mark of success in that you have created the conditions to have lots of people survive beyond working age. But it creates imbalances - either you're funding those pensions via taxes, which is a drag on the economy, or you're funding it with savings, which can distort your allocation of investment - capital is too cheap when the pensioners are accumulating retirement funds, and it gets too expensive when they start spending their savings.

Also, there's another aspect of pensioners and economics. Larry Summers co-wrote a seminal and prophetic paper back in 1990, which used a generational model to show that trade imbalances could develop when you had an ageing population, which was spending its savings to fund retirement. This would mean that unless the younger generation was saving to match them, then it must lead to a persistent current account deficit. So funds get transferred from the old country to the younger, exporting one, as has happened between the US and China.

This has created an imbalance, because China has chosen not to let its currency float accordingly, and the same sort of thing is happening in the Eurozone, because exchange rates are fixed between countries. But that means that if one country is a net dis-saver, because its older population is spending its retirement savings, then it must run a current account deficit with younger countries, whose workforce is accumulating savings for retirement. With fixed exchange rates, this takes a generation to reverse, which is generally longer than capital markets are willing to wait.

The key thing to bear in mind, though, from the point of view of a macro EM investor, is that you want to be on the side of the country that is supplying the goods to the retired population. You get demand growth for the country's output (especially in the consumer goods sector), and there's an upward bias in the currency. These types of long term trends are what enable you to sleep soundly with long positions through turbulence. So seek out countries with population growth and low dependency ratios.

Thursday, 3 November 2011

Thinking about India

The Economist had a big splash about India a couple of weeks back - as usual with the Economist, it's pleasant to read, but you don't end up much wiser about anything other than that magazine's predictable prejudices. As always with the Economist, it was a useful starting point for thinking about India, and for reading further on the subject. My problem with the article was that it's a bit "on the one hand, on the other hand" - yes, there are some dynamic companies in India, but there are some state-controlled dinosaurs too. You could say the same about Russia (although the Economist would leave out the bit about Russia's dynamic companies). You could probably say the same about America or Japan.

The IMF blog also had a nice piece about India with a bit more meat in it. What this brought home to me is that India is much more like a "normal" developing economy - running a current account deficit, importing capital, diversifying its economy, that sort of thing. There's no sense that the government is trying to implement a transformative policy like that in China, and there are no commodity flows or stocks to deal with.

You could argue that India's "raw material endowment", like China's, is its huge population. But then, India hasn't implemented a policy of consciously making its workforce cheap, via the exchange rate. Why would they? No government seeking re-election would consciously hold back the standard of living of its population, as the Chinese government did in the 90s and early 00s. This means that India has modernised more slowly, but doesn't have to deal with the surpluses that the Chinese government has to recycle (current account surplus becomes capital inflows, which are either sterilized by buying Treasuries, or allocated top down into government approved investment). Of course, you get much faster economic development if you have the capital sitting there ready to be used, but one of the uses of adversity is that if capital is scarce, it gets allocated more efficiently.

This means that India might well be a happy hunting ground for stock pickers, because you don't have to continually keep an eye on the government or the global macro in the same way. Yes, there's an issue about the availability of capital to fund the current account deficit, but in a world of global imbalances, there is a large pool of capital looking for a good return. India has a reasonably flexible exchange rate which means that what you lose in the short term if the exchange rate falls can be made back in the long term because the terms of trade benefit. There's no second guessing what the government, US Congress, the oil price, or the commodities markets are going to do, unlike with China or Latin America or Russia.

One of the themes of this blog is going to be that individual stock picking in isolation is perilous, especially in emerging markets. You might find a good little company, that seems well managed and with a clean balance sheet and growing income statement. Something like a consumer play in China or Russia or Indonesia or Mexico, which offers the hope of being the local equivalent of Coca-Cola or MacDonald's. And maybe it will. But you will have to endure a great deal of pain in the short term if that stock price is driven down by perceptions that China is going to raise rates in order to stop baby food companies speculating in copper, or that the oil price is under attack from Libyan or Iraqi or even Brazilian supply. Even without that, you could own, say a nice little bank in a stable market, and see it decimated just because banking stocks are getting hit globally because of a rogue trader in France. No company is an island.

The other theme is that there are all kinds of missing markets and regulations that means that developing markets will not react in the same way to policy stimuli as their more developed counterparts. And you have to be aware of this. For instance, the proposition by Michael Pettis that higher interest rates might be expansionary in China, because people will earn more on their savings. Or that higher interest rates would automatically strengthen the currency - they do in most cases, but in Russia they might not, if the oil price happened to be going up at the same time. Before you apply the lessons you learned from Samuelson or Lipsey, think about what assumptions they were making, and whether they apply in this case.

But India is one country that perhaps goes against these themes. It has a more diversified economy, so there is less need to focus on one particular industry or commodity, and it has a flexible exchange rate and a current account deficit, so it's much more like a "normal" economy. Which is a good thing, as it means that although India's growth may be less rapid than other markets, it will be more steady and less volatile.

Wednesday, 2 November 2011

China - Happy Landings?

China - The Big Questions
China's "hard or soft" landing seems to be one of the three items that are worrying macro strategists (the others are the Eurozone crisis and the US economy). This is an old story - since 2000 there has been a narrative whereby China starts trying to boost its economy, runs into inflation, slams on the brakes, and the resultant fall in commodity demand has negative knock-on effects for commodity prices and exporters.

I'm not a China expert, although my father was. Sadly, I was not smart enough to tap my father's massive knowledge of Chinese history when I had the chance, so I've had to make up the deficit on my own time, while focussing on other markets. Fortunately China has been very important for my core field, and also there are plenty of excellent commentators like Jonathon Anderson, Michael Pettis, or Patrick Chovanec. (For the last two, see the side links). I think I have a fairly good handle on how China policy (or more importantly, perceptions of China policy) affect GEM sentiment.

And the fact is that there's a perception that if China does hit the brakes, then other markets will slam into a wall. China is seen as the engine of growth and demand for South East Asia, and as a core market for the commodities of Latin America and Russia. Because the rest of the world is not looking too hopeful right now. The US is coming out of a recession - just - with GDP growth at just 2.5% (less than 2% is a recession), and with some signs of consumer confidence returning. However, Congress is going to spend the rest of the year making cuts in spending, and this austerity may be too much for the fragile recovery. The next President will have to either raise taxes or cut spending. Europe is also heading into austerity, as the aftermath of the Euro crisis means that governments cut spending, and banks cut lending.

So China is important. I want to argue though, that even if they do tighten, this is not going to be a disaster for the rest of the EM world, and certainly not for China. First, do yourself a favour and read this excellent article by Michael Pettis. For me, the most interesting idea of the article is that higher interest rates could actually be expansionary, as it will increase the income on savings, leading consumers to spend more (but there's a lot more than just that).And it need not reduce the spending on infrastructure, as much of this is government-mandated (and therefore not interest sensitive) and in any case interest rates are low, and companies have cash.

So don't assume that if the Chinese raise rates, this will necessarily lead to a crash in steel prices, or copper prices, or Chinese growth in general. The bottom line is that China will urbanise, one way or another. It has a crazily ambitious five-year plan, which can probably be taken with a pinch of salt, like most government promises but the secular growth direction is still there.

10 million Chinese and 5 million Indians will be moving from the countryside to the town every year for the foreseeable future. This is the difference between Brazil and Russia on the one hand, and India and China on the other. Russia did its urbanization in the postwar period, as did Brazil.

Country
2010 Urbanization
Brazil
86.5%
Russia
73.2%
India
30.0%
China
47.0%

In the next 5 years, according to the UN population survey, China will add another 78 million urban population and India will add another 56 million, just under 27 million per year, a Tokyo, two New Yorks, or four Londons. 


The bottom line is that markets are going to be choppy given that perceptions of China fiscal and monetary policy will change. Your job as an emerging markets investor is to see through that and keep your eyes fixed on the longer term horizon, and the fact that China offers real growth because of the massive urbanisation that will definitely happen, at a time when the major economies of the world are looking lacklustre because much of their best growth is behind them.