• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Decoding Markets

  • Top Posts
  • Marwood Research
  • Resources
    • Books
  • Free System
  • Blog
    • About
    • Book
    • Signals
    • Q & A
    • Tweets
You are here: Home / Amibroker / Implementing The All Weather Portfolio With ETFs

May 12, 2017 By Joe Marwood 7 Comments

Implementing The All Weather Portfolio With ETFs

In this article I implement Ray Dalio’s All Weather portfolio using popular ETFs and I back-test the strategy using Amibroker. The results show nice risk-adjusted returns for investors.

Ray Dalio’s All Weather Portfolio

In the book Money: Master The Game by Tony Robbins, hedge fund manager Ray Dalio reveals a portfolio strategy called the All Weather portfolio that is designed to provide robust returns and weather any financial storm.

The result is a simple asset allocation strategy with a mixture of stocks, bonds and commodities. The exact ratios are:

  • 30% Stocks
  • 40% Long-Term Bonds
  • 15% Intermediate-Term Bonds
  • 7.5% Gold
  • 7.5% Commodities

Portfolio Rationale

Having only 30% in stocks may sound low but Dalio says we need 30% in stocks because stocks are three times riskier than bonds. Further, he says that having a large amount of bonds is to counter the volatility of the stocks.

Dalio rounds out the portfolio with 7.5% in commodities and 7.5% in gold. He says that you need to have some of your portfolio in gold and commodities to balance the portfolio during periods of accelerated inflation – which can hurt both stocks and bonds.

The All Weather Portfolio With ETFs

Implementing the All Weather portfolio is fairly simple thanks to the invention of ETFs which give investors the ability to trade many different assets in one instrument.

Using Amibroker and historical data from Norgate Premium, I constructed a portfolio made up of the following ETFs to simulate the All Weather system. These ETFs were chosen based on popularity and earliest inception date:

  • SPY ( 30% stocks)
  • TLT ( 40% long-term bonds)
  • IEF ( 15% intermediate-term bonds)
  • IAU ( 7.5% gold)
  • DBC ( 7.5% commodities)

Historical data for DBC does not go back much further than 2008 so I ran the All Weather portfolio in Amibroker between 1/2008 and 1/2017 and achieved the following results: (Starting capital was set at $100000, commissions were set at $10 per trade and the portfolio was rebalanced annually)

Annualised Return: 6.11%
Maximum Drawdown: -14.54%
CAR/MDD: 0.42
Profit Factor: 2.53
Net Profit: $70487.07
Ending Equity: $170487.07

Buy and Hold Annualised Return: 7.03%
Buy and Hold Max Drawdown:
-52.37%

All weather portfolio performance in amibroker
All weather portfolio performance in Amibroker
All weather portfolio performance in Amibroker table
All weather portfolio performance in Amibroker table

As you can see, the All Weather Portfolio does a great job of riding out the storms. The maximum drawdown is low at under 15% and the portfolio’s worst year is only -3.2%. It even made a profit in 2008. On a risk-adjusted basis it has performed much better than buy and hold.

Amibroker Code

The Amibroker code for such a strategy is fairly straightforward. The main requirement is to alter the position size per symbol and make sure we are placing our trades on the right days. I have told the system to start on the first day of the year and sell on the last day of each year in order to simulate an annual rebalance. Technically, this is not the classic way to do a rebalance but it is effective in this situation and easier to code. The system is then run on the daily timeframe on a watchlist containing the necessary tickers.

SetFormulaName("ALL WEATHER");
SetOption("InitialEquity",100000);
SetOption("CommissionMode",2);              
SetOption("CommissionAmount",10); 
SetOption("AccountMargin",100); 
SetOption("AllowPositionShrinking", True);  
RoundLotSize = 1;

Symbol = Name();
SetPositionSize(IIf(Symbol == "TLT", 40, IIf(Symbol == "IEF", 15, IIf(Symbol == "SPY", 30, IIf(Symbol == "IAU", 7.5, IIf(Symbol == "DBC", 7.5, 0))))), spsPercentOfEquity);

