• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Trading Heroes

Trading Heroes

Forex Trading Education

  • Articles
  • Products
  • About
  • Login

How to Backtest the Forex Carry Trade Strategy

Learn exactly how to setup a backtest of the Forex carry trade strategy. Find out how it works with no market risk.

Home / Trading Strategies / How to Backtest the Forex Carry Trade Strategy

Last updated: August 11, 2022
By Hugh Kimura

Someone emailed me recently and noticed that I haven't talked about the carry trade for a long time.

The primary reason is that it is not a strategy that really resonates with me.

But if you know what you are doing, it can be a strategy that provides a hands off income for the lifetime of the trade.

But what doesn't work for me may work for you. If you want to find out how it works without risking any money in the market, you can easily backtest it.

If you have never heard of the carry trade, I will start by defining it. Then I will give you the exact steps you need to backtest it.

Definition of the Carry Trade Strategy

This strategy is called a “carry” trade because your goal is to make money on the interest or the carry.

It takes advantage of the difference in interest rates between two financial instruments.

RELATED: Create a free Binance account to access cryptocurrency charts

For example, if you could borrow money at 3%, then turn around and invest it in something yielding 6%, you would want to keep that trade as long as possible because you are making an easy 3% without doing anything and without putting up your own money.

In a similar way, you can take advantage of the positive rollover interest that some currency pairs pay.

When you take a Forex trade, you are essentially borrowing one currency to buy the other in the pair.

If the difference between their interest rates is high enough (minus broker fees) you can actually get paid interest for holding the position.  To find the pairs that pay the most interest, you can check out central bank interest rates on sites like FXStreet.

Here is what interest rates currently look like…

The two highest interest rate countries:

  • New Zealand (3.5%)
  • Australia (2.5%)

The three lowest interest rate countries:

  • Switzerland (0%)
  • European Central Bank (0.05%)
  • Japan (0.10%)

Therefore, you want to trade one of the highest interest rate countries against one of the lowest. One of the best carry trade pairs is the AUDJPY.

Before we move on, keep in mind that although these are the interest rates that countries set, brokers charge a fee that reduces the interest rate that you get paid and increases the amount you pay.  It is a spread, just like with trades.

So the interest rate on the charts isn't necessarily the rate you will get.

For more details on the carry trade, read this post.

How to Set Up Your Backtesting

The first thing that you have to do is find out the interest rates that your broker uses.

This should be available on their site.

Since I use Oanda, I will use them as the example.

If you cannot find it on your broker's website, contact the help desk to find out their current rates.

Oanda has a great calculator that I have provided at the end of this post. Since the AUDJPY is a common carry trade pair, let's use that as the example pair.

Using the Oanda calculator, I'll set the pair to AUDJPY and the interest rate type to trade.  Since the AUD is the higher interest rate currency, a buy will generate positive interest.

This is what it would look like when I set it up after I clicked the Calculate button. The important fields to notice are the Lend Rate and Borrow Rate fields.

They are filled in for you by the calculator, so you don't have to worry about it. This will give us everything we need to setup our backtesting.

Just for fun, I entered some theoretical numbers so you can see how the calculator works. I used 10,000 units because that is a common lot size…otherwise known as a mini lot.

Then I ask the calculator to calculate the interest for one day, so I put 24 hours into the Hours Held field.

When I click on the Calculate button, I get a total interest payment of $0.45.

Interest rate calculator example

Now, let's move over to our backtesting software.

Since I use Forex Tester 2, I'll use that as the example.

If you need instructions on how to import data and setup the basics of Forex Tester 2, read this post.

After you have read the setup, come back here.

To setup the correct interest rate, go into the symbol properties for the AUDJPY pair and change the Swap Long to the difference that your broker uses.

In this example, this is the difference calculation:

Borrow Rate – Lend Rate = Swap Long Rate

1.95% – 0.0625% = 1.8875%

So you would set the Swap Long rate in Forex Tester to 1.8875.

swap-long

Don't worry about calculating the short swap because you won't be using that in this example.

The positive carry is only earned on long positions, so you will never execute a short. Now generate the ticks again and setup your charts in Testing Mode.

One word of warning before you proceed with your backtesting. If you execute a demo trade to double check the interest against Forex Tester 2, it won't be the same.

This is because the rollover interest calculation takes the current price of the currency pair into account.

If you want the complete calculation explanation, you can read this post.

To see this in action, simply change the quotes in the calculator at the bottom of this post.

In addition, leverage doesn't matter for carry trade backtesting purposes.

This is because the interest calculation takes into account the amount of currency that you control, not the amount of margin you put up.

The margin is only your “good faith” deposit.

