Category Archives: Stock trading

What it Will Take to Get Commodities Moving

I keep seeing headlines about the “imminent” re-emergence of commodities as a viable investment as an asset class.  And as I wrote about here, I mostly agree wholeheartedly that “the worn will turn” at some point in the years ahead, as commodities are historically far undervalued relative to stocks.

The timing of all of this is another story.  Fortunately, it is a fairly short and simple story.  In a nutshell, it goes like this:

*As long as the U.S. Dollar remains strong, don’t bet heavy on commodities.

The End

Well not exactly. 

The 2019 Anomaly

The Year 2019 was something of an anomaly as both the U.S. Dollar and precious metals such as gold and silver rallied.  This type of action is most unusual.  Historically gold and silver have had a highly inverse correlation to the dollar.  So, the idea that both the U.S. Dollar AND commodities (including those beyond just precious metals) will continue to rise is not likely correct.

Commodities as an Asset Class

When we are talking “commodities as an asset class” we are talking about more than just metals.  We are also talking about more than just energy products. 

The most popular commodity ETFs are DBC and GSG as they are more heavily traded than most others.  And they are fine trading vehicles.  One thing to note is that both (and most other “me too” commodity ETFs) have a heavy concentration in energies.  This is not inappropriate given the reality that most of the industrialized world (despite all the talk of climate change) still runs on traditional fossil fuel-based energy.

But to get a broader picture of “commodities as an asset class” I focus on ticker RJI (ELEMENTS Linked to the Rogers International Commodity Index – Total Return) which diversifies roughly as follows:

Agriculture          40.90%

Energy               24.36%

Industrial Metals 16.67%

Precious Metals    14.23%

Livestock               3.85%

Note that these allocations can change over time, but the point is that RJI has much more exposure beyond the energy class of assets than alot of other commodity ETFs.

RJI vs. the Dollar

As a proxy for the U.S. Dollar we will use ticker UUP (Invesco DB US Dollar Index Bullish Fund).  Figure 1 displays the % gain/loss for UUP (blue line) versus RJI (orange line) since mid-2008.

Figure 1 – UUP versus RJI; Cumulative Return using weekly closing prices; May-2008-Sep-2019

*Since May of 2008 UUP has gained +17.2%

*Since May of 2008 RJI has lost -60%

The correlation in price action between these two ETFs since 2008 is -0.76 (a correlation of -1.00 means they are perfectly inverse), so clearly there is (typically) a high degree of inverse correlation between the U.S. dollar and “commodities”.

Next, we will apply an indicator that I have dubbed “MACD4010501” (Note to myself: come up with a better name).  The calculations for this indicator will appear at the end of the article (but it is basically a 40-period exponential average minus a 105-period exponential average).  In Figure 2 we see a weekly chart of ticker UUP with this MACD indicator in the top clip and a weekly chart of ticker RJI in the bottom clip.

Figure 2 – UUP with Jay’s MACD Indicator versus ticker RJI (courtesy AIQ TradingExpert )

Interpretation is simple:

*when the MACD indicator applied to UUP is declining, this is bullish for RJI

*when the MACD indicator applied to UUP is rising, this is bearish for RJI.

Figure 3 displays the growth of equity achieved by holding RJI (using weekly closing price data) when the UUP MACD Indicator is declining (i.e., RJI is bullish blue line in Figure 3) versus when the UUP MACD Indicator is rising (i.e., RJI is bearish orange line in Figure 3).

Figure 3 – RJI cumulative performance based on whether MACD indicator for ticker UUP is falling (bullish for RJI) of rising (bearish for RJI)

In sum:

*RJI gained +45.8% when the UUP MACD indicator was falling

*RJI lost -72.3% when the UUP MACD indicator was rising

The bottom line is that RJI rarely makes much upside headway when the UUP MACD Indicator is rising (i.e., is bearish for RJI).

Summary

Commodities as an asset class are extremely undervalued on a historical basis compared to stocks.  However, the important thing to remember is that “the worm is unlikely to turn” as long as the U.S. Dollar remains strong.

So, keep an eye on the U.S. Dollar for signs of weakness.  That will be your sign that the time may be coming for commodities.

FYI: Code for Jay’s MACD4010501 Indicator (AIQ TradingExpert EDS)

The indicator is essentially a 40-period exponential average minus a 105-period exponential average as shown below:

Define ss3 40.

Define L3 105.

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

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

MACD4010501 is ShortMACDMA3-LongMACDMA3.

Jay Kaeppel

