Category Archives: indexes

An Obscure But Useful Trend-Following Tool

Everyone has heard about trend-following.  And most traders have at least a foggy grasp of the relative pros and cons associated with trend following.  And anyone who has ever employed any type of trend-following technique is aware that they are great when there is an actual trend, but that whipsaws are inevitable.

What I am about to show you will not change these facts.  But today’s piece is just a “quickie” to highlight an obscure way to use a common indicator as a “confirmation/ denial” check when assessing the trend of a given security.  For the record, I am making no claim that this indicator generates profitably “trading signals in and of itself.  Its one of those things that – and I hate this phrase as much as you do but – should be used in conjunction with other indicators to get a good sense of the current “state of the trend” for a given security.

Nothing more, nothing less.

MACD Stretched Long

Most traders are familiar with the MACD indicator.  Originally popularized by Gerald Appel, it uses a set of moving averages to attempt to assess the trend in price (and many traders also use it to try to identify overbought or oversold situations).  Standard parameters are 9,26 and 12.  The version I use is different in several ways:

*Whereas the standard MACD generates two lines and a histogram can be drawn of the difference between the two, this version just generates one line – we will call in the trend line (catchy, no?)

*We will use parameters of 40 and 105

*One other note is that (at least according to me) this indicator is best used with weekly data.

The MACD4010501

Here is the formula for AIQ TradingExpert Expert Design Studio:

Define ss3 40.

Define L3 105.

ShortMACDMA3 is expavg([Close],ss3)*100.

LongMACDMA3 is expavg([Close],L3)*100.

MACD4010501Value is ShortMACDMA3-LongMACDMA3.

As I said this should be used with “other” indicators.  For example, one might consider the current price versus a 40-week moving average.

Standard Interpretation:

*If price is above the 40-week moving average (or if whatever other trend-following indicator you are using is bullish), AND

*The MACD4010501 is trend higher THEN

ONLY play the long side of that security

Likewise:

*If price is below the 40-week moving average (or if whatever other trend-following indicator you are using is bearish), AND

*The MACD4010501 is trend lower THEN

ONLY play the short side of that security (or at least DO NOT play the long side)

Finally, DO NOT assume that every change of trend in MACD4010501 is some sort of buy or sell signal.  Consider it only as a filter for your trades.

Some random examples appear in Figures 1 through 4 (click to enlarge any chart)

1

Figure 1 – AMZN (Courtesy AIQ TradingExpert)

2

Figure 2 – IBM (Courtesy AIQ TradingExpert)

3

Figure 3 – WMT (Courtesy AIQ TradingExpert)

4

Figure 4 – TLT (Courtesy AIQ TradingExpert)

Summary

To repeat, the proper use of this obscure version of the popular MACD indicator is as follows:

*Consider the trend of MACD4010501

*Consider one or more other trend-following indicators

*If there is bullish agreement, then apply your own shorter-term entry and exit techniques to trade the long side.

*If there is bearish agreement, then apply your own shorter-term entry and exit techniques to trade the short side (or simply stand aside).

Trade on!

Jay Kaeppel

Disclaimer:  The data presented herein were obtained from various third-party sources.  While I believe the data to be reliable, no representation is made as to, and no responsibility, warranty or liability is accepted for the accuracy or completeness of such information.  The information, opinions and ideas expressed herein are for informational and educational purposes only and do not constitute and should not be construed as investment advice, an advertisement or offering of investment advisory services, or an offer to sell or a solicitation to buy any security.

‘Dogs’ ‘Due’ for ‘Days’

While I am by and large an avowed “trend-follower” I also recognize that sometimes things get beaten down so much that they ultimately offer great potential long-term value.  Or, as they say, “every dog has it’s day.”  So, let’s consider some “dogs”.

For the record, and as always, I am not “recommending” these assets – I am simply highlighting what look like potential opportunities.

Dog #1: Soybeans (ticker SOYB)

As I wrote about in this article, soybeans are very cyclical in nature.  According to that article there are two “bullish seasonal periods” for beans and one “bearish”:

*Long beans from close on the last trading day of January through the close on 2nd trading day of May

*Short beans from the close on 14th trading day of June through the close on 2nd trading day of October

*Long beans from the close on 2nd trading day of October through the close on 5th trading day of November

In Figure 1 (ticker SOYB – an ETF that tracks the price of soybean futures) has been beaten down quite a bit.  This doesn’t mean price can’t go lower.  However, given the cyclical nature of bean prices they probably won’t go down forever.

1

Figure 1 – Weekly SOYB; prices beaten down (Courtesy AIQ TradingExpert)

