Category Archives: technical indicator

An Obscure but Potentially Useful Oversold Indicator

Trend-following is essentially a “tried and true’ approach to investing.  But overbought/oversold (i.e., attempting to buy low/sell high) – that’s where the “excitement” is.  Of course, when it comes to trading and investing, “excitement” can be highly overrated.  Nevertheless, in this piece I want to talk about a relatively obscure indicator that may be useful in identifying vastly oversold situations.

EDITORS NOTE: The AIQ EDS file for Jay Kaeppel’s indicator is available to download at

The VixRSI14 Indicator

Part of the reason this indicator is obscure is because I think I “invented” it – but only by mashing together an indicator from Larry Williams and an indicator from Welles Wilder.  The first part is the standard Welles Wilder 14-day Relative Strength Index, more commonly referred to as “RSI”.

The 2nd part of VixRSI14 is an indicator created by famed trader Larry Williams which he dubbed “VixFix”.  This indicator is an effort to create a “Vix Index-like” indicator for any security.

AIQ TradingExpert code for these indicators appears at the end of the article.

A Few Notes

*For the record, VixRSI14 is calculated by taking a 3-day exponential average of VixFix and dividing that by a 3-day exponential average of RSI14 (are we having fun yet?).  Please see code at the end of the article.

*I prefer to use VixRSI14 using weekly data rather than daily data

*(Unfortunately) There are no “magic numbers” that indicate that a completely risk-free, you can’t lose, just buy now and watch the money roll in” buying opportunity is at hand (Disclaimer: If there was, I would probably just keep it to myself and not bother writing the article – sorry, it’s just my nature).  That being said, a decent “rule of thumb” is to look for a reading above 3.5 followed by a downside reversal.

(Click any chart below to enlarge)

With those thoughts in mind, Figure 1 displays a weekly chart of Wynn Resorts (WYNN) with the two indicators plotted separately below the bar chart.1

Figure 1 – WYNN with William’s VixFix and Wilder’s RSI 14-day (Courtesy AIQ TradingExpert)

Note that as price declines, VixFix tends to rise and RSI14 tends to fall.  VIXRSI14 essentially identifies “extremes” in the difference between these two.  Figure 2 displays WYNN with VixRSI14 plotted below the bar chart.

2

Figure 2 – WYNN with VixRSI14 (Courtesy AIQ TradingExpert)

More “examples” appear in Figures 3 through 8 below.

3

Figure 3 – AMD (Courtesy AIQ TradingExpert)

4

Figure 4 – BAC (Courtesy AIQ TradingExpert)

5

Figure 5 – DISH (Courtesy AIQ TradingExpert)

6

Figure 6 – GRMN (Courtesy AIQ TradingExpert)

7

Figure 7 – NTAP (Courtesy AIQ TradingExpert)

8

Figure 8 – YHOO (Courtesy AIQ TradingExpert)

Summary

As always, I merely present “ideas” here at JOTM.  So, do not assume from the charts above that you have found the “keys to the kingdom”.  But if used in conjunction with other confirming indicators – and remembering to employ some sort of risk control for those instances when a stock price decline fails to arrest itself even after VixRSI4 peaks above 3.5 – VixRSI14 may hold some value.

Indicator Code

EDITORS NOTE: The AIQ EDS file for Jay Kaeppel’s indicator is available to download at

Below is the code for VixFix, RSI14 and VixRSI14 from AIQ Expert Design Studio.

!#######################################

!VixFix indicator code

hivalclose is hival([close],22).

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

!#######################################

!#######################################

!RSI14 code

Define days14 27.

U14 is [close]-val([close],1).

D14 is val([close],1)-[close].

AvgU14 is ExpAvg(iff(U14>0,U14,0),days14).

AvgD14 is ExpAvg(iff(D14>=0,D14,0),days14).

RSI14 is 100-(100/(1+(AvgU14/AvgD14))).

!#######################################

!#######################################

!VixRSI14 code

VixRSI14 is expavg(vixfix,3)/expavg(RSI14,3).

!#######################################

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.

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.

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.

Attention Wild-Eyed Speculators

Most people are familiar with ADHD, manic-depressive disorder, depression and schizophrenia.  But one common affliction within our trading community that gets almost no attention is WESS.  That stands for “Wild-Eyed Speculation Syndrome”.  And it’s more common than you think (“Hi, my name is Jay”).