Disclaimer: The information, opinions and ideas expressed herein are for informational and educational purposes only and are based on research conducted and presented solely by the author.  The information presented does not represent the views of the author only and does not constitute a complete description of any investment service.  In addition, nothing presented herein should be construed as investment advice, as an advertisement or offering of investment advisory services, or as an offer to sell or a solicitation to buy any security.  The data presented herein were obtained from various third-party sources.  While the data is believed 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.  International investments are subject to additional risks such as currency fluctuations, political instability and the potential for illiquid markets.  Past performance is no guarantee of future results.  There is risk of loss in all trading.  Back tested performance does not represent actual performance and should not be interpreted as an indication of such performance.  Also, back tested performance results have certain inherent limitations and differs from actual performance because it is achieved with the benefit of hindsight.

What the Hal?

Some industries are cyclical in nature.  And there is not a darned thing you – or they – can do about it.  Within those industries there are individual companies that are “leaders”, i.e., well run companies that tend to out earn other companies in that given industry and whose stock tends to outperform other companies in that industry.

Unfortunately for them, even they cannot avoid the cyclical nature of the business they are in.  Take Halliburton (ticker HAL) for example.  Halliburton is one of the world’s largest providers of products and services to the energy industry.  And they do a good job of it. Which is nice.  It does not however, release them from the binds of being a leader in a cyclical industry.

A Turning Point at Hand?

1

A quick glance at Figure 1 clearly illustrates the boom/bust nature of the performance of HAL stock.Figure 1 – Halliburton (HAL) (Courtesy AIQ TradingExpert)

Which raises an interesting question: is there a way to time any of these massive swings?  Well here is where things get a little murky.  If you are talking about “picking timing tops and bottoms with uncanny accuracy”, well, while there are plenty of ads out there claiming to be able to do just that, in reality that is not really “a thing”.  Still, there may be a way to highlight a point in time where:

*Things are really over done to the downside, and

*For a person who is not going to get crazy and “bet the ranch”, and who understands how a stop-loss order works and is willing to use one…

..there is at least one interesting possibility.

It’s involves a little-known indicator that is based on a more well-known another indicator that was developed by legendary trader Larry Williams roughly 15 or more years ago.  William’s indicator is referred to as “VixFix” and attempts to replicate a VIX-like indicator for any market.  The formula is pretty simple, as follows  (the code is from AIQ Expert Design Studio):

*hivalclose is hival([close],22).

*vixfix is (((hivalclose-[low])/hivalclose)*100)+50.

In English, it is the highest close in the last 22-periods minus the current period low, which is then divided by the highest close in the last 22-periods. The result then gets multiplied by 100 and 50 is added.

Figure 2 displays a monthly chart of HAL with William’s VixFix in the lower clip.  In a nutshell, when price declines VixFix rises and vice versa.

2

Figure 2 – HAL Monthly with William’s VixFix (Courtesy AIQ TradingExpert)

Now let’s go one more step as follows by creating an exponentially smoothed version as follows (the code is from AIQ Expert Design Studio):

*hivalclose is hival([close],22).

*vixfix is (((hivalclose-[low])/hivalclose)*100)+50. <<<Vixfix from above

*vixfixaverage is Expavg(vixfix,3).  <<<3-period exponential MA of Vixfix

*Vixfixaverageave is Expavg(vixfixaverage,7). <<<7-period exp. MA

I refer to this as Vixfixaverageave (Note to myself: get a better name) because it essentially takes an average of an average.  In English (OK, sort of), first Vixfix is calculated, then a 3-period exponential average of Vixfix is calculated (vixfixaverage) and then a 7-period exponential average of vixfixaverage is calculated to arrive at Vixfixaverageave (got that?)

3

Anyway, this indicator appears on the monthly chart for HAL that appears in Figure 3.Figure 3 – HAL with Vixaverageave (Courtesy AIQ TradingExpert)

So here is the idea:

*When Vixfixaverageave for HAL exceeds 96 it is time to start looking for a buying opportunity.

OK, that last sentence is not nearly as satisfying as one that reads “the instant the indicator reaches 96 it is an automatic buy signal and you can’t lose”.  But it is more accurate.  Previous instances of a 96+ reading for Vixfixaverageave for HAL appear in Figure 4.

4

Figure 4 – HAL with previous “buy zone” readings from Vixfixaverageave (Courtesy  AIQ TradingExpert)

Note that in previous instances, the actual bottom in price action occurred somewhere between the time the indicator first broke above 96 and the time the indicator topped out.  So, to reiterate, Vixfixaverageave is NOT a “precision timing tool”, per se.  But it may be useful in highlighting extremes.