Figure 2 is a daily chart of SOYB and displays the recent “bearish” seasonal period and the latest “bullish” period so far.

2

Figure 2 – Daily SOYB (Courtesy AIQ TradingExpert)

Dog #2: Uranium (ticker URA)

In this article and this article, I wrote about the prospects for uranium and ticker URA – an ETF that tracks the price of uranium.  Since that time URA has basically continued to go nowhere.  As you can see in Figure 3, it has been doing just that for some time.  While there is no guarantee that the breakout out of the range indicated in Figure 2 will be to the upside, historically, elongated bases such as this often lead to just that.  A trader can buy it at current levels and put a stop loss somewhere below the low for the base and take a reasonable amount of risk if they are willing to bet on an eventual upside breakout.

3

Figure 3 – Ticker URA with a long (really long) base (Courtesy AIQ TradingExpert)

Dog #3: Base Metals (Ticker DBB)

Under the category of – I called this one way, way too soon – in this article I wrote about the potential for ticker DBB to be an outperformer in the years ahead.  As you can see in Figure 4, so far, not so good.

4

Figure 4 – Base Metals via ticker DBB (Courtesy AIQ TradingExpert)

Still, the argument for base metals is this:

*In Figure 3 is this article you can see that commodities as an asset class are due for a good move relative to stocks in the years ahead.

*In addition, the Fed is raising interest rates.

As discussed historically base metals have been the best performing commodity sector when interest rates are rising.  Ticker DBB offers investors a play on a basket of base metals.

Summary

Will any of these “dog” ideas pan out?  As always, only time will tell.  But given the cyclical nature of commodities and the price and fundamental factors that may impact these going forward, they might at least be worth a look.

In the meantime, “Woof” (which – as far as I can tell – means “Have a nice day”).

Jay Kaeppel

Disclaimer:  The data presented herein were obtained from various third-party sources.  While I believe the data to be reliable, no representation is made as to, and no responsibility, warranty or liability is accepted for the accuracy or completeness of such information.  The information, opinions and ideas expressed herein are for informational and educational purposes only and do not constitute and should not be construed as investment advice, an advertisement or offering of investment advisory services, or an offer to sell or a solicitation to buy any security.

A Look Ahead in Stocks, Bonds and Commodities

In the interest of full disclosure, the reality is that I am not great at “predicting” things.  Especially when it involves the future.  That being said, I am pretty good at:

*Identifying the trend “right now”

*Understanding that no trend lasts forever

*Being aware of when things are getting a bit “extended”

So, I am going to highlight a few “thoughts” regarding how one might best be served in the markets in the years ahead.

Where We Have Been

*After 17 years of sideways action (1965-1982) the stock market has overall been in a bullish trend since about 1982 – albeit with some major declines (1987, 2000-2002 and 2007-2009) when the market got significantly overvalued.

*Bond yields experienced a long-term decline starting in 1981 and bottomed out in recent years.

*Commodities have mostly been a “dog” for many years.

The way the majority of investors approach these goings on is to:

*Remain bullish on the stock market (“Because it just keeps going up”)

*Continue to hold bonds (“Because I have to earn a yield somewhere”)

*Avoid commodities (“Because they suck – and they’re scary”)

And as an avowed trend-follower I don’t necessarily disapprove.  But as a market observer I can’t help but think that things will be “different” in the not too distant future.

Considerations Going Forward

Stocks

Figure 1 displays the Shiller P/E ratio.  For the record, valuation measures are NOT good “timing” tools.  They don’t tell you “When” the market will top or bottom out.  But they do give a good indication of relative risk going forward (i.e., the higher the P/E the more the risk and vice versa).

Note:

*The magnitude of market declines following previous peaks in the P/E ratio

*That we are presently at (or near) the 2nd highest reading in history

(click on any chart below to enlarge it)

1

Figure 1 – Shiller P/E Ratio (and market action after previous overvalued peaks) (Courtesy: www.multpl.com/shiller-pe/)

The bottom line on stocks:  While the trend presently remains bullish, valuation levels remind us that the next bear market – whenever that may be – is quite likely to be “one of the painful kind”.

Bonds

Figure 2 displays the 60-year cycle in interest rates.2

Figure 2 – 60 -year cycle in interest rates (Courtesy: www.mcoscillator.com)

Given the historical nature of rates – and the Fed’s clear propensity for raising rates – it seems quite reasonable to expect higher interest rates in the years ahead.

Commodities

As you can see in Figure 3 – which compares the action of the Goldman Sachs Commodity Index to that of the S&P 500 Index) – commodities are presently quite undervalued relative to stocks.  While there is no way to predict when this trend might change, the main point is that history strongly suggests that when it does change, commodities will vastly outperform stocks.3Figure 3 – Commodities extremely undervalued relative to stocks (Courtesy: Double Line Funds)