The exact symptoms vary, but generally speaking they go something like this:

*A person gets up in the morning with a hankering to make a trade

*Said person then finds “some reason” to make some trade in something

*If the person happens to make money on that trade then the affliction is reinforced by virtue of IGTS (“I’ve Got the Touch Syndrome”, which is one of the occasional side effects of WESS)

*If the person loses money on the trade the side effects can vary but may include: angry outbursts, kicking oneself in the head (typically figuratively), vows to either stop the behavior or at least do it better, and so on.

*The most common side effect of WESS is a declining trading account balance (which not coincidentally is how this disorder is most commonly diagnosed).

For those suffering from WESS – with the caveat/disclosure that I am not a medical professional (although I have found that ibuprofen really clears up a lot of stuff, but I digress) – I am here to help.

If you find yourself suffering from Symptom #1 above:

The most effective step is to go back to bed until the urge passes.  If this doesn’t work or is not possible (for instance, if you have one of those pesky “jobs” – you know, that 8-hour a day activity that gets in the way of your trading), repeat these two mantras as many times as necessary:

Mantra 1: “I must employ some reasonably objective, repeatable criteria to find a trade with some actual potential”

Mantra 2: “I will risk no more than 2% of my trading capital” on any WESS induced trade (and just as importantly, you must fend off the voice on the other shoulder shouting “But this is the BIG ONE!!”)

Repeat these mantras as many times as necessary to avoid betting the ranch on some random idea that you “read about on the internet, so it must be true.”

Regarding Mantra 1

There are a million and one ways to find a trade.  There is no one best way.  But just to give you the idea I will mention one way and highlight a current setup. IMPORTANT: That being said, and as always, I DO NOT make recommendations on this blog.  The particular setup I will highlight may work out beautifully, or it may be a complete bust.  So DO NOT rush out and make a trade based on this just because you read it – you know – on the internet.

The Divergence

Lots of trades get made based on “divergence”.  In this case we are talking about the divergence between price and a given indicator – or even better, series of indicators.  There is nothing magic about divergence, and like a lot of things, sometimes it works and sometimes it doesn’t.  But the reason it is a viable consideration is that when an indicator flashes a bullish divergence versus price it alerts us to a potential – nothing more, nothing less – shift in momentum.

Let’s look at ticker GDX – an ETF that tracks an index of gold mining stocks.  In Figure1 1 through 4 below we see:

*GDX price making a lower low

*A given indicator NOT confirming that new low (i.e., a positive divergence)

1Figure 1 – GDX and MACD (Courtesy AIQ TradingExpert)

2Figure 2 – GDX and 3-day RSI (Courtesy AIQ TradingExpert)

3Figure 3 – GDX and TRIX (Courtesy AIQ TradingExpert)

4Figure 4 – GDX and William’s Ultimate Oscillator (Courtesy AIQ TradingExpert)

So, do the divergences that appear in Figures 1 through 4 justify a trade?  Well, here is where the aforementioned affliction comes into play.

Average Trader: “Maybe, maybe not.  In either case I am not entirely sure that trying to pick a bottom in gold stocks based solely on indicator divergences is a good idea”

WESS Sufferer: “Absofreakinglutely!!  Let’s do this!!”

You see the problem.

So, let’s assume that a WESS Sufferer likes what he or she sees in Figures 1 through 4.  The good news is that we have met the minimum criteria for Mantra #1 above – we have employed some reasonably objective, repeatable criteria (i.e., a bullish divergence between price and a number of variable indicators) to spot a potential opportunity.

Now we must follow Mantra #2 of risking no more than 2% of my trading capital.  Let’s assume our WESS Sufferer has a $25,000 trading account.  So he or she can risk a maximum of $500 ($25,000 x 2%).

In Figure 5 we see a potential support area for GDX at around $16.40 a share.

5Figure 5 – Ticker GDX with support at $16.40 (Courtesy AIQ TradingExpert)

So, one possibility would be to buy 300 shares of GDX at $17.84 and place a stop loss order below the “line in the sand” at say $16.34 a share.  So if the stop is hit, the trade would lose -$450, or -1.8% of our trading capital (17.84 – 16.34 = -1.50 x 300 shares = -$450).