This is potentially relevant because with one week left in May, the monthly Vixfixaverageave value is presently above 96.  This is NOT a “call to action”.  If price rallies in the next week Vixfixaverageave may still drop back below 96 by month-end.  Likewise, even if it is above 96 at the end of May – as discussed above and as highlighted in Figure 4, when the actual bottom might occur is impossible to know.

5

Let me be clear: this article is NOT purporting to say that now is the time to buy HAL.  Figure 5 displays the largest gain, the largest drawdown and the 12-month gain or loss following months when Vixfixaverageave for HAL first topped 96.  As you can see there is alot of variation and volatility.  

Figure 5 – Previous 1st reading above 96 for HAL Vixfixaverageave

So HAL may be months and/or many % points away from an actual bottom.  But the main point is that the current action of Vixfixaverageave suggests that now is the time to start paying attention.

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.

All Eyes on Key Bellwether Support Levels

First the reality.  Nobody knows what the market is going to do.  Yes, I am aware that there are roughly a bazillion people out there “prognosticating” (myself included) about the stock market.  And yes, if one makes enough “predictions”, the law of averages dictates that one will be correct a certain percentage of the time.

Still, the market does offer clues.  Sometimes those clues turn out to be false leads.  But sometimes they do offer important information.  For example, Figure 1 displays four major market indexes.  As you can see, in the Aug-Sep-Oct time frame all four of these averages “broke out” to new all-time highs (i.e., The Good News) and then broke back down below the previous resistance line drawn on each chart (i.e., The Bad News).

1

Figure 1 – Four major indexes breakout then fail (Courtesy AIQ TradingExpert)

False breakouts happen all the time.  And the reality here is that sometimes they mean something and sometimes they don’t.  But when all four major average do the same thing, a warning sign has been issued to those who are interested in seeing it.  That’s why it can be useful to seek “confirmation”.  For my purposes I look to what I refer to as my 4 “bellwethers”, which are:

SMH – Semiconductors

TRAN – Dow Transportation Average

ZIV – Velocity Shares Inverse VIX Index

BID – Sotheby Holdings

These tickers appear in Figure 2 (click to enlarge).

2

Figure 2 – Jay’s Market Bellwethers (Courtesy AIQ TradingExpert)

While the major indexes were testing new highs in Aug/Sep and then breaking down in October:

SMH – Never really came close to breaking out above its March high

TRAN – Followed the major indexes by hitting new highs in Aug/SP and then breaking down in October

ZIV – Never came anywhere close to its Jan-2018 high

BID – Broke to a new high in Jun/Jul, then failed badly.

In a nutshell, the failed major index breakouts were accompanied by absolutely no positive signs from the 4 bellwethers. So, the warning signs were there if one wished to see them.

So where are the bellwethers now?  Another close look at Figure 2 reveals that:

SMH – the key support level at 80.92

TRAN – the key level for the Dow Transports is 8744.36

ZIV – the key support level is 60.60

BID – a potential support level is 32.95 (the Apr 2013 low)

Summary

*Given the washed-out/oversold level that many indicators and sentiment surveys have reached…

*…Combined with the fact that we are in the seasonally favorable pre-election year (no down pre-election years since the 1930’s)

*There is a chance that 2019 could be surprisingly bullish, and shell-shocked investors should not stick their heads in the sand to the possibility.

At the same time:

*Based solely on trend-following indicators ALL of the major market indexes are technically in confirmed bear markets.  As a result, there is absolutely nothing wrong with having some portion of one’s capital in defensive positions at the moment (30% cash or short-term bonds?).

*Keep a close eye on January performance.  A bullish January would be a positive sign just as a negative January could – in this case – signal a continued market decline.

*Keep a close eye on the 4 Bellwethers relative to their respective support levels.

In a nutshell:

*Up January + Bellwethers holding above support = GOOD

*Down January + Bellwether breaking down below support = BAD

Those are all the “clues” I can offer at the moment.

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.

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.

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.

Four Things to Watch for Warning Signs