The Bottom Line – and How to Prepare for the Years Ahead

*No need to panic in stocks.  But keep an eye on the major averages.  If they start to drop below their 200-day averages and those moving average start to “roll over” (see example in Figure 4), it will absolutely, positively be time to “play defense.”

4

Figure 4 – Major stock average rolling over prior to 2008 collapse (Courtesy AIQ TradingExpert)

*Avoid long-term bonds.  If you hold a long-term bond with a duration of 15 years that tells you that if interest rates rise one full percentage point, then that bond will lose roughly 15% in value.  If it is paying say 3.5% in yield, there is basically no way to make up that loss (except to wait about 4 years and hope rates don’t rise any more in the interim – which doesn’t sound like a great investment strategy).

*Short-term to intermediate-term bonds allow you to reinvest more frequently at higher rates as rates rise. Historical returns have been low recently so many investors avoid these.  But remember, recent returns mean nothing going forward if rates rise in the years ahead.

*Consider floating rate bonds.  Figure 5 displays ticker OOSYX performance in recent years versus 10-year t-note yields. While I am not specifically “recommending” this fund, it illustrates how floating rate bonds may afford bond investors the opportunity to make money in bonds even as rates rise.5

Figure 5 – Ticker OOSYX (floating rate fund) versus 10-year treasury yields)

*Figure 6 display 4 ETFs that hold varying “baskets” of commodities (DBC, RJI, DJP and GSG clockwise from upper left).  When the trend in Figure 3 finally does reverse, these ETFs stand to perform exceptionally well.6

Figure 6 – Commodities performance relative to stock performance (GSCI versus SPX)

Finally, the truth is that I don’t know “when” any of this will play out.  But the bottom line is that I can’t help but think that the investment landscape is going to change dramatically in the years ahead.

So:

a) Pay attention, and

b) Be prepared to adapt

Jay Kaeppel

Disclaimer:  The data presented herein were obtained from various third-party sources.  While I believe the data to be reliable, no representation is made as to, and no responsibility, warranty or liability is accepted for the accuracy or completeness of such information.  The information, opinions and ideas expressed herein are for informational and educational purposes only and do not constitute and should not be construed as investment advice, an advertisement or offering of investment advisory services, or an offer to sell or a solicitation to buy any security.

Watch This Indicator

So, the big question on every investor’s mind is “What Comes Next?”  Since this is not an advisory service (and given the fact that I am not too good at predicting the future anyway) I have avoided commenting on “the state of the markets” lately.  That being said, I do have a few “thoughts”:

*The major averages (as of this exact moment) are still mostly above their longer-term moving averages (200-day, 10-month, 40-week, and so on and so forth).  So, on a trend-following basis the trend is still “up”.

0Figure 1 – The Major Index (Courtesy AIQ TradingExpert)

*We are in the most favorable 15 months of the 48-month election cycle (though off to a pretty awful start obviously) which beings Oct.1 of the mid-term year and ends Dec. 31st of the pre-election year.

*Investors should be prepared for some volatility as bottoms following sharp drops usually take at least a little while to form and typically are choppy affairs.  One day the market is up big and everyone breathes a sigh of relief and then the next day the market tanks.  And so on and so forth.

An Indicator to Watch

At the outset let me state that there are no “magical” indicators.  Still, there are some that typically are pretty useful.  One that I follow I refer to as Nasdaq HiLoMA.  It works as follows:

A = Nasdaq daily new highs

B = Nasdaq daily new lows

C = (A / (A+B)) * 100

D = 10-day moving average of C

C can range from 0% to 100%.  D is simply a 10-day average of C.

Nasdaq HiLoMA = D

Interpretation: When Nasdaq HiLoMA drops below 20 the market is “oversold”.

Note that the sentence above says “the market is oversold” and NOT “BUY NOW AGGRESSIVELY WITH EVERY PENNY YOU HAVE.”  This is an important distinction because – like most indicators – while this one may often give useful signals, it will occasionally give a completely false signal (i.e., the market will continue to decline significantly).

A couple of “finer points”:

*Look for the indicator to bottom out before considering it to be “bullish”.

*A rise back above 20 is often a sign that the decline is over (but, importantly, not always).  Sometimes there may be another retest of recent lows and sometimes a bear market just re-exerts itself)

*If the 200-day moving average for the Dow or S&P 500 is currently trending lower be careful about using these signals.  Signals are typically more useful if the 200-day moving average for these indexes is rising or at least drifting sideways rather than clearly trending lower (ala 2008).