Summary

Does any of the above fit in the category of “A Good Idea”.  That’s the thing about trading – and most things in life for that matter – it’s all in the eye of the beholder.  Remember, the above is NOT a “recommendation”, only an “example.”

The real key thing to note is that we went from being just a random WESS Sufferer to a WESS Sufferer with a Plan – one that has something other than just an “urge” to find a trade, AND (most importantly) a mechanism for limiting any damage that might be done if things don’t pan out.

And if that doesn’t work, well, there’s always ibuprofen.

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 Technical Method For Rating Stocks

The AIQ code based on Markos Katsanos’ article in this issue, “A Technical Method For Rating Stocks,” is shown below.
Synopsis from Stocks & Commodities June 2018
I’s it possible to create a stock rating system using multiple indicators or other technical criteria? If so, how does it compare with analyst ratings? Investors around the world move billions of dollars every day on advice from Wall Street research analysts. Most retail investors do not have the time or can’t be bothered to read the full stock report and rely solely on the bottom line: the stock rating. They believe these ratings are reliable and base their investment decisions at least partly on the analyst buy/sell rating. But how reliable are those buy/sell ratings? In this article I will present a technical stock rating system based on five technical criteria and indicators, backtest it, and compare its performance to analyst ratings.
!A TECHNICAL METHOD FOR RATING STOCKS
!Author: Markos Katsanos, TASC June 2018
!Coded by: Richard Denning, 4/18/18
!www.TradersEdgeSystems.com

!INPUTS:
  MAP is 63. 
  STIFFMAX is 7. 
  VFIPeriod is 130. 
  MASPY is 100. 
  MADL is 100.
  SCORECRIT is 5.
  W1 is 1.
  W2 is 1.
  W3 is 1.
  W4 is 1.
  W5 is 2.
 
!VFI FORMULA: 
  COEF is 0.2.
  VCOEF is 2.5.
  Avg is ([high]+[low]+[close])/3.
  inter is ln( Avg ) - ln( Valresult( Avg, 1 ) ). 
  vinter is sqrt(variance(inter, 30 )).
  cutoff is Coef * Vinter * [Close].
  vave is Valresult(simpleavg([volume], VFIPeriod ), 1 ).
  vmax is Vave * Vcoef.
  vc is Min( [volume], VMax ).
  mf is Avg - Valresult( Avg, 1 ).
  vcp is iff(MF > Cutoff,VC,iff(MF < -Cutoff,-VC,0)).
  vfitemp is Sum(VCP , VFIPeriod ) / Vave.
  vfi is expavg(VFItemp, 3 ).

!STIFFNESS 
  ma100 is Avg. 
  CLMA if [close] < MA100.
  STIFFNESS is countof(CLMA,MAP).

!CONDITIONS:
 ! MONEY FLOW:
   COND1 is iff(VFI>0,1,0). 
 !SIMPLEAVG:
    SMA is simpleavg([close],MADL).                              
    COND2 is iff([close]>SMA,1,0).  
 !SIMPLEAVG DIRECTION:                       
    COND3 is iff(SMA>valresult(SMA,4),1,0).  
!STIFFNESS:                          
    COND4 is iff(STIFFNESS<= STIFFMAX,1,0).  
!MARKET DIRECTION:
    SPY is TickerUDF("SPY",[close]).
    COND5 is iff(EXPAVG(SPY,MASPY)>= 
 valresult(EXPAVG(SPY,MASPY),2),1,0).            

SCORE is  W1*COND1+W2*COND2+W3*COND3+
   W4*COND4+W5*COND5.

 buy if Score>=SCORECRIT and hasdatafor(300)>=268. 
Figure 11 shows the summary results of a backtest using NASDAQ 100 stocks during a generally bullish period from April 2009 to April 2018. Figure 12 shows the backtest using the same list of NASDAQ 100 stocks during a period that had two bear markets (April 1999 to April 2009). The average results are similar except that there are fewer trades during the period that contained the two bear markets. Both backtests use a fixed 21-bar exit.
Sample Chart

FIGURE 11: AIQ, BULL MARKET. Here are the summary results of a backtest using NASDAQ 100 stocks during a generally bullish period from April 2009 to April 2018.
Sample Chart