First things first: I am primarily a trend-follower (this is based on, a) the relative long-term benefits of following trends and b) my lack of ability to actually “predict” anything – but I digress).
As a trend-follower I love the fact that the stock market has been trending higher and the fact that there is so much “angst” regarding the “inevitable top.”  Still, like a lot of investors I try to spot “early warning signs” whenever possible.  Here are the four “things” I am following now for signs of trouble.
Fidelity Select Electronics
In Figure 1 you see, a) the blow-off top of 1999-2000 and b) today.  Are the two the same?  I guess only time will tell.  But the point is, I can’t help but think that if and when the bloom comes off of the electronics boom, overall trouble will follow.  Here is hoping that I am not as correct here as I was here.
1
Figure 1 – Ticker FSELX (Courtesy AIQ TradingExpert)
Just asking.
Transportation Index
As you can see in Figure 2, the Dow Transports has a history of making double tops which is followed by trouble in the broader market.  Are we in the process of building another double top?  And will trouble follow if we are?  Dunno, hence the reason it is on my “Watch List” rather than on my “OH MY GOD SELL EVERYTHING NOW!!!!! List”.
2
Figure 2 – Dow Transportation Index (Courtesy AIQ TradingExpert)
I guess we’ll just have to wait and see.
Ticker XIV
Ticker XIV is an ETF that is designed to track inverse the VIX Index. As a refresher, the VIX Index tends to “spike” higher when stocks fall sharply and to decline when stocks are rising and/or relatively quiet.  To put it in simpler terms, in a bull market ticker XIV will rise.  As you can see in Figure 3 one might argue that XIV has gone “parabolic”.  This is a potential warning sign (assuming you agree that the move is parabolic) as a parabolic price move for just about anything is almost invariably followed by, well, let’s just say, “not so pretty”.
3
Figure 3 – Ticker XIV (Courtesy AIQ TradingExpert)
Let’s hope not.  Because if it does qualify as  parabolic that’s a very bad sign.
Ticker BID
This one may or may not be relevant but for what it is worth, Sotheby’s (ticker BID) has on several occasions served as something of a “leading indicator” at stock market tops (for the record it has also given some false signals, so this one is more for perspective purposes rather than actual trading purposes). Still, if this one tops out in conjunction with any or all of the above, it would likely serve as a useful warning sign.
4
Figure 4 – Ticker BID (Courtesy AIQ TradingExpert)
Summary
There is no “urgent action” to be taken based on any of this.  Bottom line: Nothing in this article should trigger you to run for the exits.
Still, it might be wise to at least take a look around and “locate the exit nearest you.”
You know, just in case.
Chief Market Analyst at JayOnTheMarkets.com and AIQ TradingExpert Pro (Courtesy AIQ TradingExpert) client. http://jayonthemarkets.com/
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.

Volume-Weighted Moving Average Breakouts

The AIQ code based on Ken Calhoun’s article in the February 2017 issue of Technical Analysis ofSTOCKS & COMMODITIES, “Volume-Weighted Moving Average Breakouts,” can be found at http://aiqsystems.com/Volume-Weighted-Moving-Average-Breakouts.EDS 
 
Please note that I tested the author’s system using the NASDAQ 100 list of stocks on daily bars rather than intraday bars from 12/31/2008 thru 2/10/2017. Figure 7 shows the resulting equity curve trading the author’s system with the cross-down exit. Figure 8 shows the ASA report for this test. The annualized return showed about a 17% return with a maximum drawdown of 19%.
Sample Chart

FIGURE 7: AIQ. Here are sample test results from the AIQ Portfolio Manager taking three signals per day and 10 concurrent positions maximum run on NASDAQ 100 stocks (daily bar data) over the period 12/31/08 to 2/10/07.
Sample Chart

FIGURE 8: AIQ. This shows the ASA report for the system, which shows the test metrics and settings.
The code and EDS file can be downloaded from http://aiqsystems.com/Volume-Weighted-Moving-Average-Breakouts.EDS , and is also shown below.
!Volume-Weighted Moving Average Breakouts
!Author: Ken Calhoun, TASC Apr 2017
!Coded by: Richard Denning 2/11/17
!www.TradersEdgeSystems.com

!INPUTS:
smaLen is 70.
vwmaLen is 50.

SMA is simpleavg([close],smaLen).
VWMA is sum([close]*[volume],vwmaLen)/sum([volume],vwmaLen).
HasData if hasdatafor(max(smaLen,vwmaLen)+10)>max(smaLen,vwmaLen).
Buy if SMA < VWMA and valrule(SMA > VWMA,1) and HasData.
Sell if SMA > VWMA.

rsVWMA is VWMA / valresult(VWMA,vwmaLen)-1.
rsSMA is SMA / valresult(SMA,smaLen)-1.
—Richard Denning
info@TradersEdgeSystems.com
for AIQ Systems

It’s all relative you see

The markets have been shall we say been less than inspiring recently. Brexit came and went with a brief hiccup in the action and only in the last week or so has the volatility picked up. The Dow as you can see in this weekly chart is back the same level as December 2014

 

 

The VXX shows clearly the decline in volatility since the high back in 2011

 