BuyPrice = O;
SellPrice = C;

Firstdayoftheyear = year()!= ref(year(),-1);
Lastdayoftheyear = year()!= ref(year(),1);
			
// Entry and exit rules

BUY = 	Firstdayoftheyear;
SELL = 	Lastdayoftheyear;

// -- End

The All Seasons Portfolio

In an article from Meb Faber, a similar strategy to the All Weather strategy is revealed called the All Seasons Portfolio, attributed to Tony Robbins himself.

The structure of this portfolio is similar to the All Weather strategy. The only difference is that the stocks segment is split into more diverse parts. Below shows the components of the All Seasons portfolio. In brackets shows the ETFs that I will use for the simulation:

  • 40% Long-Term Bonds (I used TLT)
  • 15% Intermediate-Term Bonds (I used IEF)
  • 12.5% US Large Cap Stocks (I used SPY)
  • 6% International Stocks (I used VEU)
  • 5.5% US Mid-Cap Stocks (I used IJH)
  • 3% US Small Cap Stocks (I used IWM)
  • 3% Emerging Market Stocks (I used EEM)
  • 7.5% Gold (I used IAU)
  • 7.5% Commodities (I used DBC)

Running this portfolio strategy with the same settings as before I got the following results between 1/2008 and 1/2017:

Annualised Return: 5.61%
Maximum Drawdown: -15.71%
CAR/MDD: 0.36
Profit Factor: 2.24
Net Profit: $63429.11
Ending Equity: $163429.11

The All Seasons portfolio, as you would expect, also returns a robust performance that was able to withstand the 2008 credit crisis with a positive performance.

Thanks to Meb Faber we can also see how the strategy performs on a much longer time frame (back to 1973) as shown below. Presumably this is simulated using index data/futures data not ETFs.

All Seasons portfolio results Meb Faber
All Seasons portfolio results Meb Faber
All Seasons portfolio results Meb Faber
All Seasons portfolio results Meb Faber

Comments On Asset Allocation

The All Weather Portfolio is a good, low risk approach to asset allocation suitable for long-term investing and dollar cost averaging. The strategy ensures a good balance of assets that will generally perform well over time and the low drawdown means some leverage may even be implemented to improve overall returns.

It’s worth mentioning that the All Weather Portfolio is said to do worse in a rising rate environment like the 1970s which could be the reason that Ray Dalio’s Bridgewater fund made some changes to the construction.

It’s likely that any adjustments were small, however. The beauty of asset allocations models is that you can make small changes based on what you think the future will be. For example, after a nasty bear market you might increase the percentage of stocks to 40% or 50%. In an environment where bonds seem overvalued you might drop their allocation also.

Ultimately,  most asset allocation strategies are very similar in the way they are built. Essentially they are all variations on the classic 60/40 mix of stocks and bonds. Meb Faber shows us that the long-term difference between most allocation strategies is less than 200 basis points.

So, the trick is not which strategy you choose but how early you choose it and how regularly you contribute to it. Personally, I like to use a simple allocation just like the All Weather portfolio. Of course, I also have capital reserved for short-term trading as well with the intention of boosting returns. In a way this is similar to a barbell type strategy that I discussed previously.

—

DON'T MISS THIS


Simulations made with Amibroker with data from Norgate.

Disclaimer.

Filed Under: Amibroker, Investing, Strategies/ Systems Tagged With: amibroker, investing

Recommended Educational Resources:

  • Discover New Trading Systems
  • Build A Trading Robot In Excel
  • Learn About Mental Models (Free)
  • Learn Python (Free)
  • Free Historical Data
  • Free Indicators For Amibroker

Reader Interactions