FIGURE 12: AIQ, BEAR MARKET. Here are the summary results of a backtest using NASDAQ 100 stocks during a period from April 1999 to April 2009 that contained two bear markets.
—Richard Denning info@TradersEdgeSystems.com for AIQ Systems

World Met Resistance

In this article titled “World, Meet Resistance” – dated 12/21/2017 – I noted the fact that many single country ETFs and regional indexes were closing in on a serious level of potential resistance.  I also laid out three potential scenarios.  So what happened?  A fourth scenario not among the three I wrote about (Which really pisses me off.  But never mind about that right now).

As we will see in a moment what happened was:

*(Pretty much) Everything broke out above significant resistance

*Everything then reversed back below significant resistance.

World Markets in Motion

Figure 1 displays the index I follow which includes 33 single-country ETFs. As you can see, in January it broke out sharply above multi-year resistance. Just when it looked like the index was going to challenge the all-time high the markets reversed and then plunged back below the recently pierced resistance level.

(click to enlarge)1

Figure 1 – Jay’s World Index broke out in January, fell back  below resistance in February (Courtesy AIQ TradingExpert)

The same scenario holds true for the four regional indexes I follow – The Americas, Europe, Asia/Pacific and the Middle East – as seen in Figure 2.

(click to enlarge)2

Figure 2 – Jay’s Regional Index all broke above resistance, then failed (Courtesy  AIQ TradingExpert)

So where to from here?  Well I could lay out a list of potential scenarios. Of course if history is a guide what will follow will be a scenario I did not include (Which really pisses me off.  But never mind about that right now).

So I will simply make a subjective observation based on many years of observation.  The world markets may turn the tide again and propel themselves back to the upside.  But historically, when a stock, commodity or index tries to pierce a significant resistance level and then fails to follow through, it typically takes some time to rebuild a base before another retest of that resistance level unfolds.

Here’s hoping I’m wrong

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.

The VixRSI14 Indicator – Part 1

While the bulk of the financial world focuses most of its attention on whether or not Bitcoin will turn to sh, er, something that rhymes with Bitcoin, a lot of “old timers” continue on with trying to look at markets in a more traditional way. Unfortunately, some people who try to look at markets in a more traditional way also spend an inordinate amount of time “dividing one number by another” thinking there is some purpose to it (“Hi. My name is Jay”)

The only good news is that every once in awhile something useful – or at least potentially useful (since no single calculation guarantees profitability which also involves other “minor” issues such as which securities to trade, allocation size, entry method, profit taking criteria, stop loss triggers and so on and so forth). A number of years ago I stumbled upon a calculation that I ultimately refer to as VixRSI (for reasons that will become fairly obvious soon).  More specifically I have a few different versions but one I like is call used VixRSI14.

First the Good News: In this and some future articles I will detail how I apply VixRSI14 to monthly, weekly and daily price charts.

Now the Bad News: Nothing that I will write in any of those articles will detail a “simple automated system that generates you can’t lose trading signals guaranteed to make you rich beyond the dreams of avarice.”  Sorry about that. But I thought you should know.

The truth is that the indicator generates signals – and yes, a certain percentage of the time those signals aren’t that great.  And even on occasions when the signals are decent all of the factors I mentioned above (securities traded, capital allocation, etc.) still hold the key to turning a “signal” into a “profit”.

VixRSI14

VixRSI14 is calculated by combining Larry William’s “VixFix” indicator with the standard old 14-day RSI from Welles Wilder. I’ve decided to put the calculations at the end of the article in order to avoid scaring anyone off.

For now let’s look at what to look for on a monthly price chart.

VixRSI14 on a Monthly Chart

OK, true confession time: there is (at least as far as I can tell) no “one best way” to use VixRSI14 on a monthly chart.  So I will simply show you “One way.”

*A “buy alert” is triggered when the monthly value for VixRSI14 first rises to 3.5 or higher and then drops back to 3.0 or below

*Before going on please note that there is nothing “magic” about 3.5 or 3.  Different values can be used and will generate varying results.

*Also, some may prefer to simply look for a drop from above 3 to below 3 without requiring a move above 3.5

*Finally please note the use of the phrase “buy alert” and the lack of the phrase “BUY AS MUCH AS YOU CAN RIGHT THIS VERY MINUTE!!!!”

Figures 1 through 4 show several different Dow30 stocks “through the years.