Figures 2 through 8 displays the S&P 500 Index with the Nasdaq HiLoMA indicator.  Click to enlarge any chart.

1Figure 2 – SPX with Jay’s Nasdaq HiLoMA ending 2006 (Courtesy AIQ TradingExpert)

2Figure 3 – SPX with Jay’s Nasdaq HiLoMA ending 2008 (Courtesy AIQ TradingExpert)

3Figure 4 – SPX with Jay’s Nasdaq HiLoMA ending 2010 (Courtesy AIQ TradingExpert)

4Figure 5 – SPX with Jay’s Nasdaq HiLoMA ending 2012 (Courtesy AIQ TradingExpert)

5Figure 6 – SPX with Jay’s Nasdaq HiLoMA ending 2014 (Courtesy AIQ TradingExpert)

6Figure 7 – SPX with Jay’s Nasdaq HiLoMA ending 2016 (Courtesy AIQ TradingExpert)

7Figure 8 – SPX with Jay’s Nasdaq HiLoMA ending 2018 (Courtesy AIQ TradingExpert)

Summary

The stock market is in a favorable seasonal period and is oversold.  As long as the former remains true, react accordingly (with proper risk controls in place of course).

Jay Kaeppel

Disclaimer:  The data presented herein were obtained from various third-party sources.  While I believe the data to be reliable, no representation is made as to, and no responsibility, warranty or liability is accepted for the accuracy or completeness of such information.  The information, opinions and ideas expressed herein are for informational and educational purposes only and do not constitute and should not be construed as investment advice, an advertisement or offering of investment advisory services, or an offer to sell or a solicitation to buy any security.

Just how much influence a President has on the stock market

I often wondered just how much influence a President has on the stock market and found this interesting chart from Macrotrends. 

In the first 21 months from their inauguration you can see the top 10 performing Presidents. Who would have thought Gerald Ford would be so far up the list. Of course geopolitical events and prior President and Congress actions also take time to percolate into the market. 

Obama came into office soon after the 2008 financial crisis unemployment near 9% in 2009 and Ford after the oil crisis and Nixon. There are of course many other influencing factors, but a good rule of thumb In economic terms, the first year or so of any administration is just a carryover from the previous administration.

Probably the most significant contributor for the last decade has been the Federal Reserve chairs who have kept short-term rates low, while driving longer-term rates down by buying up $4.5 trillion of US government bonds and mortgage-backed securities. Lower returns has driven many investors into riskier assets like Stocks and this has helped fuel the stock market run that began in March 2009 and continues today. 

Economics aside, the current correction, and yes we are still in corrective territory can be seen in this SPX monthly chart. The Fibonacci retracement drawn from the low of the February 2018 correction to the recent high shows we’re at or past the 38.2% level. The next significant level is at 50% level of around 2729.

NASDAQ dive

Working on some slides for a seminar last week, it was apparent that breadth indicators on the NASDAQ signaled a divergence from the price action of the market.
Looking specifically at AD Ind and HI/LO, although other breadth measures told the same tale.

The AD indicator explained

The Advance/Decline Indicator is an exponentially weighted average of the net advancing versus declining issues. With this indicator, the direction of the trend is of importance and not the actual value of the indicator. When the indicator is increasing, advances are outweighing declines, and when it is decreasing, there are more declining is­sues than advancing.
The  Advance/Decline Indicator is a breadth indicator very similar to the Advance/Decline Line.  However, this indicator tends to be more sensitive and at times will signal a move earlier than the Advance/Decline Line.
The breadth was telling us something was amiss from last week. Take a look at this chart of the NASDAQ clearly a divergence was in place before the downturn.
Today’s (10-10-18) 316 point drop in the NASDAQ a 4% drop and nearly 9% drop from the high is close to the 10% corrective point and some buyers may come in over the next few days and keep the decline in check or not.
The markets are down between 6 and 10% in 5 days. Keeping good stops is a must in your portfolio to protect you from the worst of this. Using trailing stops between 7 and 10 % on stocks that are moving and protective stops 5 to 7 % below initial investment for example can easily reduce your losses in these volatile markets.

The (Potential) Bullish Case for Bonds

OK, first the bad news.  In terms of the long-term, we are probably in the midst of a rising interest rate environment.  Consider the information contained in Figure 1 from McClellan Financial Publications.

(click to enlarge)0a

Figure 1 – The 60-year cycle in interest rates (Courtesy: www.mscoscillator.com)

Though no cycle is ever perfect, it is only logical to look at Figure 1 and come away thinking that rates will rise in the years (and possibly decades) ahead.  And one should plan accordingly, i.e.:

