50-Day SMA CNX 100 with Friction

There is always friction

One of our readers made a very astute observation yesterday:

comment

It is true that every strategy has friction. Friction in terms of trading costs, tracking error, whiplash, etc. So we put the 50-Day SMA CNX 100 that we discussed yesterday through the wringer to see what happens in the real world.

Modeling friction

We charge a pretty low brokerage of 0.2%. A two way buy and sell would cost 0.4%. Impact cost is probably 0.2%. For a total of 0.6% in friction. Lets round it up to 1% to give us a margin of comfort.

Whenever a trade happens, we will deduct 1% from the notional amount to account for this friction. From the start of 2010 to now, there were 1146 trading days, out of which, the strategy would have resulted in trades for 56 of them. Now lets compare the Raw 50-day CNX 100 with the Buy-and-Hold (B&H) and Friction scenarios.

CNX 100-friction-returns-2010

The investor still comes out as a winner with a cumulative return of 0.86 vs. 0.47 in buy-and-hold.

Accounting for tracking error

The above analysis used the CNX 100 index to model friction. However, in the real world, you cannot own fractional shares. This gives rise to tracking error. What would the numbers look like if we used the ETFs themselves?

CNX 100-etf-returns-2010

The investor still comes out as a winner with a cumulative return of 0.84.

Conclusion

Even after considering trading costs, impact costs and tracking error, this strategy comes out way ahead of a naive buy-and-hold strategy.

You can follow the Theme here.

CNX 100 50-Day Tactical Theme

Escaping the worst days

We had discussed how, by escaping the worst days, even if it means missing out on the best days, you can protect your portfolio from drawdowns and get superior results compared to a naive buy-and-hold strategy. See: The SMA Risk On/Off Switch

We ran the same filter on the CNX 100 index.

CNX 100 between 2005 and 2010

Naive Buy and Hold

buy-and-hold-returns-2005

Cumulative Return: 1.92

DrawDowns

bh-2005-2010

50-day SMA On/Off

CNX 100-50-day-sma-returns-2005

Cumulative Return: 13.12

DrawDowns

50SMA-2005-2010

CNX 100 from 2010 to now

Naive Buy and Hold

buy-and-hold-returns-2010

Cumulative Return: 0.473696

DrawDowns

bh-2010-now

50-day SMA On/Off

CNX 100-50-day-sma-returns-2010

Cumulative Return: 2.270039

DrawDowns

50SMA-2010-now

The CNX 100 50-Day Tactical Theme

The 50-day signal can be used to go “risk on” and “risk off” between the NIFTYBEES and JUNIORBEES ETFs. When “risk on”, the Theme allocates equally between NIFTYBEES and JUNIORBEES and when “risk off”, moves to LIQUIDBEES.

You can follow the theme here.

The SMA Risk On/Off Switch

Market timing is a very divisive topic in investing. For traders, it has been the search for the holy grail. For passive investors, a source of derision.

Far more money has been lost by investors preparing for corrections, or trying to anticipate corrections, than has been lost in corrections themselves. – Peter Lynch

Does it mean investors should just remain long all the time? Hardly, according to the latest research by Meb Faber (ssrn).

Data for international markets show that volatility increases in declining markets. Any strategy that keeps you out of those periods, will improve your portfolio returns. The outline of his strategy is simple: go long the market if it is trading more than its 200-day SMA and stay out of the market otherwise.

A small amount of outliers have a massive impact on performance and the best and worst outliers tend to cluster when the market is already declining. However, if you miss the best and worst days in every case your compound return is higher than buy and hold.

It works across most international markets:

miss best and worst days

Unfortunately, the paper doesn’t discuss the Indian markets, so lets try and fix that.

Best and worst days

The table below shows that in a rising market, +1% days (BEST) outnumber -1% days (WORST) and the reverse is true of declining markets. Also, as you decrease the look-back period, the WORST to BEST ratio increases in a declining market.

nifty best worst

Cumulative Returns

If you apply the SMA switch to the Nifty index, here’s how the cumulative returns look like:

nifty cumulative returns

200-day SMA Cumulative Return Chart

Since: 2000
CNX NIFTY-200-day-sma-returns-2000

Since: 2010
CNX NIFTY-200-day-sma-returns-2010

50-day SMA Cumulative Return Chart

Since: 2000
CNX NIFTY-50-day-sma-returns-2000