1

Figure 1 – Ticker AXP (Courtesy AIQ TradingExpert)

2

Figure 2 – Ticker BA (Courtesy AIQ TradingExpert)

3

Figure 3 – Ticker HPQ (Courtesy AIQ TradingExpert)

4

Figure 4 – Ticker IBM (Courtesy AIQ TradingExpert)

Summary

Buy alerts on monthly charts using the criteria I described are obviously very rare.  In fact many securities never see the VixRSI14 rise high enough to trigger an alert.  Likewise, not every 3.5 then 3 event for every stock will work out as well as those depicted in Figures 1 through 4.

Still, remember that I am just presenting an “idea” and not a finished product.

Code:

William’s VixFix is simply the 22-day high price minus today’s low price divided by the 22-day high price (I then multiply by 100 and then add 50).  That may sound complicated but it is not.

The code for AIQ TradingExpert appears below.

########## VixFix Code #############

hivalclose is hival([close],22).

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

###############################

####### 14-period RSI Code ###########

Define periods14 27.

U14 is [close]-val([close],1).

D14 is val([close],1)-[close].

AvgU14 is ExpAvg(iff(U14&gt;0,U14,0),periods14).

AvgD14 is ExpAvg(iff(D14&gt;=0,D14,0),periods14).

RSI14 is 100-(100/(1+(AvgU14/AvgD14))).

###############################

VixRSI14 is then calculated by dividing the 3-period exponential average of VixFix by the 3-period exponential average of RSI14

####### VixRSI14 Code ###########

VixRSI14 is expavg(vixfix,3)/expavg(RSI14,3).

###############################

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.

Weekly and Daily MACD

The AIQ code based on Vitali Apirine’s article in December 2017 issue of Stocks and Commodities magazine, “Weekly & Daily MACD,” is provided below.
The moving average convergence/divergence oscillator (MACD), developed by Gerald Appel, is one of the more popular technical analysis indicators. The MACD is typically used on a single timeframe, but what if we looked at two timeframes on one chart?

Traders can look for relative daily MACD line crossovers, weekly and daily centerline crossovers, and divergences to generate trading signals. 
Figure 5 shows the daily & weekly MACD indicator on a chart of Apple Inc. (AAPL) during 2016 and 2017, when there was a change from a downtrend to an uptrend.
Sample Chart

FIGURE 5: AIQ. Here is an example of the daily & weekly MACD on a chart of AAPL.
The code and EDS file can be downloaded from http://aiqsystems.com/dailyweeklyMACD.EDS, or copied here:
!WEEKLY & DAILY MACD
!Author: Vitali Apirine, TASC Dec 2017
!Coded by: Richard Denning 10/13/17
!www.TradersEdgeSystems.com

!INPUTS:
S is 12.
L is 25.

EMA1 is expavg([Close],S).
EMA2 is expavg([Close],L).
EMA3 is expavg([Close],S*5).
EMA4 is expavg([Close],L*5).
MACD is EMA1 - EMA2.
MACDW is EMA3 - EMA4.
rdMACD is MACD + MACDW.
—Richard Denning
info@TradersEdgeSystems.com
for AIQ Systems

A Simple Indicator for Traders

First the Bad News: There are no “magic bullets” when it comes to trading.  There are people in this industry who have literally tested somewhere in the range of six bazillion “indicators” – give or take (“Hi. My name is Jay”).  Every trend following indicator looks like a gold mine when it latches onto a huge trend and rides it (but not so much when it starts getting whipsawed).  And every overbought/oversold indicator looks like a gift from heaven from time to time when it somehow manages to peak (or valley) and then reverses right at a high (or low).  And then the next time the thing gets oversold the security in question just keeps plunging and the previously “amazingly accurate” indicator just gets more and more oversold.

Bottom line: what I am about to discuss is likely no better or worse than a lot of other indicators.  And it is no holy grail.  Still, I kinda like it – or whatever that is worth.

EDITORS NOTE an AIQ EDS file for this indicator with the 3 step rules outlined can be downloaded from here you will need to copy or save this file into your wintes32/eds strategies folder. Alternatively the code is available at the end of this article for copying and pasting into a new EDS file.

UpDays20