*Eschew large holdings of long-term bonds. Remember that a bond with a “duration” -Google that term as it relates to bonds please – of 15 implies that if interest rates rise 1 full percentage point then that bond will lose roughly 15% of principal.  Ouch.

*Stick to short to intermediate term bonds (which will reinvest at higher rates more quickly than long-term bonds as rates rise) and possibly some exposure to floating rate bonds.

That is “The Big Picture”.

In the meantime, there is a potential bullish case to be for bonds in the shorter-term.  The “quick and dirty” guide to “where are bonds headed next” appears in the monthly and weekly charts of ticker TLT (iShares 20+ years treasury bond ETF).  Note the key support and resistance levels drawn on these charts.

(click to enlarge)1

Figure 2 – Monthly TLT with support and resistance (Courtesy ProfitSource by HUBB)

(click to enlarge)2

Figure 3 – Weekly TLT with support and resistance (Courtesy ProfitSource by HUBB)

There is nothing magic about these lines, but a break above resistance suggests a bull move, a break below support suggests a bear move, and anything in between suggests a trading range affair.

Now let’s look at some potentially positive influences.  Figure 4 displays a screen from the excellent site www.sentimentrader.com that shows that sentiment regarding the long treasury bond is rock bottom low.  As a contrarian sign this is typically considered to be bullish.

(click to enlarge)3

Figure 4 – 30-year treasury investor sentiment is extremely low (Courtesy Sentimentrader.com)

Figure 5 – also from www.sentimentrader.com – suggests that bonds may be entering a “bullish” seasonal period between now and at least late-November (and possibly as long as late January 2019).

(click to enlarge)4

Figure 5 – 30-year treasury seasonality (Courtesy Sentimentrader.com)

Figure 6 displays the 30-year treasury bond yield (multiplied by 10 for some reason).  While rates have risen 27% from the low (from 2.51% to 3.18%), they still remain below the long-term 120-month exponential moving average.

(click to enlarge)5

Figure 6 – Long-term treasury bond yields versus 120-month moving average (Courtesy AIQ TradingExpert)

Finally, two systems that I developed that deems the bond trend bullish or bearish based on the movements of 1) metals, and 2) Japanese stocks turned bullish recently.  The bond market has fallen since these bullish signal were flashed – possibly as a result of the anticipated rate hike from the Fed.  Now that that hike is out of the way we should keep a close eye on bonds for a potential advance in the months ahead.

(click to enlarge)6a

Figure 7 – Bonds tend to move inversely to Japanese stocks; Ticker EWJ 5-week average is below 30-week average, i.e., potentially bullish for bonds (Courtesy AIQ TradingExpert)

Summary

It’s a little confusing here.

a)  The “long-term” outlook for bonds is very “iffy”, so bond “investors” should continue to be cautious – as detailed above.

b) On the other hand, there appears to be a chance that bonds are setting up for a rally in the near-term.

c) But, in one final twist, remember that if TLT takes out its recent support level, all bullish bets are off.

Are we having fun yet?

Jay Kaeppel

Disclaimer:  The data presented herein were obtained from various third-party sources.  While I believe the data to be reliable, no representation is made as to, and no responsibility, warranty or liability is accepted for the accuracy or completeness of such information.  The information, opinions and ideas expressed herein are for informational and educational purposes only and do not constitute and should not be construed as investment advice, an advertisement or offering of investment advisory services, or an offer to sell or a solicitation to buy any security.

New Highs, Check…Now What?

Let’s open with Jay’s Trading Maxim #7.

Jay’s Trading Maxim #7: Being able to identify the trend today is worth more than 1,000 predictions of what the trend will be in the future.

Yes trend-following is boring.  And no, trend-following never does get you in near the bottom nor out at the top.  But the reality is that if you remain long when the trend appears to be up (for our purposes here let’s define this roughly as the majority of major market averages holding above their long-term moving averages) and play defense (i.e., raise cash, hedge, etc.) when the trend appears to be down (i.e., the majority of major market averages are below their long-term moving averages), chances are you will do pretty well for yourself.  And you may find yourself sleeping pretty well at night as well along the way.

To put it more succinctly:

*THE FOREST = Long-term trend

*THE TREES = All the crap that everyone tells you “may” affect the long-term trend at some point in the future

Human nature is a tricky thing.  While we should clearly be focused on THE FOREST the reality is that most investors focus that majority of their attention on all those pesky trees.  Part of the reason for this is that some trees can offer clues.  It’s a question of identifying a few “key trees” and then ignoring the rest of the noise.

A New High