Since: 2010
CNX NIFTY-50-day-sma-returns-2010

Drawdowns

If the SMA rule really helped investors stay out of negative fat tails, then it should manifest itself in the drawdowns.

drawdowns

Conclusion

Using a simple SMA rule helps investors avoid drawdowns and boost returns as compared to a naive buy and hold strategy. The smaller the look-back period, the better the returns and lower the drawdowns.

Weekly Recap: The Panopticon Effect

world equity markets 2014-07-25.2014-08-01

The Nifty ended the week -2.14% (-3.54% in USD terms.)

Equities

Major
DAX(DEU) -4.50%
CAC(FRA) -2.95%
UKX(GBR) -1.65%
NKY(JPN) +0.42%
SPX(USA) -2.63%
MINTs
JCI(IDN) +0.00%
INMEX(MEX) -0.72%
NGSEINDX(NGA) -0.83%
XU030(TUR) -2.42%
BRICS
IBOV(BRA) -3.31%
SHCOMP(CHN) +2.76%
NIFTY(IND) -2.41%
INDEXCF(RUS) -0.87%
TOP40(ZAF) -1.40%

Commodities

Energy
Brent Crude Oil -2.84%
Ethanol -2.66%
Heating Oil -1.56%
Natural Gas +0.37%
RBOB Gasoline -4.16%
WTI Crude Oil -3.86%
Metals
Copper -0.62%
Gold 100oz -0.13%
Palladium -1.51%
Platinum -0.85%
Silver 5000oz -1.46%

Currencies

USDEUR:+0.07% USDJPY:+0.81%

MINTs
USDIDR(IDN) +1.94%
USDMXN(MEX) +1.73%
USDNGN(NGA) -0.18%
USDTRY(TUR) +1.87%
BRICS
USDBRL(BRA) +1.32%
USDCNY(CHN) -0.20%
USDINR(IND) +1.80%
USDRUB(RUS) +1.84%
USDZAR(ZAF) +1.42%
Agricultural
Cattle -0.95%
Cocoa +1.51%
Coffee (Arabica) +6.81%
Coffee (Robusta) +3.20%
Corn -3.23%
Cotton -3.52%
Feeder Cattle +1.02%
Lean Hogs -4.68%
Lumber -0.40%
Orange Juice -5.47%
Soybean Meal -2.24%
Soybeans +0.21%
Sugar #11 -4.90%
Wheat -0.65%
White Sugar -2.59%

Index Returns

index performance.2014-07-25.2014-08-01

Sector Performance

sector performance.2014-07-25.2014-08-01

Advance Decline

advance.decline.line2.2014-07-25.2014-08-01

Market Cap Decile Performance

Decile Mkt. Cap. Advance/Decline
1 (micro-cap) -9.60% 68/68
2 -3.10% 65/70
3 -1.94% 64/72
4 -2.75% 67/68
5 -1.07% 65/71
6 -0.65% 64/71
7 -1.76% 58/78
8 -2.03% 65/70
9 -1.99% 66/70
10 (mega-cap) -1.93% 69/67
A winner for every loser…

Top winners and losers

UPL +5.65%
GLENMARK +6.84%
BHARTIARTL +7.12%
LT -11.42%
JINDALSTEL -5.67%
TATAPOWER -5.61%
Apparently people expected a lot from L&T’s first quarter but were left wondering about “acche dins”

ETFs

GOLDBEES +1.06%
JUNIORBEES +0.11%
PSUBNKBEES -0.02%
BANKBEES -1.66%
NIFTYBEES -1.70%
INFRABEES -2.64%
No love for infrastructure, banks barely held on…

Investment Theme Performance

It was a brutal week for any strategy that wasn’t short…

Yield Curve

yield Curve.2014-07-25.2014-08-01

Total return bond indices

Sub Index Change in YTM Total Return(%)
GSEC TB -0.04 +0.17%
GSEC SUB 1-3 +0.13 +0.04%
GSEC SUB 3-8 +0.19 -0.53%
GSEC SUB 8 +0.23 -1.46%
Long bonds fell…

August Nifty OI

nifty.puts.calls.AUG.2014-07-25.2014-08-01

August BankNifty OI

bank-nifty.puts.calls.AUG.2014-07-25.2014-08-01

Thought for the weekend