I call this indicator UpDays20 and I stole, er, learned it originally from Tom McClellan of McLellan Financial Publications.  My calculation may be slightly different because I wanted an indicator that can go both positive and negative.  For a given security look at its trading gains and losses over the latest 20 trading days.

UPDays20 = (Total # of Up days over the last 20 trading days) – 10

So if 10 of the last 20 trading days showed a gain then UpDays20 would read exactly 0.

If only 6 of the last 20 trading days showed a gain then UpDays20 would read -4

You get the idea (and proving once again that it “doesn’t have to be rocket science”).  As a “trading method” it is always advised that this indicator – like most all other indicators – NOT be used as a standalone approach to trading.  That being said, the way I follow this indicator is as follows.

Step 1) UpDays20 drops to at least -2

Step 2) UpDays20 rises 2 points from a low

Step 3) The security in question then rises above its high for the previous 2 trading days

It is preferable to follow this setup hen the security in question is above its 200-day moving average, but that is up to the trader to decide (the danger to using this with a security below its 200-day moving average is that it might just be in the middle of a freefall.  The upside is that counter trend rallies can be fast and furious – even if sometimes short-lived).

Again, there is nothing magic about these particular steps.  They are simply designed to do the following:

1) Identify an oversold condition

2) Wait for some of the selling pressure to abate

3) Wait for the security to show some sign of reversing to the upside

Like just about every other indicator/method, sometimes it is uncannily accurate and sometimes it is embarrassingly wrong (hence the reason experienced traders understand that capital allocation and risk management are far more important than the actually method you use to enter trades).

In this previous article (in Figures 3 and 4) I wrote about using this indicator with ticker TLT.  Figure 1 and 2 display the “buy” signals generated using the rules above for tickers IYT and GLD.

1Figure 1 – UpDays20 “Buy” Alerts for ticker IYT (Courtesy AIQ TradingExpert)

2Figure 2 – UpDays20 “Buy” Alerts for ticker GLD (Courtesy AIQ TradingExpert)

Are these signals good or bad?  That is in the eye of the beholder and not for me to say.  One big unanswered question is “when do you exit”?  That is beyond the scope of this “idea” article – however, “sell some at the first good profit and then use a trailing stop” looks like a decent approach to consider) but would have a profound effect on any actual trading results.

Some of the signals displayed in Figures 1 and 2 are obviously great, others are maybe not so hot.  Interestingly, some of the signals in Figure 1 and 2 that don’t look to timely at first blush actually offered a profitable opportunity to a trader who was inclined to take a quick profit. Again, how you allocate capital and when you exit with a profit and when you exit with a loss would likely have as much impact on results as the raw “buy” signals themselves.

Summary

No one should go out and start trying to trade tomorrow based on UpDays20.  No claim is being made that the steps detailed herein will result in profits nor even that this is a good way to trade.

But, hey, it’s one way.

Jay Kaeppel Chief Market Analyst at JayOnTheMarkets.com and AIQ TradingExpert Pro client.

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.

EDITORS NOTE an AIQ EDS file for this indicator with the 3 step rules outlined can be downloaded from here you will need to copy or save this file into your wintes32/eds strategies folder. Alternatively the code is available at the end of this article for copying and pasting into a new EDS file.

! UpDays20 – I call this indicator UpDays20. For a given security look at its trading gains and losses over the latest 20 trading days.

! UPDays20 = (Total # of Up days over the last 20 trading days) – 10

! So if 10 of the last 20 trading days showed a gain then UpDays20 would read exactly 0.

! If only 6 of the last 20 trading days showed a gain then UpDays20 would read -4

Upday if [close]&gt;val([close],1).

totalupdayslast20days is CountOf(upday,20).

updayindicator is totalupdayslast20days – 10.

! How to follow this indicator

! Step 1) UpDays20 drops to at least -2

! Step 2) UpDays20 rises 2 points from a low

! Step 3) The security in question then rises above its high for the previous 2 trading days

UpDays20rises2points if updayindicator&gt;valresult(updayindicator,1) and valresult(updayindicator,1)&gt;valresult(updayindicator,2).

updays20atminus2orlower if valresult(updayindicator,2)&lt;=-2.

closesabovehighof2priordays if [close]&gt;val([high],1) and [close]&gt;val([high],2).

Upsignal if UpDays20rises2points and updays20atminus2orlower and closesabovehighof2priordays.