With the Dow Industrials rallying to a new high virtually all the major averages have now reached a new high at least within the last month.  And as you can see in Figure 1 all are well above their respective 200-day moving average.  Long story short the trend is “UP”.

(click to enlarge)1Figure 1 – U.S. Major Market Indexes in Uptrends (Courtesy AIQ TradingExpert)

Now What? The Good News

As strong as the market has been of late it should be noted that we are about to enter the most favorable seasonal portion of the 48-month election cycle.  This period begins at the close of September 2018 and extends through the end of December 2019.

Figure 2 displays the growth of $1,000 invested in the Dow Industrials only during this 15-month period every 4 years.  Figure 3 displays the actual % +(-) for each of these periods.  Note that since 1934-35, the Dow has showed a gain 20 out of 21 times during this period.

2a

Figure 2 – Growth of $1,000 invested in Dow Industrials ONLY during 15 bullish months (mid-term through pre-election year) within 48-month election cycle.

Start Date End Date Dow % +(-)
9/30/1934 12/31/1935 +55.6%
9/30/1938 12/31/1939 +6.2%
9/30/1942 12/31/1943 +24.5%
9/30/1946 12/31/1947 +5.1%
9/30/1950 12/31/1951 +18.9%
9/30/1954 12/31/1955 +35.5%
9/30/1958 12/31/1959 +27.7%
9/30/1962 12/31/1963 +31.8%
9/30/1966 12/31/1967 +16.9%
9/30/1970 12/31/1971 +17.0%
9/30/1974 12/31/1975 +40.2%
9/30/1978 12/31/1979 (-3.1%)
9/30/1982 12/31/1983 +40.4%
9/30/1986 12/31/1987 +9.7%
9/30/1990 12/31/1991 +29.2%
9/30/1994 12/31/1995 +33.1%
9/30/1998 12/31/1999 +46.6%
9/30/2002 12/31/2003 +37.7%
9/30/2006 12/31/2007 +13.6%
9/30/2010 12/31/2011 +13.0%
9/30/2014 12/31/2015 +2.2%

Figure 3 – 15 bullish months (mid-term through pre-election year) within 48-month election cycle

Now What? The Worrisome Trees

While the major averages are setting records a lot of other “things” are not.  My own cluster of “market bellwethers” appear in Figure 4.  Among them the Dow Transportation Index is the only one remotely close to a new high, having broken out to the upside last week.  In the meantime, the semiconductors (ticker SMH), the inverse VIX index ETF (ticker ZIV) and Sotheby’s (ticker BID) continue to meander/flounder. This is by no means a “run for the hills” signal.  But the point is that at some point I would like to see some confirmation from these tickers that often (though obviously not always) presage trouble in the stock market when they fail to confirm bullish action in the major averages.

(click to enlarge)4Figure 4 – Jay’s 4 Bellwethers (SMH/TRAN/ZIV/BID) (Courtesy AIQ TradingExpert)

Another source of potential concern is the action of, well, the rest of the darn World.  Figure 5 displays my own regional indexes – Americas, Europe, Asia/Pacific and Middle East.  They all look awful.

(click to enlarge)3Figure 5 – 4 World Regional Indexes (Courtesy AIQ TradingExpert)

Now the big question is “will the rest of the world’s stock markets start acting better, or will the U.S. market start acting worse?”  Sadly, I can’t answer that question.  The key point I do want to make though is that this dichotomy of performance – i.e., U.S market soaring, rest of the world sinking – is unlikely to be sustainable for very long.

Summary

It is hard to envision the market relentlessly higher with no serious corrections over the next 15 months.  And “yes”, those bellwether and world region indexes trees are “troublesome”.

Still the trend at the moment is inarguably “Up” and we about to enter one of the most seasonally favorable periods for the stock market.

So, my advice is simple:

1) Decide now what defensive actions you will take if the market does start to breakdown

2) Resolve to actually take those actions if the need arises

3) Enjoy the ride as long as it lasts.

Jay Kaeppel

Disclaimer:  The data presented herein were obtained from various third-party sources.  While I believe the data to be reliable, no representation is made as to, and no responsibility, warranty or liability is accepted for the accuracy or completeness of such information.  The information, opinions and ideas expressed herein are for informational and educational purposes only and do not constitute and should not be construed as investment advice, an advertisement or offering of investment advisory services, or an offer to sell or a solicitation to buy any security.

Portfolio Strategy Based On Accumulation/Distribution

The AIQ code based on Domenico D’Errico’s article in the August issue of Stocks & Commodities magazine, “Portfolio Strategy Based On Accumulation/Distribution,” is shown below.

