Showing posts with label scans. Show all posts
Showing posts with label scans. Show all posts

Sunday, January 29, 2017

MDT Cup and Handle Setting Up Long

I've stated several times in the past year that I do not trade based on indicators.  My decisions to enter or exit a trade are made based on a price and volume analysis, and my trading plan requires me to trade in the direction of the overall trend of both the stock and the market.  "The market" in this sense, depends on the stock being considered.  The default chart layout that I use includes a correlation line (which I don't normally show in these articles) between the stock and each of the major indices: S&P 500, S&P 600, S&P 400, NASDAQ Composite, and the Dow Jones Industrial Average.  Whichever index shows the highest correlation value for that stock is the one I use as "The Market" for that stock, and it's the trend the price must follow for me to enter a trade.

In today's article, we will analyze Medtronic, Inc. (NYSE: MDT), a Large Cap Health Care stock that trades on the NYSE.  Based on that, we would expect MDT to correlate to either the Dow Industrials or the S&P 500, wouldn't we?  Well, here are the full set of indicators I use to analyze my stocks, shown for MDT on daily chart.

MDT Daily Chart Indicators
Well, there's a surprise!  MDT, at least for now, correlates best with the NASDAQ Composite, and it has done so since at least late November.  So when we look at market trends, for now we need to look at the NASDAQ Composite index, and possibly the S&P 500 since that is also showing a strong correlation.  The Mid cap, Small cap, and Dow Industrials are pretty much irrelevant in this case.

Now, the reason I mention indicators at all is because I do use them to scan for stocks worth analyzing.  The scan that found MDT, today, was a "MACD ZLR scan."  This scan looks for stocks where the MACD(5,34,5) Line approached the zero line from the top, barely brushed it, and then moved higher.  Since "close is close enough" in trading, I use a range of 2% above and 2% below the zero line to calculate "zero".

For Stockcharts.com users, here is the scan.  You may copy and paste this directly into the Advanced Scan Workbench and modify the basics to meet your own trading preference.

[type = stock] AND [country = US] AND [sma(63,Daily Volume) > 1000000] and [[exchange is NYSE] or [exchange is Nasdaq] or [exchange is Amex]]

and [Close >= 20.00]
and [Close < 100.00]