Comments

  1. Jay says

    May 13, 2017 at 11:18 am

    Thanks for sharing this Joe! Great information and really detailed. I think you make a good point about most things being a riff on your classic 60/40 portfolio. Thanks again!

    Reply
  2. Patrick says

    May 19, 2017 at 3:23 am

    Hi Joe,

    I tried using the code you posted and my results yielded only 3.62 CAR so I’m wondering if I’m doing something wrong. I’ve got Amibroker 6.22 with Norgate NDU. Perhaps you could email me the trades list for your run of the All Weather portfolio so I can compare it to mine and see why I get different results.

    Reply
    • JB Marwood says

      May 19, 2017 at 8:19 am

      Send me an email and I will take a look or I can send you the trades list. There may be something different in the Amibroker settings or the database settings. Did you go into database settings and set ‘capital reconstructions, special dividends and ordinary dividends’ to be included?

      Reply
      • Patrick says

        May 19, 2017 at 12:45 pm

        Thanks for the help. I was able to replicate your results after enabling ‘capital reconstructions, special dividends and ordinary dividends’. While we’re on the subject, there is also a date padding option. Is there a setting you recommend for that?

        Reply
        • JB Marwood says

          May 19, 2017 at 5:45 pm

          No padding. Cheers

          Reply
  3. Victor says

    May 9, 2019 at 6:23 am

    How would you build a similar portfolio if you want a global exposure?

    Reply
    • Joe Marwood says

      May 14, 2019 at 9:49 am

      There is some global exposure already. But you can increase the allocation to international ETFs like VEU, EEM, XAW, XEF. Plenty to choose from.

      Reply

Leave a Reply Cancel reply

Your email address will not be published.

Primary Sidebar

Access Marwood Research image
Joe Marwood Profile PIc

DON'T MISS THIS


Popular

easy-money-trading

The Easiest 100 Ticks I Ever Made (And Worst)

trade example in the us ten year

Shorting The US Ten Year With ATR – A Simple System That Shows A Profitable Edge

The Tycoon Barbell from The Safe Investor

How To Limit Risk And Capture Upside With A Barbell Trading Strategy

Apple DCA equity chart

How To Build A $2.5 Million Position In Apple Stock (With $500 A Month)

10 things that dont work trading stocks featured image

10 Things That Don’t Work Trading Stocks

Stock screen image

20 Traps All Traders And Investors Must Avoid

beware youtube trading videos

Beware YouTube Trading Videos

The Truth About Intraday Momentum

Financial Disclaimer

Financial trading is risky and you can lose money. JB Marwood is not a registered investment advisor and nothing on this site is to be regarded as personalised investment advice. Past performance is not indicative of future results. Data errors and mistakes do occur. Please see the full disclaimer.

Search

Recommended Resources

  • Discover New Trading Systems
  • Build A Trading Robot In Excel
  • Learn About Mental Models (Free)
  • Learn Python (Free)
  • Free Historical Data
  • Free Indicators For Amibroker

Footer

About The Author

Joe Marwood is an independent trader and investor specialising in financial market analysis and trading systems. He worked as a professional futures trader for a trading firm in London and has a passion for building mechanical trading strategies. He has been in the market since 2008 and working with Amibroker since 2011.

Joe Marwood Profile PIc

Recent Posts

  • November Review – Disney And Alibaba Top Up
  • The Best Performing Stocks Of The Last 20 Years
  • How To Automate Your Trading With Amibroker 
  • Trade Ideas Review – Artificial Intelligence Stock Scanner?
  • October Update – I’m Backing Britain
  • The Truth About Zero Commissions
  • Do Most Stocks Fail To Beat Treasury Yields?
  • What Did I Buy In September?

Search

Tags

10ideas (1) Amibroker (90) Books (14) Commodities (5) Data (1) Economy (3) Forex (14) How to (48) Ideas (21) Interest (5) Intraday (18) Investing (57) Latest (23) Legends (11) Links (27) Lists (50) Me (5) News (3) Opinion (35) Picks (74) Psychology (6) Q&A (1) Rant (2) Reviews (10) Roadmap (1) Sports (3) Stocks (153) Strategies/ Systems (152) Technical Analysis (26) Tips (4) Tools (20) Top Posts (29) Trading (23) Traps (1) Trend Following (19) Update (27) Zero To One Million (4)

Privacy policy | Contact | Disclaimer | All Rights reserved. JB Marwood.