“Whether you are an individual trader or an asset manager, your main goal in reading a chart is to detect the intentions of major institutions, large operators, well-informed insiders, bankers and so on, so you can follow them. Here, we’ll build an automated stock portfolio strategy based on a cornerstone price analysis theory.”

!Portfolio Strategy Based on Accumulation/Distribution
!Author: Domenic D'Errico, TASC Aug 2018
!Coded by: Richard Denning 6/10/18
!www.TradersEdgeSystem.com
!Portfolio Strategy Based on Accumulation/Distribution
!Author: Domenic D'Errico, TASC Aug 2018
!Coded by: Richard Denning 6/10/18
!www.TradersEdgeSystem.com

!SET TO WEEKLY MODE IN PROPERTIES
!ALSO VIEW CHARTS IN WEEKLY MODE

!INPUTS:
rLen is 4.
consolFac is 75. ! in percent
adxTrigger is 30.
volRatio is 1.
volAvgLen is 4.
volDelay is 4.

!CODING ABREVIATIONS:
H is [high].
L is [low].
C is [close].
C1 is valresult(C,1).
H1 is valresult(H,1).
L1 is valresult(L,1).

!RANGE ACCUMULATION/DISTRIBUTION:
theRange is hival([high],rLen) - loval([low],rLen).
Consol if theRange < consolFac/100 * valresult(theRange,rLen).
rRatio is theRange/valresult(theRange,4)*100.

!AVERAGE TRUE RANGE ACCUMULATION/DISTRIBUTION:
avgLen is rLen * 2 - 1.	
TR  is Max(H-L,max(abs(C1-L),abs(C1-H))).
ATR  is expAvg(TR,avgLen).

ConsolATR if ATR < consolFac/100 * valresult(ATR,rLen). atrRatio is ATR / valresult(ATR,4)*100. !ADX ACCUMULATION/DISTRIBUTION: !ADX INDICATOR as defined by Wells Wilder rhigh is (H-H1). rlow is (L1-L). DMplus is iff(rhigh > 0 and rhigh > rlow, rhigh, 0).
DMminus is iff(rlow > 0 and rlow >= rhigh, rlow, 0).
AvgPlusDM is expAvg(DMplus,avgLen).
AvgMinusDM is expavg(DMminus,avgLen).           	
PlusDMI is (AvgPlusDM/ATR)*100.	
MinusDMI is AvgMinusDM/ATR*100.	
DIdiff is PlusDMI-MinusDMI. 		
Zero if PlusDMI = 0 and MinusDMI =0.
DIsum is PlusDMI+MinusDMI.
DX is iff(ZERO,100,abs(DIdiff)/DIsum*100).
ADX is ExpAvg(DX,avgLen).

ConsolADX if ADX < adxTrigger. !CODE FOR ACCUMULATIOIN/DISTRIBUTION RANGE BREAKOUT: consolOS is scanany(Consol,250) then offsettodate(month(),day(),year()). Top is highresult([high],rLen,^consolOS). Top0 is valresult(Top,^consolOS) then resetdate(). Bot is loval([low],rLen,^consolOS). AvgVol is simpleavg([volume],volAvgLen). Bot12 is valresult(Bot,12). BuyRngBO if [close] > Top
and ^consolOS <= 5 and ^consolOS >= 1
and Bot > Bot12
and valresult(AvgVol,volDelay)>volRatio*valresult(AvgVol,volAvgLen+volDelay).
EntryPrice is [close].

Sell if [close] < loval([low],rLen,1).
ExitPrice is [close].

Figure 9 shows the summary backtest results of the range accumulation breakout system using NASDAQ 100 stocks from December 2006 to June 2018. The exits differ from the author’s as follows: I used two of the built-in exits — a 20% stop-loss and a profit-protect of 40% of profits once profit reaches 10%.

Sample Chart

FIGURE 9: AIQ. Here are the summary results of a backtest using NASDAQ 100 stocks.

Figure 10 shows a color study on REGN. The yellow bars show where the range accumulation/distribution shows a consolidation.

Sample Chart

FIGURE 10: AIQ. This color study shows range consolidation (yellow bars).

—Richard Denning

info@TradersEdgeSystems.com

for AIQ Systems

The SPX ‘Magic Number’

According to one simple technique the “Magic Number” for the S&amp;P 500 Index is 2872.87.  According to this simple technique if the S&P 550 Index closes above this number the stock market “should” continue to be bullish for at least another year.

Sounds optimistic? Well, there certainly are no “sure things” in the financial markets.  Still, let’s take a closer look.

The Simple Technique

The technique I mentioned works like this:

When the S&P 500 Index:

*Closes at its highest price in the past 252 trading days

