Author: shyam

USDINR and Dollar Indices

Introduction

The FRED publishes the following indices along with USDINR (DEXINUS):
DTWEXB: Trade Weighted U.S. Dollar Index: Broad
DTWEXM: Trade Weighted U.S. Dollar Index: Major Currencies
DTWEXO: Trade Weighted U.S. Dollar Index: Other Important Trading Partners

Can the spread between USDINR and these indices be traded?

Introduction: Part I, Part II

Back-test on daily returns

Should you bet on convergence, divergence of momentum?
Read: Part III

Back-test on weekly returns

Does the daily-return series analysis carry through to weekly returns?
Read: Part IV

Market Cap Deciles

Introduction

Quantitative deciling of stocks based purely on market-cap makese sense.
Read: Market Cap Deciles

Exhibits

Some charts and observations on the different deciles.
Read: II and III.

Investing

Investing in deciles through Themes.
Read: Investing in Micro-caps

Mutual fund portfolio

The number and total weightage of stocks in a mutual fund portfolio belonging to different deciles.
Read: Fund Portfolios and Market Cap Deciles
See: Overlap Tool

Pair Trading

Linear regression

Examining linearity between two stocks – linear regression and interpreting results.
Read: Relationship between a pair of stocks

Co-integration

How do you conclude that a pair of stocks move together?
Read: Bank Nifty vs. HDFC Bank and ICICI Bank

Finding Pairs

Correlation, spreads and co-integration.
Read: Finding Pairs to Trade

Hedge ratio

Hedge ratios, spreads and significance.
Read: The Bank Nifty – ICICI Bank Pair

A pair trading strategy

A simple trading strategy: buy the spread if it is one standard deviation below the average and sell the spread if its is one standard deviation above the average.
Read: Backtesting a Pair Trading Strategy

USDINR and Dollar Indices, Part IV

Please read Part I for the introduction, Part II for a study of the spread between USDINR and the dollar indices and Part III for a spread-trading back-test on daily returns.

Weekly vs. Daily

In our previous posts, we used daily returns to setup the analysis. However, analyzing daily series on currencies and commodities is problematic. They trade 24/7 in a global marketplace and “closing” prices for commodities and currencies are hard to pin down at a granular level across markets. One way to ameliorate this issue is to use a weekly or a monthly series instead.

Here are the plots of the spreads and p-values from the adf-tests applied to weekly returns:
USDINR.DTWEXB weekly spread
USDINR.DTWEXM weekly spread
USDINR.DTWEXO weekly spread

The back-test results mirror that of the daily series, with bets on momentum carrying through on the USDINR and DTWEXM pairs:
USDINR weekly spread trading backtest

This gives us more confidence in our back-tests. We end our series with the following caveats:

  1. Trading the spread involves trading both legs (as discussed in Part III.)
  2. One can only buy a currency by selling another. i.e., buying USDINR implies going long USD and short INR.
  3. Using the above analysis, if a trade involves buying USDINR in one of the legs, it does not inform anything on relative valuation of USD or INR.

Code and charts on github.

USDINR and Dollar Indices, Part III

Please read Part I for the introduction and Part II for a study of the spread between USDINR and the dollar indices.

Trading the spread

In Part II, we defined spread = A – βB. When we say “trade the spread” we literally mean going long or short the spread as defined. To actually implement the trade, one would have to create two legs: one that is long USDINR (A) and the other that is short β times one of the dollar indices (B). Since the dollar indices are not something that can be actually traded, the following back-tests are purely a theoretical exercise.

Back-test

We consider three scenarios:

  1. C1: if the spread diverges beyond 1-sigma, bet on mean-reversion.
  2. C2: if the spread diverges beyond 1-sigma, bet on it getting bigger.
  3. D1: if the spread is between the average and 1-sigma, bet on it blowing out.

The first one is pure convergence and the last one is pure divergence. The second one is sort of like momentum – if the spread is already beyond 1-sigma, bet on it further blowing out.

USDINR spread-trading backtest

It appears the second scenario, the one that bets on momentum carrying through, is the most profitable. Also, the most profitable pair seems to be USDINR and DTWEXM (Trade Weighted U.S. Dollar Index: Major Currencies).

In the last part in this series, we will run through this analysis for a weekly time-series of these indices.

Code and charts are on github.