and [2 days ago macd line(5,34,5) >= [2 days ago max(252, macd line(5,34,5)) - 2 days ago min(252, macd line(5,34,5))] * .02]
and [yesterday's macd line(5,34,5) <= [yesterday's max(252, macd line(5,34,5)) - yesterday's min(252, macd line(5,34,5))] * .02]
and [yesterday's macd line(5,34,5) >= [yesterday's max(252, macd line(5,34,5)) - yesterday's min(252, macd line(5,34,5))] * -.02]
and [today's macd line(5,34,5) >= [today's max(252, macd line(5,34,5)) - today's min(252, macd line(5,34,5))] * .02]

and [
[group is ConsumerStaplesSector]
or [group is CyclicalsSector]
or [group is EnergySector]
or [group is FinancialSector]
or [group is HealthCareSector]
or [group is IndustrialSector]
or [group is MaterialsSector]
or [group is TechnologySector]
or [group is UtilitiesSector]
]
This is for long setups only.  You can use it for short setups by changing the first and last MACD test to be a <= comparison and changing the first and last MACD calculation to be -.02.  The middle two MACD tests remain unchanged.

What this setup does is identify stocks that have shown signs of a resurgence to the uptrend.  I use it to attempt to locate stocks that may be exiting a Wave-2, Wave-4, or Wave-B corrective wave.  Remember, though, that all trades are based on the price and volume action, not the indicators.  They are only used to find stocks that must then be properly analyzed.  

So, after that rather lengthy introduction, let's take a look at MDT.

MDT Daily Chart
The dominant features on the chart start with that significant gap down on 22 November.  From its position at the time, identifying the type of gap would have been problematic.  It's position makes it unlikely it was a breakaway gap since a downtrend was already in progress, although it could qualify as a continuation gap.  Subsequent price action, however, suggests that this was really an exhaustion gap.  The volume pattern around the gap suggest a selling climax, and the downward move met a lot of demand on 3 January with a strong bullish reversal candle.

The post-gap pattern now resembles a cup-and-handle formation.  It's even more pronounced if you draw the cup excluding the three low spikes and stick to the bottoms of the candle bodies.  Now, normally we think of cups-and-handles as appearing at the top of an uptrend and representing a pull-back followed by a resumption of the uptrend.  There's nothing that requires such an entry into the pattern, however, and the general psychology of the market participants creating the pattern remains the same when it represents a reversal off the bottom.  In both cases, we have a pattern high from which there was a significant pull-back. The high was retested - the right rim of the cup - and price showed a weak retreat on declining volume off that retest - the handle. 

In many ways, the handle also resembles a flag or pennant, and it can certainly be traded as such. When the right rim of the cup is relatively steep, as it is with MDT, it can act as a flagpole and provide a price target nearly identical to that of the cup-and-handle price target.

Before we talk about our trade strategy, there are a couple of other chart items we should review.  There's a weak resistance line formed from the last bullish spike before the gap and the last retest of the cup.  That resistance line is where price closed on Friday, constituting a third-touch of the line.  If price retreats from here, that line could gain significance, so we do need to watch behavior early in the week.

Notice that both the RSI and MACD show a bullish divergence.  That's encouraging and suggests a resumption of an uptrend that is still in progress on the weekly and monthly charts.  (I'll post them at the end of this article, but not discuss them due to the growing length of today's review.)  One word of caution, though.  Both the RSI and MACD are momentum indicators. While they measure two different aspects of price, we do need to be careful when using them together since they can give a false appearance of signal strength.  If you trade based on indicators, I recommend using only one momentum indicator along with a volume indicator, a trend indicator, and price action. 

With all this in mind, there are two ways we can trade this stock.  Current price action signals an aggressive long entry on a break above the diagonal resistance line.  Protective stop could be set below the low of Friday's candle, below the low of Thursday's candle, or most conservatively, below the low of the handle.  As each setting increases risk, be sure to adjust position sizing to mitigate that increased risk. 

Using this aggressive entry, the conservative price target is the high of the cup.  It's a high probability target in that it would represent a third test of that high.  For an entry at this point, though, that's really the only safe conclusion we can reach.

The second more conservative approach is to wait for a close above the high of the cup rim.  A protective stop would be just below that support line that also represents the 50% retrace of the gap to low pattern.  The price target, however, is shown above in green, representing a range straddling the 100% retrace of the gap combined with the 61.8% extension of the cup-and-handle formation.  This setup has a higher reward to risk ratio than entering on the handle, and it allows time for the stock to penetrate the resistance at the cup rim.

Depending on market behavior, I'm tempted to play both setups, but that's a decision I'll finalize when I see how the futures are looking before the open Monday and Tuesday.  If there isn't sufficient strength to push the stock quickly from this level to the rim, I'll pass on that trade and watch for a rim break before entering long.  Patience is always a virtue in trading.

Here are the weekly and monthly charts, respectively.  They're included so you can see the additional analysis that setup what we are watching on the daily chart.

Happy Trading.

MDT Weekly Chart

MDT Monthly Chart


Saturday, December 10, 2016

Using a Narrow Range Scan to Find and Possibly Enter Swing Trades

The amount of time a swing trader spends in front of a trading engine entering or managing specific trades is dwarfed by the amount of time that trader spends researching and analyzing trade setups while the market is closed.  Effective swing trading takes a significant amount of time and effort, so any tools we can use to reduce the manual portions of the job are extremely beneficial.

Fortunately, for the 21st century swing trader, there are numerous online sites that assist in scanning for trade candidates.  Some are free (or sort of free) like Finviz.com or Chartmill.com, whereas others such as Stockcharts.com offer subscriptions but far greater scripting flexibility to search for desired trade setups.  Personally, I use all three of the sites I've listed since each has a unique approach and each is capable of identifying stocks that are suitable for the watch list.

What the swing trader learns in their first year or so is that there is no magic setup, nor is there a magic indicator that will guarantee the stock will move in the direction you anticipate.  Some setups and indicators will improve our probability of success, however in the end, it all comes down to our own ability to read the hidden market psychology being revealed by the charts and indicators tightly coupled with our own discipline in managing risk, managing our capital, and determining the entry and exit points that meet our own style and risk tolerance. 

The setups that I trade naturally change as market conditions change.  The market is a very dynamic and moody beast with numerous personalities.  The setups that are working well in this post-election market exuberance period (which, for me, are momentum and breakout plays) will not work well once the market either consolidates or corrects in the post-inauguration period.  We'll need to adjust and determine what strategies to implement when we see the market's mood at that point.

One type of scan I use to identify opportunities in most market conditions is a Narrow Range scan.  The details of the theory behind the narrow range, along with several trading strategies that employ it, are covered in excellent detail in "The Master Swing Trader" by Alan S. Farley. (Farley, A. S. (2001) The Master Swing Trader - Tools and Techniques to Profit from Outstanding Short-Term Trading Opportunities, McGraw-Hill, New York, NY.)

If you use Stockcharts, you may paste this scan directly into the advanced scan engine:

[type = stock] AND [country = US] AND [sma(63,Daily Volume) > 1000000] and [[exchange is NYSE] or [exchange is Nasdaq] or [exchange is Amex]]

and [Close >= 25.00]
and [Close < 100.00]

//
//  This scan finds stocks that demonstrate an NR7 pattern.
//

# See if today's range is the smallest in the prior six days.

and [today's range < yesterday's min(6,range)]

# Check for trending prior to entering the range.

and [7 days ago adx line(14) >= 30]

and [
[group is ConsumerStaplesSector]
or [group is CyclicalsSector]
or [group is EnergySector]
or [group is FinancialSector]
or [group is HealthCareSector]
or [group is IndustrialSector]
or [group is MaterialsSector]
or [group is TechnologySector]
or [group is UtilitiesSector]
]


It's important to understand that we do not automatically enter a trade simply because the stock has drawn the narrowest range of the last seven days.  The scan simply returns a list of candidates for further analysis.  From there, we need to analyze the chart to determine if there is a potential move imminent, and if so, whether or not the risk vs reward is worth the trade.  From there, we need to determine how best to play it.  Let's look at one that popped up on the scan, today.

DXCM Daily Chart
Dexcom, Inc. (Nasdaq: DXCM) started a decline on 28 September 2016.  It has either completed a truncated 5th wave in that decline, or it's in what will be an extended Wave 5.  Which way that plays out, we don't yet know.

We can see that, following the low on 3 November, DXCM retraced 38.2% of the full impulse before declining back almost to the full extent of the downtrend.  At a fairly pronounced support level, we can see that DXCN entered a consolidation period, balanced neatly between a strong support line and a strong resistance line.

That bit of congestion culminating in a narrow range day is precisely what we're looking for.  It's the type of situation that Farley refers to as a "coiled spring."  The odds favor a short but explosive move.  The challenge, though, is we really don't know which way the move will go. 

You can see on the chart that I've highlighted two target areas in green.  A move to the upside will likely penetrate the area topped by that prior consolidation region.  A move to the downside will likely run into some congestion where the prior decline stalled. 

One of the methods Farley mentioned in trading the Coiled Spring is to place a buy opening stop above the high of the narrow bar and a short sell opening stop below the low of the narrow bar.  You'd set this up as a single trade with a "one cancels all" order, so whichever one triggered would automatically cancel the opposite trade.  It's a low risk setup in that the protective stop - set to the same level as the opposing open level - is very narrow.  We're not risking a lot of capital.  What we do risk, however, is being stopped out almost immediately due to intra-day volatility. 

To mitigate the intra-day risk, I prefer to set a start-time of 10:01 EST on the trade.  This, at least, keeps us out of that first 30-minutes where wild swings are the norm.  A second mitigating technique I'll use is to set another condition on the opening order such that the overall market must be moving in the same direction as the stock.  This avoids us having to swim into the current if the stock moves contra-market for a period of time. 

Once in the trade, we'll manage the overall play very closely.  This is a short-term explosive setup, so we expect to be in the trade for 2 or 3 days at most.  We need to watch how the stock behaves as it approaches either of the diagonal support or resistance lines marked in green.  At the first sign of weakness, we're out.  There are also three significant moving averages that are hovering over us to the upside.  Any of those could act as resistance, as we saw between 10 October and 11 November with the stock constantly bouncing off the 10-day moving average.  Again, at the first sign of waning momentum, we need to exit the trade.  This is a setup for a quick profit, not a home run.

One final note on this type of setup.  Don't be afraid to immediately take the opposite position if stopped out quickly.  In this type of chart setup, the initial move is likely to be short and swift.  There is also decent profit potential on the reverse move after we're stopped out of the position.  That's a difficult trade to enter psychologically, but it's one I highly recommend considering. 

Happy Trading.