For example, if you control 10,000 currency units of AUDJPY at 1:1 leverage, your margin requirement will currently be $8,696.5.

But if you use 50:1 leverage, your margin requirement will be $173.93.

To see what I mean, you can use this margin calculator.

In either case, you will still be controlling 10,000 units and will be paid interest on that amount.

Your return on margin will be much higher with higher leverage, but that is not what we are concerned with in this tutorial.

Now that you understand the technical aspects of the carry trade, let's move on to the actual backtesting.

Start to Backtest the Forex Carry Trade Strategy

When implementing the carry trade, rollover interest should be your secondary concern.

Trade risk is going to outweigh carry profit by a large margin.

So you need to implement a strategy that takes minimizes trading risk.

There are many ways to do this, but the most obvious is to only buy at multi-year or multi-month lows or highs.

Doing this gives your trade the best chance of accumulating he most interest possible.

There are many other possible strategies, so find the ones that appeal to you and test them out.

Whatever system you test, pay attention to the trading risk that you are incurring versus the interest payout reward.

Backtest as far back as possible to make sure that your strategy works in different market conditions.

Also be sure to have a chart of historical interest rates to be sure that you are not trading trading the pair when the interest rate spreads where not optimal.

Conclusion

If you are interested in trading the carry trade, you should backtest it and make sure that you understand your true risk and reward potential.

It may sound really easy to accumulate interest without doing any work, but remember that there are no free lunches.

Before I end this post, let me give you a couple of things that you can try.

First of all, you can test taking small initial positions around monthly or even yearly highs/lows instead of putting your entire position on at once.

This allows you to be flexible and take small losses when you are wrong.

Second, don't get too focused in interest alone.

Think about taking some trading profits off the table to help yourself stay in the trade.

You can also day trade or swing trade around your long-term carry positions.

 

Related Articles

  • Beeple ArtworkNon-Fungible Tokens Explained: How They are Changing the Face of Trading
  • identify profitable strategiesHow to Know if a Trading Strategy is Profitable
  • 7 Reasons to Trade Four Hour Charts7 Reasons to Trade Four Hour Charts
  • Anatomy of a BatmanThe "Batman" Chart Pattern Explained
  • lock in profitsHow to Use a Trailing Stop Loss (7 Ways to Lock in Profits)
  • golden vs death crossGolden Cross vs Death Cross Differences Explained
  • Forex trading systems9 of the Best Resources for Forex Trading Systems
  • Make the jumpForex Gaps: Trading the Long Lost Trading Gap

 


Category: Trading Strategies Tag: Forex Trading Strategies

About Hugh Kimura

Hi, I'm Hugh. I'm an independent trader, educator and researcher. I used to work at a hedge fund and the largest bank in Hawaii. Now I help traders optimize their trading psychology and trading strategies. Learn more about me here.

Don’t be satisfied with stories, how things have gone with others. Unfold your own myth.

- Rumi
Nobody understand everything. Double check your assumptions. Double check others.

Primary Sidebar

Trading Guides

The Ultimate Beginner’s Guide to Forex Backtesting

How to Figure Out Your Trader Personality Profile

The Forward Testing Guide for Beginners

How to Create a Precise Trading Plan (with PDF worksheet)

Learn the weird trading method that doesn't use stop losses...

Forex Hedging Guide
FREE Guide
Download Now

Footer

Company

  • Trading Courses and Education
  • Trading Blog
  • About
  • Contact
  • Beware of Imposters

Community

  • YouTube
  • Twitter
  • Instagram
  • Facebook

Tutorials & Guides

  • Best Trading Resources
  • Free Forex Trading Course for Beginners
  • Free Backtesting Guide for Beginners
  • Trader Personality Profile
  • Best Trading Books

Articles

  • Backtesting
  • Podcast
  • Trader Life
  • Trading Psychology
  • Trading Software Tutorials
  • Trading Strategies

Trading involves risk and can result in the loss of your investment. Invest at your own risk. Past performance does not guarantee future results. All information on this site is for informational purposes only and is not trading, investment, tax or health advice. The reader bears responsibility for his/her own investment research and decisions. Seek the advice of a qualified finance professional before making any investment and do your own research to understand all risks before investing or trading. TrueLiving Media LLC and Hugh Kimura accept no liability whatsoever for any direct or consequential loss arising from any use of this information. You are 100% responsible for your losses...and gains. You are more powerful than you know, keep expanding.

 

Copyright © 2007–2023 TrueLiving Media LLC | Terms | Privacy | Risk

Learn Zen8 Forex Hedging

Hedging can be a low-stress and consistent way to trade. Enter your email and I'll send you the FREE guide. 

x