Here’s the tl;dr, but read the entire article at your leisure this weekend.

Panopticon: a way for a (prison) guard to see others without being seen himself. Follows a principle that power should be visible and unverifiable.

Visible: the inmate will constantly have before his eyes the tall outline of the central tower from which he is spied upon.

Unverifiable: the inmate must never know whether he is being looked at at any one moment; but he must be sure that he may always be so.

Eventually guards discovered that, after a period of consistent monitoring and prompt punishment against perpetrators, inmates began to regulate their own behaviour.

Applicable to how regulators, like SEBI and the RBI, can get market participants to regulate their own behavior.

Source: Michel Foucault on the Panopticon Effect

Monthly Recap: Gain And Prevent Pain

world equity markets 2014-06-30.2014-07-31

The Nifty ended July +1.44% (+1.19% in USD)

Equities

Major
DAX(DEU) -4.33%
CAC(FRA) -4.00%
UKX(GBR) -0.21%
NKY(JPN) +2.71%
SPX(USA) -1.67%
MINTs
JCI(IDN) +4.31%
INMEX(MEX) +1.49%
NGSEINDX(NGA) -0.91%
XU030(TUR) +4.91%
BRICS
IBOV(BRA) +5.31%
SHCOMP(CHN) +7.55%
NIFTY(IND) +0.76%
INDEXCF(RUS) -6.45%
TOP40(ZAF) +0.55%

Commodities

Energy
Brent Crude Oil -5.81%
Ethanol -1.46%
Heating Oil -2.68%
Natural Gas -14.52%
RBOB Gasoline -9.28%
WTI Crude Oil -7.17%
Metals
Copper +0.94%
Gold 100oz -2.74%
Palladium +3.61%
Platinum -1.35%
Silver 5000oz -3.32%

Currencies

USDEUR:+2.30% USDJPY:+1.62%

MINTs
USDIDR(IDN) -0.83%
USDMXN(MEX) +1.77%
USDNGN(NGA) -0.76%
USDTRY(TUR) +1.05%
BRICS
USDBRL(BRA) +2.31%
USDCNY(CHN) -0.45%
USDINR(IND) +1.04%
USDRUB(RUS) +5.02%
USDZAR(ZAF) +0.72%
Agricultural
Cattle +2.75%
Cocoa +2.07%
Coffee (Arabica) +13.49%
Coffee (Robusta) +5.46%
Corn -15.82%
Cotton -21.95%
Feeder Cattle +3.10%
Lean Hogs -10.68%
Lumber -2.45%
Orange Juice -0.53%
Soybean Meal -14.58%
Soybeans -12.39%
Sugar #11 -1.14%
Wheat -5.62%
White Sugar -7.31%

Index Performance

index performance.2014-06-30.2014-07-31

Top winners and losers

GLENMARK +15.65%
HINDALCO +16.75%
IDEA +18.42%
UNIONBANK -20.59%
M&MFIN -16.59%
RECLTD -14.83%
Looks like Abhishek Bachchan’s Idea contract is going to get extended…

ETFs

NIFTYBEES +2.02%
JUNIORBEES -0.60%
GOLDBEES -1.44%
BANKBEES -4.81%
INFRABEES -7.41%
PSUBNKBEES -10.05%
Large caps FTW!

Investment Theme Performance

Sector Performance

sector performance.2014-06-30.2014-07-31

Yield Curve

If it gets any flatter, it will be called a pancake…

yield Curve.2014-06-30.2014-07-31

Interbank lending rates

mibor.30days.2014-07-31

Total Return Bond Indices

Sub Index Change in YTM Total Return(%)
GSEC TB +0.03 +0.69%
GSEC SUB 1-3 -0.63 +1.00%
GSEC SUB 3-8 -0.33 +1.76%
GSEC SUB 8 -0.18 +2.29%
Riding down the rates curve has been a one-way trade so far this year. Read our analysis on Bonds and Rates.

Thought to sum up the month

Tasks that you are driven toward by Gain produce more significant positive results in your life and your business than tasks that you are driven toward by Prevent Pain.
 
If you continue to do solely what is necessary to survive every day, all you will accomplish is preventing pain from coming your way. To move your life or your business forward from where it is today and to see an improvement, you must do something extraordinary— something that you didn’t have to do at all. You must pursue Gain.

Source: Two Forms of Human Motivation: Gain And Prevent Pain