*For the 1st time in the most recent 126 trading days

*It generates a bullish signal for the next 252 trading days

In essence, we are talking about buying when the index makes a 1-year high for the 1st time in 6 months and holding for 1 year.

Figure 1 displays the most recent previous buy signal that occurred on 7/11/16.  The sell date was 252 trading days later on 7/11/17.

1

Figure 1 – 2016 Signal (Courtesy AIQ TradingExpert)

Figure 2 displays the signal before that which occurred on 2/27/12.  The sell date was 252 trading days later on 2/26/13.

2

Figure 2 – 2012 Signal (Courtesy AIQ TradingExpert)

Figure 3 displays all the signals since 1933.

Buy Date Sell Date Buy Price Sell Price %+(-)
5/27/33 4/6/34 9.64 10.95 +13.6
5/18/35 3/20/36 9.87 15.04 +52.4
10/6/38 8/9/39 12.82 11.78 (8.1)
10/7/42 8/10/43 9.17 11.71 +27.7
6/1/44 4/7/45 12.31 13.84 +12.4
5/15/48 4/8/49 16.55 14.97 (9.5)
10/5/49 8/23/50 15.78 18.82 +19.3
3/5/54 3/4/55 26.52 37.52 +41.5
8/4/58 8/4/59 47.94 60.61 +26.4
1/10/61 11/2/62 58.97 57.75 (2.1)
4/15/63 4/15/64 69.09 80.09 +15.9
4/24/67 4/25/68 92.62 96.62 +4.3
4/30/68 6/9/69 97.46 101.2 +3.8
1/8/71 1/6/72 92.19 103.51 +12.3
2/7/72 2/8/73 104.54 113.16 +8.2
6/24/75 6/22/76 94.19 103.47 +9.9
8/1/78 7/31/79 100.66 103.81 +3.1
8/14/79 8/12/80 107.52 123.79 +15.1
10/8/82 10/6/83 131.05 170.28 +29.9
11/7/84 11/7/85 169.17 192.62 +13.9
10/19/88 10/18/89 276.97 341.76 +23.4
5/30/90 2/13/92 360.86 413.69 +14.6
7/30/92 7/29/93 423.92 450.24 +6.2
2/6/95 2/5/96 481.14 641.43 +33.3
9/3/03 9/2/04 1026.27 1118.31 +9.0
11/5/04 11/4/05 1166.17 1220.14 +4.6
10/13/09 10/13/10 1073.19 1178.1 +9.8
11/5/10 11/4/11 1225.85 1253.23 +2.2
2/27/12 2/26/13 1367.59 1496.94 +9.5
7/11/16 7/11/17 2137.16 2425.53 +13.5

Figure 3 – Previous Signals

Things to note:

*27 of the 30 signals (i.e., 90%) have witnessed a 12-month gain

*3 of 30 signals (i.e., 10%) have witnessed a loss

*The last “losing trade” occurred in 1961-1962

*The last 20 signals have been followed by a 12-month gain for the S&amp;P 500

*The average of all 30 signals is +13.9%

*The average for all 27 winning trades is +16.1%

*The average of all 3 losing trades is -6.6%

*The worst losing trade was -9.5%

Two Technical Notes

Believe it or not, into the early 1950’s the stock market used to be open on Saturday.  So those days counted toward the 126 and 252 trading days counts.  This explains why the buy and sell dates prior to 1954 were less than one calendar year apart.

It is possible to get a new signal before an existing signal reaches it’s Sell Date.  In those rare cases we simply extend the holding period an additional 252 trading days.  This occurred in 1961-1962, 1968-1969, 1990-1992.

Figure 4 shows that SPX is very close to generating a new signal.  The most recent high close was in January at 2872.87 which was more than 126 trading days ago.  A new signal will occur if SPX closes above that level.

4

Figure 4 – Potential new signal forming (Courtesy AIQ TradingExpert)

Summary

The Good News is that this technique has a 90% accuracy rate and that one good day in the market could generated a new buy signal.  The Bad News is that – as I mentioned earlier – there are no “sure things” in the market.  Given that this particular method is on a 20-trade winning streak, it is understandable to think that maybe the law of averages is against it this time.

We’ll just have to wait and see what happens.

Jay Kaeppel

Disclaimer:  The data presented herein were obtained from various third-party sources.  While I believe the data to be reliable, no representation is made as to, and no responsibility, warranty or liability is accepted for the accuracy or completeness of such information.  The information, opinions and ideas expressed herein are for informational and educational purposes only and do not constitute and should not be construed as investment advice, an advertisement or offering of investment advisory services, or an offer to sell or a solicitation to buy any security.