The summer doldrums may be over, but during periods when the market is range bound, segments within the market are often performing very well or very poorly. One AIQ Report that can show the strength within segments is the Relative Strength Strong – Short Term. This report shows stocks in 3 month trend up and is a great report for those who trade with ‘the trend is your friend’. Here is Friday 9-16-2016 report. The report is ranked by the stocks with the best trend.

 

 

I highlighted 6 stocks in the top of this report. All have good trends in place, and all in the Oil and Exploration S&P 500 group. The group has performed quite well recently. The top 2 OILEXPO stocks CHK and DVN have both had a small pullback to their uptrend line. We’ll see how they do this week.

 

The World is Your Oyster – 4 Days a Month

Some things are just plain hard to explain.  I did the following test using all 17 of the iShares single country funds that started trading 1996:
I tested the performance of each single country ETF on each specific trading day of the month (i.e., the 1st trading day of any month is TDM 1, the next day is TDM 2, etc.)
I also examined the last 7 trading days of the month counting backwards (i.e., the last trading day of the month is TDM -1, the day before that is TDM -2, etc.)
The basic idea was to see if there were any consistently favorable or unfavorable days of the month.  I wasn’t necessarily expecting much given that the stock markets of each of 17 different countries could  rightly be expected to “walk to the beat of their own drum”, given that the fundamentals underlying the stock market in any given country may be unique from that of other countries.
Or maybe not so much.
For what it is worth, the results from 3/25/1996 through 6/20/2016 appear in Figure 1.
(click to enlarge)
1
Figure 1 – Trading Day of Month Results for 17 iShares single country ETFs; 3/25/96 through 6/20/16
Each column displays the cumulative % return for each individual single country ETF if we held a long position in that ETF on only that particular trading day of the month.
As you can see – and what are the odds of this, I am not even sure how to calculate that – there are 4 days (highlighted in green in Figure 1) that were uniformly “favorable”, i.e., all 17 ETFs showed a net gain on that particular trading day of the month (for the record, there are three trading days – TDM #7 and TDMs -7 and -6 – during which all  17 ETFs showed a net loss (highlighted in yellow in Figure 1.  Go figure).
Using as a Strategy
I am not recommended the following strategy, but wanted to test it out for arguments sake.  Figure 2 displays the results of the following test:
*Buy and hold an equally weighted position in all 17 single country ETFs only on TDM 1, 9, 13 and -4 (i.e., if Friday is the last trading day of the month then – barring a holiday – TDM -4 would be the Tuesday of that week), earn annualized interest of 1% per month while out of ETFs.
*Versus simply buying and holding all 17 single country ETFs from 3/25/1996 through 6/20/2016.
2
Figure 2 – Cumulative % return for holding all 17 single country ETF only 4 days a month (blue) versus buying and holding (red); 3/25/96 through 6/20/16
Summary
Yes, this model can probably be accused of being “curve fit”.  Also, does anybody really want to trade in and out of 17 single country ETFs 4 times a month?  I don’t know.  But the bigger points are:
*Why would all 17 single country ETFs all be up (or down) on a particular day of the month over a 20 year period?
*If I were considering buying and holding a cross section of individual country ETF’s, um, well, I can’t help but think that I would be haunted by the thought that there might be a better way.
Jay Kaeppel
Chief Market Analyst at JayOnTheMarkets.com and AIQ TradingExpert Pro (http://www.aiqsystems.com) client

Classic Flag Breakouts on CVX, NFG, TOT

Our Chart pattern Recognition tool had a wealth of gasoline related stocks have breakouts yesterday. The classic flag breakout on good volume could be seen on CVX, NFG and TOT.

Quick reminder on what a flag pattern is.

The flag pattern is considered a continuation pattern after a consolidation period. The flag is a rectangular shape, similar to  the pennant, but the pennant looks more like a triangle.

Usually there’s a strong price movement followed by sideways price movement which is the flag. The pattern is complete when prices breakout in the same direction as the initial price movement. The following move will be in the same direction as the prior sharp move. The move prior to the flag is called the pole.

The flag pattern forms a rectangle with two parallel trendlines that act as support and resistance for the price until the price breaks out. Usually the flag will slope in the opposite direction to the trend.

The buy or sell signal occurs when the price breaks through the support or resistance level, with the trend continuing in the same direction as the pole. The breakthrough should occur on heavier volume.

I’ve put all three charts together and you can clearly see the pole, flag and breakout. As noted above the volume on the breakout on TOT was reasonable. The Quality of the pattern was also considered high.

Incidentally the volume on NFG and CVX was not as significant.

The entire list of stocks that generated completed flags in our nightly report on 5/25/16 is below.

and check out this new video that shows how we automate this reporting every night using the Chart Pattern recognition plug-in for TradingExpert.