Professional Documents
Culture Documents
Schrödinger’s Cat
Finding information in
market data 8
Filtering Price
Movement
Introducing a new zigzag
indicator 12
10 Selling Tips
Knowing when is “when” 30
INTERVIEW
Technical analyst
Boon Chin Low 34
REVIEWS
n Haguro Method
n MetaStock XIV
MAY 2015
Take Control of Your Trading with the
Professional Traders’ Starter Kit ™
*Based on the 5-year subscription rate of $299.99. Shipping extra for foreign addresses.
The Foremost Collection For Traders 4. Traders.com Advantage™, premium website content
This massive collection packages the best tools for trading and delivering real-world technical analysis to you! You’ll get five
investing in any market! years of charts, indicators, and “how-to” advice for specific
markets, currencies, stocks, and commodities; near-term
1. Technical Analysis of Stocks & Commodities, the Traders’
opportunities; price movement; new techniques. Posted in
Magazine™. The premier magazine for technical analysis.
real-time with an archive of thousands of articles.
You’ll get five years — 65 issues — including our annual
Bonus Issues with our Readers’ Choice Awards. 5. Working Money™, the Investors’ Magazine online. You’ll get
five years of market observations; explanations of charts,
2. S&C Digital Edition. Recent complete issues available in their
markets, and market sectors; money management; and
entirety as PDFs for you to either download or read directly
interviews with money people that will help you trade and
in your browser. No more waiting for the mail to deliver your
invest wisely. Articles added several times a month.
magazine! You will still receive the printed magazine unless
you opt for a digital-only subscription. 6. Article Code. Download or copy & paste code presented in
past issues of Stocks & Commodities — no need to type it
3. Complete Digital Archive. The complete archives as PDFs
out manually.
— more than 17,000 pages — from Technical Analysis of
Stocks & Commodities from 1982 through the present. The 7 . Optimized Trading. The optimized indicator values can be
articles can be read in your browser or download to your used as starting points when trying to decide what values
computer (or any device with Internet to input into your charting software. Search for a certain
access and the ability to read a PDF)! symbol or company or build your own portfolio.
64-89% 78%
lower than lower than
• Charles Schwab • Charles Schwab
• TDAmeritrade • TDAmeritrade
• ETrade • ETrade
For 100 to 1000 shares and For a margin loan of
1 to 10 option contracts $50,000 to $1,000,000
stocks • options • futures • forex • bonds — on over 100 markets worldwide from one account
Interactive Brokers is a member of NYSE, FINRA, SIPC – Lower investment costs will increase your overall return on investment, but lower costs do not
guarantee that your investment will be profitable. Supporting documentation for any claims and statistical information will be provided upon request.
Commissions and Margin Rates as of March 2, 2015. Services vary by firm. [1] For additional information on our commissions and margin rates and
execution quality, see www.interactivebrokers.com/compare. * Based on independent measurements, the Transaction Auditing Group, Inc., (TAG).
05-IB15-896CH856
CONTENTS MAY 2015, Volume 33 Number 6
At Traders.com, subscribers will also find our two online-only publications, Working Money and
Traders.com Advantage, plus our entire 30-year online archive of every article we’ve published
since 1982, which you can browse by month and year or search by keyword, author, or subject.
NON-SUBSCRIBERS SUBSCRIBERS
Online: www.Traders.com 206-938-0570 • Fax: 206-938-1307 *Based on the 5-year subscription rate of $299.99.
Shipping extra for foreign addresses.
Email: Circ@Traders.com Toll free: 1-800-832-4642
W
EDITORIAL
editor@traders.com
If
Advertising Sales
4757 California Ave. S.W.
Seattle, WA 98116-4499
1 206 938-0570 Fax 1 206 938-1307
advert@traders.com you take a moment to analyze what really moves the markets, you’ll find
National Sales Manager, Classified & Web Sales that it’s a lot more than interest rates. Fundamental analysts focus on valu-
Edward W. Schramm ations such as price/earnings ratios, debt-to-equity ratios, EBITDA, and so on,
Advertising Sales Summer Davis but as technical analysts, we need to look at indicators such as market breadth,
advances over declines, and investor sentiment using variables such as TRIN,
Circulation
Subscription & Order Service 1 800 832-4642 TICK, and VIX. Keeping an eye on these variables can be used as a barometer
1 206 938-0570 Fax 1 206 938-1307
circ@traders.com
to gauge the strength of the market and whether investors are risk averse. Any
Subscription Manager Sean M. Moore divergence between the movement of the broader markets and these barometers
Subscription Sales Carmen Hale or a lack of confirmation from all these variables should be considered as a sign
to tread cautiously. At the moment there seems to be too much uncertainty in the
Website
http://www.traders.com markets together with too much optimism. The two don’t mix well and that’s a
Staff members may be emailed through the Internet cause for concern.
using first initial plus last name plus @traders.com
We’re too focused on the central banks and placing importance on their choice
of words. First, it was irrational exuberance, then patience, and now reasonably
Authorization to photocopy items for internal or personal
use, or the internal or personal use of specific clients, is grant- confident. According to the recent statement released by the Fed, it’s inflation,
ed by Technical Analysis, Inc. for users registered with the
Copyright Clearance Center (CCC) Transactional Reporting
unemployment, and wages that will indicate how well the economy is doing and
Service, provided that the base fee of $1.00 per copy, plus ultimately be the deciding factor for raising interest rates. But other indicators such
as credit spreads, treasury yields, performance of commodities, and performance
50¢ per page is paid directly to CCC, 222 Rosewood Drive,
Danvers, MA 01923. Online: http://www.copyright.com. For
those organiz ations that have been granted a photocopy
license by CCC, a separate system of payment has been
of the manufacturing/service sector give much earlier signals of the underlying
arranged. The fee code for users of the Transactional economic fundamentals. But getting a real gauge of the economy is no easy task,
Reporting Service is: 0738-3355/2015 $1.00 + 0.50.
Subscriptions: USA: one year (13 issues) $89.99; especially when it’s been stimulated by funds from the central banks. I seriously
Magazines shipped outside the US require additional
postage as follows: Canada, US$15 per year; Europe, doubt we’ll be seeing any interest rate hikes in the next FOMC meeting. We have
US$25.50 per year; all other countries US$39 per year.
Single copies of most past issues from the current year are
to patiently wait to see when and if it will happen this year.
available prepaid at $8 per copy. Prior years are available
in book format (without ads) or digitally from www.traders.
com. USA funds only. Washington state residents add
sales tax for their locale. VISA, MasterCard, AmEx, and
Discover accepted.Subscription orders: 1 800 832-4642
or 1 206 938-0570.
Technical Analysis of Stocks & Commodities™,
Miami Downtown Richard Cavalleri/Shutterstock
Jayanthi Gopalakrishnan,
The Traders’ Magazine™, is prepared from information
believed to be reliable but not guaranteed by us without
further verification, and does not purport to be complete.
Opinions expressed are subject to revision without noti-
Editor
fication. We are not offering to buy or sell securities or
commodities discussed. Technical Analysis Inc., one or
more of its officers, and authors may have a position in
the securities discussed herein.
The names of products and services presented in this
magazine are used only in an editorial fashion, and to the
benefit of the trademark owner, with no intention of infring-
ing on trademark rights.
PATRICK KELLEY
ably good replica of the real
radar echo. This kind signal is
called random with memory,
and it’s consistent with other
Random With Memory phenomena described by the
Schrödinger’s Cat
Hurst coefficient. Synthesiz-
ing market data using a ran-
dom number generator and
an EMA is simple to do and
could be an interesting way to
What information is contained in market data? Can you develop an indicator or trading examine the nature of market
system that can extract this information to provide an edge in trading? Here’s a look. data. Knowing the nature of
the data can therefore lead to
by John F. Ehlers the generation of an indicator
T
that possibly can give us a
he purpose of technical analysis is to discern what information is contained in market trading edge.
data and, if you are clever enough, to develop an indicator or trading system that extracts
this information to provide an edge in trading. On the other hand, there are those who Measuring synthe-
believe in the efficient market hypothesis: that all the information about the markets is known sized market data
and the effects are purely random due to the law of large numbers of traders. The discussion Synthesizing market data is
goes downhill from there. one thing, and measuring its
One of my favorite theoretical descriptions of market activity is the drunkard’s walk. When characteristics is quite anoth-
the random variable is position, the partial differential equation solution is called the diffusion er. The problem is similar to
equation, and it describes random motion like a particle of smoke in a smoke plume. When that of the “Schrödinger’s cat”
the random variable is momentum, then the partial differential equation solution is called the thought experiment: Merely
wave equation. Taken together, the drunkard’s walk describes physical phenomena like the measuring the outcome deter-
meandering of a river, which can be random (trending) or cyclical. Unfortunately, there is no mines the outcome itself.
closed solution for the differential equations that can lead to an indicator, because they require Here’s the problem: When
8 • May 2015 • Technical Analysis of Stocks & Commodities
the market is modeled as
a random variable with
memory, the memory is
provided by a filter such
as an EMA. However,
when measuring the fre-
quency content of market
data with any technique
such as a Fourier trans-
form or a contiguous
TRADESTATION
bank of bandpass filters,
they all have filters with
memory as part of the
analysis technique. Thus, FIGURE 1: MEASURED SPECTRUM OF THE SPDR S&P 500 OVER THE LAST YEAR. The dominant cycle period was between 20 and 25
measuring a truly ran- bars in the fall of 2012, was on the order of 15 bars during most of the uptrend, and was an ill-defined longer cycle period most recently.
dom set of data would
involve the memory being provided by the measurement daily data). The spectrum shows that there is not much cyclic
technique, and the entire process would become self-fulfilling. activity, and the dominant cycle is mostly near a 10-bar cycle
Measuring the frequency content of synthesized data must due to aliasing noise.
avoid the use of filters. The next experiment is to see the effects of adding memory
Interfering with the synthesis of market data is minimized to the random data. For example, Figure 3 shows the data
through the use of an autocorrelation periodogram. This and spectrum when the memory low-pass filter has a criti-
process first creates the autocorrelation of the data, a process cal period of 20 bars. Not unexpectedly, the data is much
that is basically without filters. Then, a Fourier transform of smoother than in Figure 2. Also, the dominant cycle period
the autocorrelation function is taken to extract the frequency in the measured spectrum is near a 20-bar period most of
content of the data. On a related note, the autocorrelation the time.
periodogram is now my preferred method of frequency mea- Continuing with the experiment, the memory of the low-pass
surement of market data because it mitigates the effects of filter is changed to have a critical period of 40 bars (Figure 4).
spectral dilation. In this case, the data is smoother across the graph. Further,
Figure 1 shows what the measured spectrum of real market the measured dominant cycle period has increased.
data looks like. The data is approximately one year’s worth
of daily bars of the SPDR S&P 500 (SPY). The measured So what does it all mean?
spectrum is shown below the price bars as a heatmap. The Dealing with random data is tricky because you can never
strength of the cycle amplitude is shown in colors ranging reproduce your results. The best you can do is infer charac-
from white hot through red hot to ice cold. The period of the teristics from your measurements. The first observation is that
measured cycles is indicated on the vertical scale from zero market cycles are ephemeral—they come and go, and the cycle
through 48-bar periods. Figure 1 shows that the dominant periods of the dominant cycle can often change rapidly.
cycle period was between
20 and 25 bars in the fall
of 2012; was on the order
of 15 bars during most of
the uptrend; and was an
ill-defined longer cycle
period most recently.
Now that you are fa-
miliar with displays of
market spectra, let’s
turn your attention to the
measurement of purely
random data with no
memory, as shown in
Figure 2. The random
data is shown as the green
ragged line over ap-
proximately 250 samples FIGURE 2: MEASURED SPECTRUM OF PURELY RANDOM DATA WITH NO MEMORY. The spectrum shows that there is not much
(essentially one year of cyclic activity, and the dominant cycle is mostly near a 10-bar cycle due to aliasing noise.
May 2015 • Technical Analysis of Stocks & Commodities • 9
FIGURE 3: MEASURED SPECTRUM OF RANDOM DATA WITH MEMORY HAVING A 20-BAR CRITICAL PERIOD. The dominant cycle period in the measured spectrum is near
a 20-bar period most of the time.
Further
reading
Ehlers, John [2013].
Cycle Analytics For
Traders, Wiley &
Sons.
[2014]. “The
Quotient Tra ns-
form,” Technical
Analysis of Stocks
& C ommodities,
Volume 32: Au-
gust.
‡TradeStation,
‡StockSpotter.com
Futures and futures options trading is speculative and is not suitable for all investors. Futures accounts are not protected by the Securities Investor
Protection Corporation (SIPC).
Futures and futures options trading services provided by TD Ameritrade Futures & Forex LLC. Trading privileges subject to review and approval.
Not all clients will qualify.
paperMoney® application for educational purposes only. TD Ameritrade, Inc., member FINRA/SIPC. TD Ameritrade is a trademark jointly
owned by TD Ameritrade IP Company, Inc. and The Toronto-Dominion Bank. © 2015 TD Ameritrade IP Company, Inc. All rights reserved.
Used with permission.
12 • May 2015 • Technical Analysis of Stocks & Commodities
INDICATORS
Filtering
Price Movement
Here is an alternative to the classic zigzag indi-
Applied Micro Devices 15.5
W
13.0
hen there is need for algorithmic iden- 12.5
T1 T2 4.0
less than x points. If, on the other hand, you 3.5
disregard all price movements of magnitude of Applied Micro Devices, Inc. (AMD) is based on a percentage threshold of 20% and it uses data up to
Figure 1: the dynamic nature of the zigzag’s last legs. The red zigzag in this daily chart
less than x percent. When plotted, the zigzag date T1. The blue zigzag is based again on the 20% percentage threshold but it uses data up to date
T2. In other words, the red zigzag is a snapshot from the history of the blue one. Notice how the last
is shown as a crooked line connecting peaks two legs of the red zigzag changed when price information from T1 and later were taken into account to
and troughs. The line segments of the zigzag create the blue zigzag. This chart was created in MetaStock, which plots the zigzag in a way such that
its last two legs are dynamic. In other versions of zigzag, only the last legs are dynamic.
are commonly referred to as its legs.
Notwithstanding that the zigzag identifies promi- are dynamic and usually change significantly as new
nent peaks and troughs, it doesn’t filter the price data comes in. Consequently, the historical values
swings the same way a technician’s eye would. In this of the zigzag are based on hindsight. So if you’re
article, I will introduce you to a more natural way of using the zigzag in the same way that you use other
filtering the price, which is accomplished via what are classic technical indicators such as moving averages,
called perceptually important points. This alternative relative strength index (RSI), stochastics, and so
to the classic zigzag indicator is closer to the way a on, then zigzag won’t be of much use. However, it
human perceives the movement of price. can be useful if it’s used to identify prominent price
swings on a chart. Simply put, there is no way to
Limitations of the zigzag know when the current price movement will pass the
The zigzag is accused of a serious drawback: Its last cutoff threshold before that happens (see Figure 1 for
JOSE CRUZ
two legs (or, depending on the software, its last leg) an example). In effect, the zigzag is a static tool that
by Giorgos E. Siligardos
May 2015 • Technical Analysis of Stocks & Commodities • 13
analyst, the dynamic nature of the zigzag’s last legs is not a
drawback but a merit. For example, in his November 2003
Stocks & Commodities article “The Zigzag Trend Indicator,”
Spyros Raftopoulos introduced an interesting binary indicator
that he called zigzag trend. The zigzag trend is essentially the
zigzag without its dynamic feature, so its strong point is that it
can be used and treated the same way as other common trend
indicators such as the MACD, with the additional benefit of a
2 low number of whipsaws. From a pattern analyst’s standpoint,
1 however, the absence of dynamic parts makes it completely
incapable of identifying visually prominent peaks and troughs
in a snapshot of a chart.
A more substantial drawback of the zigzag as a tool to rep-
resent a chartist’s perception could be its dependence on the
Figure 2: not all points identified by the zigzag are visually prominent.
The zigzag always tries to find and accent prominent price swings based on how high or
threshold parameter. In other words, you can’t use the same
low these swings go, but this makes it quite stiff. In this iconic example, the zigzag would cutoff threshold for all charts. A 20% threshold for long-term
disregard point 2 just because point 1 is a bit lower. From a visual perspective, however, daily charts of stocks does a pretty good job most of the time,
point 2 was more important than point 1 since it was the pivot that sparked a swift and but it might be inefficient for short-term daily charts. So the
analyst must first see the chart and then define the threshold
strong uptrend.
that will give the zigzag the opportunity to identify the major
tries to mimic—often in a clumsy way—the eye of the analyst swings. That initially negates the usefulness of the zigzag as a
when it looks at a snapshot of a chart. It does so from a more representative of the human eye when there is need for iden-
mathematically rigid point of view, concentrating on the major tification of major swings in thousands of charts. This is not a
swings of price (as defined by the cutoff threshold). serious drawback, however, since there is a simple (albeit not
It must come as no surprise then that for the chart pattern perfect) workaround: You can take the range of values in a chart
(highest value minus lowest value) and then define the
threshold as a percentage of that range.
35 1 So what are the essential limitations of the zigzag
34 from a chartist’s point of view? One limitation is that
33 CBS Corp. CL B
it focuses exclusively on prominent price swings (peak
32
(daily)
31
30
to trough and trough to peak). More precisely, although
29 it indeed identifies meaningful pivots in price, it often
28
27
misses other pivots that are even more important regarding
26 their role in the visual comprehension of the movement
25
24
2 of the price (Figure 2). Also, its bias toward only price
23 swings makes it incapable of perceiving special cases
where connection of peaks to peaks or troughs to troughs
22
21
20 describes the price behavior in a better way (see Figure
19
18 3). Another important limitation of the zigzag has to do
17
with the way it summarizes and ranks information on a
16
15 3 chart. More precisely, you can’t force the zigzag to sum-
14
13
marize the price action into a specific number of swings.
12 For example, you can’t tell the zigzag to filter the price
action and condense it into, say, four swings (legs). You
11
10
9 will know the total number of the zigzag’s legs only after
8
7 Zigzag (20%) 4 it has filtered the price.
6
{
overcome the limitations I mentioned
{
Z Z Z
earlier because its filtering process is d1 dx(Y,Z)
much closer to the way a technician’s dx(Y,Z)
eye scans a chart. This doesn’t mean
that this new method should wholly dx(Y,Z) = d1+d2
replace the classic zigzag. It is just a Y Y Y
different method serving a different
purpose. The PIPs method is more
appropriate for representing price Figure 4: the tHree flavors of distance of one point from A PAIr of two points. Three ways to define
movement from a visual standpoint. perpendicular.
the distance of a point X from a pair of points Y, Z have been proposed in the literature: The Euclidian, the vertical, and the
In Figure 4 you can see pictorial examples for these three flavors
of distance. C
A
Identifying the PIPs B
Consider a set of points in a time–price chart that are derived by the Identifying the fifth PIP
values of an indicator such as the MACD or the closing price of a stock. E
A point from this set will be considered perceptually important when
it dominates all other points in terms of importance in the perception
of the visual shape that these points create. D
That’s a loose definition, I know, so let me define the PIPs via a
formal inductive procedure using the vertical kind of distance (refer
to Figure 5 for a visual aid).
Step 1: The first two PIPs are the first and last points in the chart.
Name them A and B, respectively. I call these PIPs marginal for C
obvious reasons. All the other PIPs will be called internal. A
Figure 5: identifying PERCEPTUALLY IMPORTANT POINTS (PIPs) US-
Step 2: To find the third PIP, calculate the vertical distances of ING THE VERTICAL DISTANCE. The first two PIPs are the first and last points
all points of the set from the couple A, B (that is, calculate (A and B). From there on, to designate a point as perceptually important, you
go through a procedure that takes into account all price data in the chart. More
all dX(A,B) where X runs all points of the set). The point X, precisely, you go through calculations of vertical distances involving all data in
which produces the maximum distance, is the third PIP. Let the chart and lines connecting previously identified PIPs.
Chart examples
It is now time to go through some chart
examples. In Figure 6 you can see how the
zzTOP(close,5,L) and zzTOP(close,20,L)
perform in the same chart. The former
scans all prices shown in the chart, finds
six PIPS, and summarizes the price action
May 2015 • Technical Analysis of Stocks & Commodities • 17
ASML (daily) 100
50
semilogarithmic scale makes it pos- Figure 9: arithmetic vS. logarithmic scale. The scale parameter of the zzTOP determines the way the zzTOP “sees”
sible to see things from a percentage the price. The “A” (arithmetic) scale parameter instructs the zzTOP to see the price from an arithmetically scaled y-axis whereas
perspective, so the price swings be- the “L” (logarithmic) scale parameter instructs it to see the price from a logarithmically scaled y-axis. The results can be strikingly
different for these two cases as it is seen in this weekly chart of Caterpillar Inc. (CAT).
fore 2000 are visually more promi-
nent now. The logarithmic-scale
zzTOP in the lower chart correctly
identifies the 20 most noticeable The zzTOP doesn’t rely on cutoff thresholds so it can be
price swings the same way a human directly applied successfully to any kind of indicator.
eye would.
Most chartists use semilogarith-
mic charts to plot the prices of trading
instruments, so an arithmetic-scale Archer Daniels Midland Co.
zzTOP is practically useless when (weekly)
applied to the price charts (especially 50
the long-term ones). The charts of zzTop (Close,20,L) 40
Co. (ADM).
-3.0
-4.0
zzTop (MACD,20,A) -5.0
Automation
2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014
The zzTOP requires you to state how Figure 10: identifying the swings of macd in a weekly chart of archer daniels Midland co. (ADM). The
zzTOP indicator performs pretty well when applied in indicators without the need to define filtering thresholds.
many legs you are interested in. The
opportunity to a priori define the
number of legs gives you tremendous freedom, but sometimes closer the zzTOPauto line must be to the indicator plot and
you may want the indicator to choose how many legs to identify thus the more legs will be needed.
based on a goodness of fit level that you desire. In other words, Consider, for example:
you might be interested in a hybrid between the zzTOP and the
zigzag. This can be accomplished by requiring the zzTOP indi- zzTOPauto(indicator,20,A)
cator to keep finding PIPs and to create legs up to a predefined
proximity level (an equivalent to the threshold of the zigzag). and say that the highest value of the indicator is 200 and its
I named this automated version of zzTOP the zzTOPauto. lowest value is 40. The range of the indicator is therefore
The zzTOPauto indicator has the same indicator and scale R=200-40=160. Since the proximity parameter is 20, you are
parameters as the zzTOP does, but instead of LegsNo, it has interested in the required number of legs such that the verti-
a proximity parameter. So zzTOPauto(close,10,L), for ex- cal distances between the values of the indicator and the legs
ample, refers to the zzTOPauto applied to the closing price are less than 20% of 160 (which equals 32). In other words, a
of a security on a semilogarithmic chart with a proximity of proximity of 20 means that you want the zzTOPauto to keep
10. Proximity is a positive number up to 100 and represents a finding PIPs and to keep creating legs up to the point where the
percentage of the range of values of the indicator parameter. indicator’s values will not divert more than 20% of R from the
Its purpose is to give the zzTOPauto a level of goodness of fit zzTOPauto’s plot. Of course, for logarithmic-scale zzTOPauto,
you are interested in. Note that the lower the proximity, the the range of the indicator must be measured in a way that will
May 2015 • Technical Analysis of Stocks & Commodities • 19
55
Boston Scientific 50
45
(daily) 40
35
30
25
perform the backtesting, the typical
technical analysis software loads
20
15
all historical data, then calculates
10
the values of indicators, and then
uses these calculated values to
zzTOPauto (Close,10,L) simulate the backtesting. This is
5
fine for common indicators such as
MACD and RSI, but for dynamic
2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 indicators like zigzag, zzTOP, and
Figure 11: performance of zztopauto with a proximity parameter of 10 in a daily chart of boston zzTOPauto (which change their
scientific inc. (BSX). The zzTOPauto indicator in this chart did a great job in outlining the price movements of BSX. Using historical values when new data
a higher proximity parameter would result in fewer legs for the zzTOPauto, whereas a lower proximity parameter would result comes in), this approach produces
erroneously prettifying results.
in more legs.
Readers can download my “zzTOPindicators.dll” file as a .zip archive Rock & roll
from http://traders.com/files/zzTOPindicators.zip or from the Article The zigzag’s way of filtering fluctuations, although simple, is
Code of the Technical Analysis of Stocks & Commodities website, not always appropriate for capturing the visual representation of
www.traders.com. After downloading, you will need to expand price behavior. The zzTOP and zzTOPauto indicators presented
the .zip file and place a copy of it in MetaStock’s external function in this article offer an alternative way to transfer your visual
DLLs folder (usually located at C:\Program Files\Equis\MetaStock\ perception to your software. Perhaps, if you go through thou-
External Function DLLs). sands of charts, chances are you will encounter cases where the
The zzTOP and zzTOPauto indicators can be called by the fol- zzTOPs will miss a few points that your eye would consider as
lowing code: visually important; however, that would generally be rare. So if
you are not pleased with the way the zigzag indicator perceives
ExtFml( "zzTOPindicators.zzTOP",Indicator ,LegsNo ,Scale) the price movements in a chart, then get ready to rock and let
the zzTOPs do their magic.
and
Giorgos Siligardos holds a PhD in mathematics and a market
ExtFml("zzTOPindicators.zzTOPauto",Indicator,Proximity,Scale) maker certificate in derivatives from the Athens Exchange. He
is a financial software developer, coauthor of academic books
respectively. For example, the code: in finance, and a frequent contributor to Technical Analysis of
Stocks & Commodities magazine. He has also been a research
ExtFml( "zzTOPindicators.zzTOPauto",CLOSE ,15 ,L )
and teaching fellow to the University of Crete as well as a
teaching fellow to the Department of Finance and Insurance
calls the zzTOPauto indicator for the close price in a semilogarithmic
at the Technological Educational Institute of Crete for many
scale with a proximity of 15.
—G. Siligardos years teaching math and financial courses and supervising
masters dissertations. His academic website is http://www.tem.
20 • May 2015 • Technical Analysis of Stocks & Commodities
NOTICE OF CLASS ACTION SETTLEMENT
If you purchased, sold, or otherwise traded July and/or September 2008 CBOT Rough Rice futures
contracts from July 8, 2008 through July 15, 2008 as an opening or closing transaction or
uoc.gr/~siligard and his current views on otherwise, inclusive, then your rights will be affected and you may be entitled to a benefit.
the markets can be found in http://market- A settlement has been proposed in a class action Settlement Agreement, available at the
calchas.blogspot.gr/. He may be reached lawsuit concerning the allegedly improper trading settlement website, describes all of the details
at siligard@tem.uoc.gr. of July 2008 and September 2008 CBOT Rough about the proposed settlement.
Rice futures contracts on the Chicago Board of
The exact amount each qualifying
Trade from July 8, 2008 through July 15, 2008,
The DLL file mentioned in this article is inclusive. The settlement will provide $625,000 to
Settlement Class member will receive from
available from http://traders.com/files/ the Settlement Fund cannot be calculated
pay claims from Persons who bought, sold, or
until (1) the Court approves the settlement;
zzTOPindicators.zip as a downloadable zip otherwise traded the referenced futures contracts at
(2) certain amounts identified in the full
archive as well as from the Subscriber Area any time from July 8, 2008 through July 15, 2008.
Settlement Agreement are deducted from the
at our website, www.Traders.com, in the If you qualify, you may send in a Proof of Claim
Settlement Fund; and (3) the number of
Article Code area. form to potentially get benefits, or you can exclude
participating Class members and the amount of
yourself from the settlement, or object to it.
their Allowed Claims are determined.
See our Traders’ Tips section beginning on The United States District Court for the Northern
The number of claimants who send in claims
page 50 for commentary on implementation District of Illinois (219 South Dearborn Street,
varies widely from case to case. If less than
Chicago, IL 60604) authorized this notice. Before
of Siligardos’ technique in various technical 100% of the Settlement Class sends in a Proof of
any money is paid, the Court will hold a Fairness
analysis programs. Accompanying program Hearing to decide whether to approve the settlement.
Claim form, you could get more money.
code can be found in the Traders’ Tips area How Do You Ask For a Payment?
Who’s Included?
at Traders.com. If you are a Settlement Class member, you
You are a Settlement Class member if you
may seek to participate in the Settlement by
purchased, sold, or otherwise traded July and/or
Further reading September 2008 CBOT Rough Rice futures contracts
submitting a Proof of Claim to the Settlement
Administrator at the address below, postmarked
Chung, F.L., and TC Fu, R. Luk, and V. from July 8, 2008 through July 15, 2008, inclusive.
no later than November 9, 2015. You may
Ng [2001]. “Flexible time series pat- Excluded from the Settlement Class are (i) the Released
obtain a Proof of Claim on the settlement
Parties (as defined in Section 1(k) of the Settlement
tern matching based on perceptually Agreement), and (ii) any Opt-Outs (as defined in
website or by calling the toll-free number
referenced above. If you are a Settlement Class
important points,” International Joint Paragraph 7 of the Settlement Agreement).
member but do not file a Proof of Claim, you
Conference On Artificial Intelligence Contact your futures broker or futures will still be bound by the releases set forth in the
Workshop On Learning From Tempo- commission merchant to see if you purchased, Settlement Agreement if the Court enters an
ral And Spatial Data (pp. 1–7). sold or otherwise traded the referenced contracts. order approving the Settlement Agreement.
If you’re not sure you are included, you can get
Douglas, D., and T. Peucker [1973]. more information, including the Settlement
What Are Your Other Options?
“Algorithms For The Reduction Of Agreement, Mailed Notice, Plan of Allocation,
If you don’t want to be legally bound by
the settlement, you must exclude yourself
The Number Of Points Required To Proof of Claim and other important documents,
by July 21, 2015, or you won’t be able to sue, or
Represent A Digitized Line Or Its Cari- at www.ricefuturessettlement.com (“settlement
continue to sue, Defendants about the legal claims
website”) or by calling toll free 800-918-8964.
cature,” The Canadian Cartographer, in this case. If you exclude yourself, you can’t get
Vol. 10, No. 2, pp. 112–122. What’s This About? money from this settlement. If you stay in the
The lawsuit claims, among other things, that on settlement, you may object to it by August 3, 2015.
Fu, Tak-chung, and Fu-lai Chung, Rob- July 11, 2008, Defendants held 100% of the reported All objections to or requests to be excluded from
ert Luk, and Chak-man Ng [2008]. open interest in the CBOT Rough Rice futures the settlement must be made in accordance with
”Representing Financial Time Series contract expiring in July 2008 and that Defendants, the instructions set forth in the formal Mailed
Based On Data Point Importance,” by July 11, 2008, had made large purchases in the Notice. The Mailed Notice available at
rice cash market with the purpose and intent of www.ricefuturessettlement.com explains how to
Engineering Applications Of Artifi- limiting the amount of rice that would be available exclude yourself or object.
cial Intelligence, Vol. 21, Issue 2, pp. for delivery against the July 2008 CBOT Rough The Court will hold a Fairness Hearing in this
277–300, March. Rice futures contracts. Plaintiffs also alleged that case (In re: Rough Rice Commodity Litigation,
Merrill, Arthur A. [1977]. Filtered Waves, Defendants uneconomically stood for delivery on Case No. 11-cv-00618) on August 25, 2015, to
their July 2008 position during the Settlement Class consider whether to approve the settlement and a
Basic Theory: A Tool For Stock Market Period. Defendants deny any wrongdoing that request by the lawyers representing all
Theory, Technical Trends. Plaintiffs allege in the lawsuit and maintain that
Settlement Class members (Lovell Stewart
Phetchanchai, Chawalsak, and Ali Selamat, they have complied with their legal obligations.
Halebian Jacobson LLP and Lowey Dannenberg
Amjad Rehman, and Tanzila Saba The Court did not decide which side is right. Cohen & Hart, P.C.,) for an award of attorneys’
[2010]. “Index Financial Time Series But both sides agreed to the settlement to resolve fees of no more than one-third (i.e., 33 1/3%) of
Based On Zigzag: Perceptually Im- the case and get benefits to potentially affected the Settlement Fund for investigating the facts,
market participants. The two sides disagree on litigating the case, and negotiating the
portant Points,” Journal Of Computer how much money could have been won if the settlement, and for reimbursement of their costs
Science, Vol. 6, No. 12, pp 1,389–95. Plaintiffs had won at trial. and expenses in the amount of no more than
Raftopoulos, Spyros [2003]. “The Zigzag What Does the Settlement Provide? approximately $50,000.00.
Trend Indicator,” Technical Analysis Under the settlement, Defendants agreed to You may ask to appear at the Fairness Hearing,
of Stocks & Commodities, Volume create a $625,000 Settlement Fund. If the Court but you don’t have to. For more information, call
approves the settlement, potential Settlement toll free 800-918-8964, visit the website
21: November. Class members who qualify and send in valid www.ricefuturessettlement.com, or write to In
‡MetaStock Proof of Claim forms will receive a share of the re: Rough Rice Commodity Litigation
†See Traders’ Glossary for definition Settlement Fund, after it is reduced by the Settlement, c/o A.B. Data, Ltd., PO Box 170500,
‡See Editorial Resource Index payment of certain fees and expenses. The Milwaukee, WI 53217-8091.
Mean Reversion
It is generally believed that
commodity time series re-
M
ean reversion is not a universal phenomenon; some markets have a tendency toward ently demonstrated a strong
mean reversion, while others don’t. This has led a number of analysts and traders to propensity toward mean re-
look upon mean reversion with some degree of suspicion. If mean reversion has a solid version. In this article, I will
statistical foundation, should it not be applicable to all markets all the time? try to determine whether this
has always been the case. The
focus here will be on long-side
400,000 mean reversion, that is, on a
security’s price’s tendency to
move upward after a short-
term decline.
300,000
I looked at the S&P 500
index from 1970–2013 and ap-
plied the following strategy:
Equity ($)
200,000
n Buy on the close if the
index closes at a 10-day
ShredDEd bills: mary981/Arrow: tomwa/collage: JOAN BARreTT
low
100,000
n Sell on the close 10
Equity curve
days later
and the profit factor (total profits/total losses) was 1.71. This
indicates that when the index hit a 10-day low, a trader with
a long position was generally better off holding his position
PivotHunter.com®
and exiting 10 days later. Where Order Flow
The equity curve’s regular upward slope is quite remarkable.
Of course, some of this tendency must be assigned to directional
Meets Price Velocity
bias — after all, the S&P 500 went up in value almost 20 fold
over the period, so you would expect the equity curve of this
Watch the Cops and Kings chase down
long-only strategy to display a positive edge. However, the up-
ward slope is also stubbornly present throughout the past two the elusive Convict
decades (1994–2013) that saw some extreme rises and falls in Live Charting Room
stock market prices. Free to First 100
Thus, the data suggests that during both bull and bear markets, every week.
a short-term fall in the S&P 500 is more likely to be followed
by a bounce than by a continued drop, at least in the first few
days that follow. In other words, buying price dips and selling
at mean reversion would have been a simple and profitable followed by further selling, at least in the short term (two
strategy over the past 50 years. days). From 1987 to date, however, and quite consistently for
To further understand the nature of this short-term mean- the past three decades, the exact opposite appears to have
reversion cycle, I used the same strategy but applied a much happened: A 10-day low was generally followed by a quick
shorter two-day holding pe-
riod, as follows:
1.2E+10
occurring intraday instead of
interday. That meant that price
1E+10
stability could be reached before
the end of the trading session,
allowing opportunistic buyers
to step in the following morning,
8E+09
pushing prices back up toward
the mean.
The third likely explanation for
6E+09
the US stock market’s short-term
Volume mean-reverting tendency is the
pervasiveness of short selling.
4E+09
Short selling, in its many forms,
has been around for a long time
and was certainly very much
2E+09
alive in the 1960s and 1970s.
But it was only in the 1980s that
shorting on electronic platforms
0
became widely available. This
rise in the collective power of
1/4 965
1/4 67
1/4 969
1/4 971
1/4 73
1/4 975
1/4 77
1/4 979
1/4 81
1/4 983
1/4 85
1/4 987
1/4 89
1/4 991
1/4 93
1/4 995
1/4 97
1/4 999
1/4 001
1/4 03
1/4 005
1/4 07
1/4 009
1/4 11
13
/19
/19
/19
/19
/19
/19
/19
/19
/20
/20
/20
/20
/1
/1
/1
/1
/1
/1
/1
/1
/1
/1
/2
/2
/2
the shorts has exacerbated the
1/4
FIGURE 3: RISING VOLUMES. Stock market volumes have grown exponentially since the early 1960s, reaching their peaks
short-rally effect, which is one
in the fourth quarter of 2008. of the main ingredients of mean
reversion. Essentially, when an
instrument’s price is falling,
bounce, or reversion. And the inflection point of the equity short sellers must buy to cover and take their profits. This
curve occurred on a specific date, which was October 19, 1987, buying interest drives prices back up toward the mean. So
also known as Black Monday. the greater the short interest, the stronger is the pressure for
falling prices to revert back upward.
Why the change? Finally, we must also consider the advent of strategy-driven
There are arguably four main reasons for this fundamental automated trading systems and high-frequency traders (HFTs).
change in the US stock market’s short-term profile from trend- These have, ironically, brought considerable short-term
ing to mean reverting. The first lies in the extraordinary rise rationality to the marketplace. Trading systems designed to
in the volume of stock market transactions over the past 50 recognize panic selling step in to oversold situations and buy
years, as reflected in Figure 3. Buy & hold investing that was into market overreactions. This serves to discourage follow-
the hallmark of most of the 1900s has made way for active through and favors mean reversion.
investing, short-term trading, and hedging. Financial products
that were intended as vehicles for investment have become Stay the course
tools for speculation. This is the case for just about every We have seen that the S&P 500 index has
financial instrument available in the electronic marketplace. exhibited short-term long-side mean rever-
This increased volume has brought about an unprecedented sion for at least the past half century. What’s
level of liquidity to the marketplace, allowing buyers and more, this tendency has been prevalent in
sellers to find each other more efficiently, thereby slowing the bullish and bearish periods. We have also
runaway trains associated with illiquid markets. seen what appears to be a quickening in the
A second possible explanation is that until the mid-1980s, way the market responds to falling prices.
stop-loss orders were often executed on the day following Reversion cycles that in the 1970s and 1980s
the stop being hit. That is, if a stop-loss level was touched took several days now occur within a much
on Monday, the broker would execute the sale at the open on shorter time frame. Traders recognizing
Tuesday morning. These sell orders would serve to compound this phenomenon should be able to profit by
the downward effect, resulting in more stops being hit, and using mean-reversion strategies that exploit
more sell orders being generated on Wednesday morning. The this edge.
downward spiral would continue until value investors stepped
in and confidence was restored. The big change occurred in the Stephen Beatson is an investment consultant based in Paris,
mid-1980s with the advent of automated systems that allowed France and is founder of the educational site TheMechani-
stop-losses to be executed instantly when hit. The multiday calTrader.com.
price erosion process I described was suddenly compressed,
24 • May 2015 • Technical Analysis of Stocks & Commodities
FUTURES FOR YOU
INSIDE THE FUTURES WORLD
Want to find out how the futures markets really work? Carley Garner is the senior
strategist for DeCarley Trading, a division of Zaner Group, where she also works
as a broker. She authors widely distributed e-newsletters; for your free subscrip-
tion, visit www.DeCarleyTrading.com. Her books—Currency Trading In The Forex
And Futures Markets; A Trader’s First Book On Commodities; and Commodity
Options—were published by FT Press. To submit a question, post your question at
http://Message-Boards.Traders.com. Answers will be posted there, and selected
Carley Garner
questions will appear in a future issue of S&C.
PIT CLOSURE IMPACT candid story of the ups and downs ex- out of a job. Even though the numbers
What impact will the CME’s pit closure perienced by those on the CME trading of these individuals has dwindled over
have on the average trader? floors in Chicago. the years, there are still hundreds that
In early 2015, the Chicago Mercantile As I mentioned, along with the full- will be affected. In addition, those who
Exchange (CME) announced that it size S&P 500 futures, the option pits made a living disseminating order flow
would be closing pit trading for all futures will continue operation. This is because information (such as which banks and
contracts in its Chicago and New York the complexity of option trading hasn’t hedge funds were buying or selling in
operations, with the exception of the translated to the screens as well as the pits), are finding they no longer have
full-sized S&P 500 contract and most futures contracts have. Simple long & a place on the trading floor.
of its option pits. short calls & puts can easily be executed Moreover, despite the clear advan-
The S&P 500 futures contract was via an electronic platform, but in some tages of electronic trade matching such
the only product that had never been circumstances, those trading multileg as transparency, speed of execution
moved to “the screen.” While all other option spreads in high volume still find and fill reporting, and fill quality (less
CME futures products traded in both an benefits in using an open-outcry execu- slippage), the disadvantages are often
electronic version and open-outcry ver- tion broker. This is expected to be the case overlooked. For instance, up until now,
sion side-by-side, execution in the “big” for the foreseeable future. Nonetheless, when the exchange, or even brokerage
S&P has always been strictly open outcry. firms, experienced technology issues, it
Because of this, many traders moved Although the closure of was possible to route orders to the pit for
their speculation from the original S&P execution. These types of events don’t
contract into the electronically executed the futures trading pits occur frequently, but they do happen. In
emini S&P 500 futures (ES) to avoid the officially marks the end the absence of an alternative means of
delays and slippage that sometimes came of an era, there will be execution, it only takes a single instance
with pit-traded execution. of halted trades to dramatically affect
If you are young or new to the trading little to no impact on the the integrity of the markets and work
community, you might not be aware of average retail trader. against orderly trading.
what trading pits are or about the prac- In the aftermath of side-by-side trading
tice of open-outcry execution. In short, the writing is on the wall: Eventually, (simultaneous futures markets trading)
the pits are designated circular areas in the option pits will likely go the way of we are left with some residual chaos
which exchange members buy and sell the futures pits. when it comes to identifying products in
futures contracts through hand gestures Although the closure of the futures a trading platform or on a quote board.
known as arb. Although the transactions trading pits officially marks the end of This is because when electronic trad-
are dictated by hand movements, they are an era, there will be little to no impact ing was first introduced, the exchange,
accompanied by aggressive voices, and in on the average retail trader. At the platform vendors, and brokerage firms
some cases, a degree of physicality. The time the CME Group announced the opted to identify the electronically ex-
process of open-outcry trade execution pit closure, roughly 1% of all executed ecuted contract with a different symbol
is often referred to as “organized chaos.” futures contracts on the exchange were than the open-outcry version. This was
If you haven’t seen the movie Trading traded in the pits. In other words, nearly because at the time, electronic trading
Places starring Eddie Murphy and Dan all of CME Group trades are executed hadn’t fully developed. Consequently, it
Aykroyd (one of the greatest movies of electronically; thus, most of us won’t was important that traders had the ability
all time, in my opinion!), you should; it even notice the change. to choose which venue to route trades to.
manages to capture the essence of pit However, there will certainly be For example, the open outcry version of
trading in all of its glory. As another one casualties. For starters, all of those crude oil has always been denoted by
to mention, the documentary Floored working on the trading floor (executing
directed by James Allen Smith tells a brokers, order clerks, and so on) will be Continued on page 62
May 2015 • Technical Analysis of Stocks & Commodities • 25
are likely to come from today and
previous days.
Recognizing
relationships
But ordering data in just one way
limits us. If there are patterns in
the data that are not related to the
one-directional march of time,
we may miss them. This article
seeks to explore one of many
possible orderings of data from
a well-studied, readily-available
financial derivative—the volatil-
ity index (VIX). My objective
is to see if I can discover useful
relationships that are hidden in a
time series view.
I’ll begin with a small sample of
VIX index data from the 30 days
of trading between December 16,
1996 and January 28, 1997 (Figure
1). I arrange this data with the date
in column 1, the closing value for
each of the 30 days in column 2,
and the next day’s change in the
closing value in column 3.
For example, the VIX closed at
19.27 on January 14, 1997 and I put
the difference between this close
and that for the following day, 0.13,
into column 3 for January 14, not
for January 15. I then sort all three
columns together by descending
value of the VIX close and add
The Road Ahead another column containing each
By Reordering Data
no longer in ascending order, and
that the cumulative change in the
VIX is calculated based on the new
order of the 30 days. For the sake
of brevity, hereafter we will refer
In recent years, the CBOE Volatility Index (VIX) has increased in importance and use
to the change in the closing value
as an indicator of market direction. This article demonstrates how the direction of
PHOTO: STUART JENNER/SHUTTERSTOCK/COLLAGE: NIKKI MORR
As
usually presented, financial data is ordered in a time series: The data runs from above as the cumulative delta.
left to right or top to bottom by increasing values of days, months, years, and so The chart in Figure 3 presents a
on. The data may be altered (with a moving average, lagged values, the log, or graph of the descending VIX and
square taken, and so forth), but in most cases, data is envisioned and laid out according the cumulative delta from Figure
to the arrow of time. Patterns are then observed or discovered in this time-based frame- 2, and it shows a pattern: While
work, and this makes great sense: The factor that may produce tomorrow’s market moves the closing VIX values have been
26 • May 2015 • Technical Analysis of Stocks & Commodities
sorted to descend steadily from their
highest value to their lowest (the 30
days are no longer in calendar order),
the cumulative delta values (that is,
the next day’s changes in the VIX)
generally, but with several detours,
drift down to a low point (-6.84)
somewhere around the middle of
the chart, and then change direction
and move upward (with detours) to
the last point in the chart. The low
point for the cumulative delta oc-
curs on day 15 of this re-sorted data
(December 18, 1996) with a closing
VIX value for that day of 19.42.
To the left of and including this
low point, more cumulative deltas
fall (10) than rise (five), and the
sum of the deltas for these (-9.93)
is larger in a negative direction than
the sum of the rises (3.09) is in a
MICROSOFT Excel
positive direction.
So for every day in this 30-day
period where the closing value of the
VIX is greater than or equal to the
VIX value on the day of the lowest Figure 1: closing vix sorted by date Figure 2: closing vix sorted by descending vix. Here,
(december 16, 1996–january 1997). The
point in column 5 of Figure 2, you data is arranged by date, closing value, and next
the VIX close is sorted in descending order and a column containing
each day’s cumulative sum of the next day’s change is added.
would be correct 10 times out of 15 if day’s change.
you were to predict that tomorrow’s
VIX will be lower than today’s. And for every day when the 1990, for every day with a closing VIX greater or equal to
closing value of the VIX is less than the VIX value on the day the VIX on the day with the lowest value for the cumulative
of the lowest point in column 3, you would be correct 11 times next day’s change in the VIX (delta), there is a higher-than-
out of 15 if you were to predict that tomorrow’s VIX will be average probability that the next day’s VIX will drop. And
higher than today’s. In other words, if you knew the closing the reverse is true for all the days when the closing VIX is
VIX for every day in the table and the value of the VIX on the less than the VIX on the day with the lowest value for the
day having the low point of the cumulative deltas, you would cumulative delta.
predict correctly for 21 of the 30
days for a total of 16.64 points,
and incorrectly for nine days for
-4.72 points, leaving you 11.92 22.00 0.00
21.00
-2.00
than the simple 30-day change 20.50
in the VIX itself, which results 20.00
-3.00
in a drop of just 1.76 points over
19.50 -4.00
the period.
This general pattern for the 19.00 -5.00
reordered data is true for most 18.50 19.42
-6.00
of the 30-day periods since the 18.00
VIX has existed. The low point 17.50 -7.00
for the cumulative delta is rarely -6.84
17.00 -8.00
in the exact center of the chart 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
as in the example in Figure 3, Days in order of descending VIX
and often is skewed well to the FIGURE 3: DESCENDING VIX WITH CUMULATIVE CHANGE IN TOMORROW’S VIX. While the closing VIX values have been
left or the right. However, in all sorted to descend steadily from their highest value to their lowest, the cumulative delta values generally drift down to a low point
30-day periods since January around the middle of the chart.
May 2015 • Technical Analysis of Stocks & Commodities • 27
700.00
OPTIONS
600.00
400.00
MARKET LIQUIDITY AND THE The Securities And Exchange Com- participant raises their bid to $25.03, the
TICK SIZE PILOT PROGRAM mission (SEC) has been taking public algorithmic program will raise its bid to
Mr. Bright, thanks for all the informa- comments regarding this pilot program. $25.04. If the original participant cancels
tion over the years. Your columns have We at Bright Trading submitted a com- their bid, the algorithmic penny-jumping
been very helpful. I have been hearing/ ment letter to the SEC on it, prepared program cancels its bid as well, and the
reading about the possibility of chang- by Dennis Dick, CFA (a trader at best bid returns to $25.00. The penny-
ing from the penny tick size in trading. Bright Trading and a trader lobbyist). jumping technique is designed to battle
I have to admit that I’m not sure what I’ll summarize and reiterate some of for the top of the order queue, so as to be
this even means. Are exchanges going our submitted comments here. (Note: the first to interact with incoming market-
to make changes? Will traders benefit This information and the link to our able order flow, giving it the best chance
from these changes? Does this mean comment letter represent the opinion of to capture the spread. The dominance
the end to subpennies? (I’ve read some Bright Trading, and may not be shared of this penny-jumping activity discour-
of your past columns on the topic of by all traders.) ages other participants from providing
subpennies.) Are these changes coming One of our concerns is the lack of inter- liquidity, which keeps the spread on these
soon?—Ted A. est in the small- and mid-capitalization securities artificially wide.
Thanks, Ted, for the nice words. companies. We believe this is primarily We believe the tick size pilot will help
Always glad to help. Please keep the due to a lack of liquidity caused by the address this issue. Firms will not want to
questions coming. discouragement of limit-order traders. risk 500% more slippage than they face
To address your question, what you’re As we see it, many small-capitalization with penny ticks.
referring to is the Tick Size Pilot Program companies trade with very wide spreads, Another major concern of ours is
(SEC File No. 4-657). “Tick size” here broker–dealer internalization (that is,
refers to expanding the minimum tick to when the broker takes the other side
five cents (or similar) for certain smaller-
The dominance of of trade versus open market trading).
cap securities. Remember, we “old guys” the penny-jumping We write in our comments that “The
traded with 1/8th tick sizes and what was biggest issue that our traders cite is
called “teenies” (12.4 cents and 6.25
program discourages their inability to get filled on their limit
cents as the minimum tick size). This other participants orders, even when they are at the top
was before subpenny denominations and of the order queue. This is primarily
high-frequency trading and other such
from providing due to over-the-counter (OTC) market
activities came to be, and before “penny liquidity. makers intercepting marketable order
jumping” practices came to be, although flow that would otherwise interact with
some firms did engage in “leaning” on which should be attractive for market the trader’s displayed limit order.” In an
another order, placing their order a “tee- makers to trade because of the potential earlier public comment letter that we
nie” higher, thus limiting their losses to profit opportunity from the wide spread. submitted to the SEC in June 2010, we
the 6.25 cents. However, algorithmic penny-jumping cited this issue and recommended that
These minimum price increments programs appear to dominate these se- the SEC require an OTC market maker
have an impact on displayed liquidity curities, discouraging other participants internalizing a retail order to provide
and transaction costs. Since the markets from providing liquidity. meaningful price improvement over the
adopted decimalization, there have Here’s an example: Assume stock displayed quote.
been changes in market structure, the XYZ is trading with a spread of $25.00 We commend the SEC in attempting
way people trade, and the roles market x $25.20. If a market participant places a to address this issue in the tick size pilot
participants played. How will expanding bid at $25.01 to tighten the spread, the al- program but believe an exception in one
the minimum tick size for certain stocks gorithmic penny-jumping program will
help market participants? automatically bid $25.02. If the original Continued on page 45
May 2015 • Technical Analysis of Stocks & Commodities • 29
price movement. A volatility stop works well
when no other stop locations are nearby.
To use a volatility stop, compute the high-low
difference of price each day for the last month
(about 21 price bars). Average the result and
multiply by 2 to get the volatility. Subtract the
volatility from the current low price to get the
stop price. Trail the stop upward as price rises.
This type of stop is similar to a chandelier stop,
but Kaufman’s stop performs better.
I found that a multiplier of 2 works best for
my trades, but you may prefer 1.5 or another
number. If the stop price, in percentage terms,
is too far away from the current price, then skip
the trade and find a less volatile stock.
The computation need not be a painful expe-
rience. One way to do it is to go to http://finance.
yahoo.com (Figure 1), type in the stock symbol,
and on the left, you’ll see a link to historical
prices. I show that circled in red in Figure 1.
Click on that link and download the prices
into a spreadsheet. On the same Yahoo page,
the link for a spreadsheet download is located
below the price grid. Subtract the high price
from the low and use the average() worksheet
function to get the volatility. I am providing a
sample spreadsheet at http://traders.com/files/
VolStop.xls.zip that does this math for you. All
you have to do is paste in a month’s worth of
price quotes from Yahoo.
Psst, Here’s A Secret
10 Selling Tips
Tip #2: Sell at a target price. When the stock
reaches a price target, sell. You should have the
target (and a stop-loss) price picked out before
trading the stock.
Consider placing the target just below overhead
Do you spend as much time deciding to sell as deciding to buy? resistance, such as at a prior peak or valley, or at a
Here are 10 tips to make deciding when to sell easier. round number (double
or triple zeros such as
by Thomas Bulkowski $9.00 or $10.00 are
T
good for daytraders),
he stock of Ferro Corporation (FOE) has flatlined like a dead animal or at some other price
since November 2013. It is now 2015, and I have more than doubled target. If using a round
my money. Should I sell? number, consider sell-
Every trader or investor must answer that type of question for their own ing a few cents below
investments. In this article, I’ll discuss 10 selling tips to help you find your the target, like 8.93
answer. and 9.95. You want
to beat the crowd to
Tip #1: Use stops. This has to top the list of selling techniques because it the exit.
Landscape: blue67 sign/sign pole: vipman
makes the process simple. If you use a stop-loss order, you can quit wor- If you are using
rying about when to sell. The order will take care of that. All you have to chart patterns as the
do is locate the stop in the right place. Stop placement is an art beyond this entry signal, take the FIGURE 1: HISTORICAL PRICES.
article, but if you are having difficulty, use a volatility stop. height of the chart Downloading historical prices can be
I learned about volatility stops from Perry Kaufman’s book A Short Course pattern and add it to eral resources available from which
done easily given that there are sev-
In Technical Trading. The idea behind a volatility stop is to place a stop far the breakout price to do so. Here you see an example
enough away from the current price to avoid being stopped out on normal to get a target. That using Yahoo! Finance.
30 • May 2015 • Technical Analysis of Stocks & Commodities
Noisy indicators
delay your analysis
method works about 70% to 80% of the time, depending on
the chart pattern. You can cut the height in half for a closer
target that will work close to 90% of the time. In Figure 2
you see such an example.
A double-bottom chart pattern appears at AB and it con-
firms as a valid pattern when price closes above C, which
is the highest peak between the two bottoms. C is also the
Jurik algorithms
breakout price. deliver low lag,
The height from C ($24.50) to the lower of the two bottoms, low noise analysis
A ($21.67), is 2.83. Add the height to the breakout price (C)
to get a target of $27.33. Line D shows the target. For double
Tools for: TradeStation, AmiBroker, Investor/RT, MultiCharts, NeuroShell Trader,
bottoms, this method works 68% of the time. Using half the eSignal, NeoTicker, Tradecision, TradingSolutions, MATLAB, Ninja Trader,
height boosts the success rate to 86%. Line D is also where Genesis TradeNavigator, Market Delta, Extreme charts, DLLs for custom software
What led to your being inter- That’s interesting. You know, the pre- Applying technical analysis for invest-
ested in technical analysis? miere issue of this magazine was dis- ing or on longer time frames is con-
It was 1986 when I began tributed at a CompuTrac seminar. From tradictory to what most people do. Do
trading in Japanese commodi- your experience, do you think technical you combine technical analysis with
ties that I started in technical analysis taught you things about the fundamental analysis and if so, how?
analysis. There was little by market that you may not have known if I think the reason technical analysis
way of fundamentals, so charts were the you hadn’t applied technical analysis? has not been used for the longer time
only thing that made sense. Technical Certainly. Technical analysis taught me frame is because there has not been
analysis was on the cusp of a new era in that all markets can be reduced to the com- sufficient focus on using it that way.
Singapore, spurred by the publication mon denominator of price. And as Charles Technicians tend to be traders and not
of John Murphy’s first book, Technical Dow said more than 100 years ago, charts investors. So the use of technical analysis
Analysis Of The Futures Markets, in show that markets move in trends. With tended to be skewed towards the shorter
1986. Still, it was tough trading com- technical analysis, it is possible to forecast time frame. And in recent times, time
modities with huge paper charts, hand- market direction, something much needed frames have gotten even shorter.
drawn candlestick bars, and trendlines, by all investors and traders. But there is no reason for technical
plus moving averages calculated manu- What I hope to add to this premise analysis not to work in the longer time
ally. I began to feverishly learn technical through my book Integrating Technical frame—it is, after all, still about price, al-
Singapore skyline: joyful/Shutterstock
analysis from as many sources as I could. Analysis For The Investor is that it is also beit on a longer time frame. And investors
When I joined Merrill Lynch Singapore possible to forecast farther into the future should discover that technical analysis
in 1989 as a technical analyst, I had my with the consistent application of techni- works just as well in those time frames.
first encounter with technical analysis cal analysis into the larger time frame Some mental adjustment is needed to get
software, CompuTrac. From then on, I charts such as weekly, monthly, quarterly, used to the larger dimensions in time and
was hooked on TA! and even longer time frames. space, but it can be done.
34 • May 2015 • Technical Analysis of Stocks & Commodities
"Best Technical Analysis Website" for 14 Straight Years!
"In our opinion, it is the ‘best of the best’ among all online technical analysis and charting services."
- American Association of Individual Investors, February 2013
Directional Movement -DI (15.0000), Directional Movement -DI (12.0000) Directional Movement -DI (8.00000)
50
40
30
20
10
- DI < 5 - DI < 5 - DI < 5
Directional Movement ADX (71.0000) Directional Movement ADX (43.0000) Directional Movement ADX (56.0000) 0
3X ADX cluster turning 3X ADX cluster turning 95
down around 90 down around 90 85
75
65
55
45
35
25
15
USA - Nasdaq 100 index (2,821.03, 2,823.34, 2,780.24, 2,784.89, -40.2202
Market top
Market top 2500
Market top
2000
1500
1000
Mar Jun Sep Dec 2010 Mar Jun Sep Dec 2011 Mar Jun Sep Dec 2012 Mar Jun Sep Nov
FIGURE 1: MARKET TOP. On this weekly chart of the NASDAQ Composite, the market top is signaled by the ADX cluster peak at 90 and the 3x ‑DI cluster bottom at 5.
THE ADX
The calculation of the average directional movement (ADX) indicator
Directional Movement Examples
is built on the intuitive notion that a trend is a series of price ranges
extending in a consistent direction.
In sidebar Figure 1, example A, the second day’s trading range is
higher than the first day’s trading range, indicating positive directional A B C D
movement. In example B, the second day’s trading range is below the
first day’s trading range, an indication of negative directional movement. +DM +DM 2
Example C is more complicated because the second day’s range is both 1 1
lower and higher than the first day’s range. 2
Directional movement is only considered to be up, down, or not
present. Therefore, the larger part of the day’s range extending beyond 2
the previous day’s range is used to identify directional movement. In
example C, the largest part of the second day is higher; consequently, 1 1 -DM
-DM 2
the directional movement is positive. In example D, the largest part of
the second day’s range is lower so that the directional movement is
negative. In example E, the second day’s range is within the first day’s
range so the directional movement is zero. 12
Directional movement for the ADX is expressed as a function of true
range (TR). True range is the largest of the following:
1 The difference between today’s high and today’s low
2 The difference between today’s high and yesterday’s close E
3 The difference between today’s low and yesterday’s close. SIDEBAR FIGURE 1: DM EXAMPLES
In the Excel 4.0 spreadsheet (sidebar Figure 2), the first calculation
for ADX is the true range value. This is performed in column E. The Next, column F determines the positive directional movement or
formula for cell E3 is: returns zero if there is no positive directional movement. The formula
=MAX(B3-C3,ABS(B3-D2),ABS(C3-D2)) for cell F3 is:
=IF(B3-B2>C2-C3,MAX(B3-B2,0),0) to calculate the ratios of +DM and ‑DM to TR. The ratios are called the
+directional indicator (+DI) and ‑directional indicator (‑DI). The formula
Column G calculates the negative directional movement or returns for the +DI column begins at cell K16:
zero if there is no negative directional movement. The formula for
cell G3 is: =Round((100*(I16/H16)),0)
=IF(C2-C3>B3-B2,MAX(C2-C3,0),0) The formula for the +DI column begins at cell L16:
The daily calculations are volatile and so the data needs to be =Round((100*(J16/H16)),0)
smoothed. First, sum the last 14 periods for TR, +DM and ‑DM. The
formula for summing the TR is in cell H16: The INT (integer function) is used because the original developer
dropped the values after the decimal in the original work on the ADX
=SUM(E3:E16) indicator. The next step is to calculate the absolute value of the differ‑
The formula for summing the +DM is in cell I16: ence between the +DI and the ‑DI. This is done in column M and the
formula for cell M16:
=SUM(F3:F16) =ABS(K16-L16)
The formula for summing the -DM is in cell J16: The next column calculates the sum of the +DI and ‑DI. The formula
=SUM(G3:G16) for cell N16:
=K16+L16
The smoothing formula for the TR14 column begins at cell H17:
The next step is to calculate the DX, which is the ratio of the ab‑
=Round((TRUNC((H16-(H16/14)+E17),3),2) solute value of the difference between the +DI and the ‑DI divided by
The smoothing formula subtracts 1/14th of yesterday’s TR14 from yes‑ the sum of the +DI and the ‑DI. This is done in column O. The formula
terday’s TR14 and then adds today’s TR value.The rounding((truncating for cell O16:
function is used to calculate the indicator as close as possible to the =Round(100*(M16/N16)),0)
developer of the ADX’s original form of calculation (which was done The final step is smoothing the DX to arrive at the value of the
by hand). ADX. First, average the last 14 days of DX values. The formula for
The smoothing formula for the +DM14 column begins at cell I17: cell P28:
=Round((TRUNC((I16-I16/14)+F17),3),2) =AVERAGE(O15:O28)
The smoothing formula subtracts 1/14th of yesterday’s +DM14 from The smoothing process uses yesterday’s ADX value multiplied by
yesterday’s +DM14 and then adds today’s +DM value. The smoothing 13, and then add today’s DX value. Finally, divide this sum by 14. The
formula for the -DM14 column begins at cell J17: formula for cell P29:
=Round((TRUNC((J16-(J16/14)+G17),3),2) =Round((((P28*13)+O29)/14),0)
—S&C
The smoothing formula subtracts 1/14th of yesterday’s ‑DM14 value
from yesterday’s ‑DM14 and then adds today’s ‑DM value. Now we Readers can find a copy of this ADX spreadsheet file at our website, www.
have a 14-day smoothed sum of TR, +DM and ‑DM. The next step is traders.com, in the Article Code area in the May 2015 issue listing.
BUYING INSURANCE options. So what’s a trader to do, when starts calling in claims? Easy. They cut
Which way will oil and energy prices go opportunities present themselves in a their losses by reinsuring with a bigger
as we head into the spring and summer market such as oil and energy? company. So for instance, let’s say that
months, and how can you trade these ABC insurance sells $50 million in home
markets? Become the insurance salesman insurance and they want to hedge their
As spring creeps up on us, so does The best way to capitalize on this op- risk. What they do is perhaps reinsure so
the winter thaw out of the Northeast. portunity is to become an option seller. that if claims go over $100 million, they
For much of the winter season, record Selling options increases your probability are covered from that point on. Their risk
amounts of snowfall blanketed the north- of being right over time, but the risks if you is between $50 and $100 million, but no
eastern part of the United States, with are wrong increase as well, and in some more. You want to do the same thing
some storms so fierce, they were given cases can be unlimited risk. So how do with options. In Figure 2 is an example
names such as Pandora and Thor. insurance companies stay in business after
Those poor Nor’easters, as I like to a hurricane blows through and everyone Continued on page 45
call them, are happy that the winter
season of 2014–2015 is finally behind
them. So much so that “cabin fever” is
in full effect from North Carolina up to
Maine. People are eager to get out and
travel, and this should bode well for oil
and gas demand.
This year presents us with different
problems that were not around last sea-
son. For instance, there is a much greater
supply of oil worldwide, so perhaps prices
will shift up and down more on the
economy and off of international growth
than before. The move in oil over the last
year presents risks that were unseen in
years, no matter how much the demand
for oil might occur this summer. How
can a trader capitalize on this potential Figure 1: exploding option premiums. Premiums on USO options look to be three times higher than
opportunity with minimal risk? this time last year.
If there’s one thing that oil markets are
yielding these days, it’s uncertainty. All
of this uncertainty about the future price
of oil has option premiums exploding this
year versus last year. Looking at the chart
in Figure 1, this tells an option trader that
premiums on USO options look to be
three times higher than at this time last
year. That’s like seeing your car insur-
ance go up triple for the same coverage.
Good for the insurance salesman, bad Figure 2: hedging your risks. Here you’re selling the 16 puts and hedging the 14 puts for a combined credit
for you. The one thing we don’t want of 0.50 or $50 per spread. A credit spread has limited reward and risk. The risk is that USO drops in value, causing
to do as option traders is buy expensive the price of puts to rise. The most you can lose is the difference between strikes minus the credit received.
Haguro Method
METASTOCK Overview
90 South 400 West, Suite 620 High High
Given that the Haguro method is
Salt Lake City, UT 84101 Japanese in origin, it shouldn’t
Phone: Sales 800 508 9180, Here, we see the open
& close below the
Open come as a surprise that it employs
support 801 265 9998 midpoint of the line. candlesticks. The current encod-
Email: sales@metastock.com, ing of the method is designed
support@metastock.com Close
to work with weekly charts.
Close
Product: MetaStock add-on There may be a daily strategy
based on the Haguro method This example shows worked out somewhere, but it’s
the open & close above
System requirements: Win- the midpoint of the line. not simply a matter of chang-
Open
dows 7 and above, 2.4GHz ing periodicity. For example,
or higher, 4GB RAM, 1.6GB Low Low when using weekly charts, gaps
disk space and other events are just about
Price: Free High
Figure 1: Candlestick Versus Midpoint. Candlestick patterns are
given a specific number to identify them. There are two groups with eight
eliminated.
price
patterns in each. One group will be based on bodies where the close is There are two parts to this
by S&C Staff greater than the open (the green candle on the left). The other group uses strategy. The first part looks at
where the candle is relative to
T
candlesticks where the body is red (that is, close<open). Within each group,
Middle
he Haguro method ofprice
chart specific patterns are based on the relationship of the body to the midpoint.
the midpoint of range, and the
analysis was written about second looks at where the close
by Seiki Shimizu in his of the week is relative to the last
book The Japanese Chart
Low
High
price
peak or valley of a 7% zigzag.
Of Charts, and we published price There’s no user manual that tells
16 15 13an article
12 10on the 14 method
11 by you how to trade this strategy,
Gary Burton in the April 2015 Middle but there is a video available on
issue of Technical Analysis of price YouTube titled “Trading The
Stocks & Commodities. The Haguro Method—Jeff Gibby”
method has now been adapted Low
that you can take a look at.
as a MetaStock add-on, which price
is available to MetaStock users 1 2 3 4 5 6 7 8 Range midpoint
at no additional cost. You can and candlestick
download the add-on from www. Figure 2: Identifying Numbers for Up Candle Bodies. Again, the body position
metastock.com/haguro. Burton, reference to “line” means “range.” The middle point is the midpoint calculated We’ll tackle the first part using
director of the Australian School charts from the video for some
as explained in the text of this article.
A Priori—Known ahead of time. open, the body is black. being a fraction of a common fundamental
Average Directional Movement Index (ADX)— Chandelier exit—A stop order calculated cycle length.
Indicator developed by J. Welles Wilder to based on either the highest high or the Market maker—A broker or bank continually
measure market trend intensity. close and some multiple of average true prepared to make a two-way price to pur-
Average true range—A moving average of range. chase or sell for a security or currency.
the true range. Drawdown—The reduction in account equity Moving average convergence/divergence
Back-resting—A strategy is tested or op- as a result of a trade or series of trades. (MACD)—The crossing of two exponen-
timized on historical data and then the Dynamic link library —Refers to a group of tially smoothed moving averages that are
strategy is applied to new data to see if small programs that can be used (“called”) plotted above and below a zero line. The
the results are consistent. by your main program while running crossover, movement through the zero
Candlestick charts—A charting method, under Windows. line, and divergences generate buy and
originally from Japan, in which the high Efficient market theory—All known informa- sell signals.
and low are plotted as a single line and are tion is already discounted by the market Volatility index—A widely used measure of
referred to as shadows. The price range and reflected in the price due to market par- market risk. Sometimes referred to as the
between the open and the close is plotted ticipants acting upon the information. “investor fear gauge.”
as a narrow rectangle and is referred to as Fast Fourier transform—A method by which
the body. If the close is above the open, to decompose data into a sum of sinusoids
the body is white. If the close is below the of varying cycle length, with each cycle
using USO.
USO as of this writing sits just above
$18. You believe the price will be above
$16 by summer, but want to be covered in
case you are wrong. You create a credit
spread using puts, selling the 16 puts
and buying the 14 puts for a combined
credit of 0.50 or $50 per spread. This is
the most that you can receive, if USO is
above $16 by mid-July. What are your
costs and risks of this type of spread?
A credit spread, as this is, has limited
reward and risk. The reward is limited
by the amount of money received, as you FIGURE 3: PLAYING THE NUMBERS. Oil has a 68% chance of being above the sell price of $16, and a 95%
chance of being above $14 by mid-July. You have a 68% chance of keeping the full amount collected ($50 per
make money when the spread drops in spread) and a 5% chance you will lose $150 per spread.
value to zero. So what’s the risk? The
risk is that USO drops in value, causing
the prices of puts to rise, so much so of USO is on the left, as well as where spread their risk around different areas,
that the 16 and 14 puts are deep in-the- you don’t want it to go. Statistically, oil and most important, they reinsure in
money. The good news is that because has a 68% chance of being above the risky demographics, where premiums are
of the purchase of the 14 puts, the most sell price of $16, and a 95% chance of highest. Do yourself a favor: If you are
that can be lost is the difference between being above $14 by mid-July. This means going to sell option premiums, do what
strikes, minus the credit received. there’s a 68% chance of keeping the full the insurance companies do. They have
Let’s dive into this a bit deeper. Look- amount collected ($50 per spread) and been in business a long time, and they
ing at Figure 3, this chart shows what you have a 5% chance that you will lose will be here long after we are gone!
could happen if the price of USO were $150 per spread.
to rise, fall, or stay the same over time. This is exactly how insurance com-
Figure 3 clearly shows where the price panies work—they play the numbers,
Q&A
BRIGHT orders. This discourages participants uled to begin in May 2015 and is expected
Continued from page 29 from placing passive limit orders on the to run for 12 months. Thus, it will be a
exchanges, which, at certain levels, may while before changes are implemented.
of the program’s terms hurt the case for impair public price discovery. Readers can view our complete comment
price improvement, and we address this Further, we are concerned about the letter at http://www.sec.gov/comments
in our submitted comments. so-called “dark markets” (that is, non- /4-657/4657-82.pdf or can read more
We strongly believe that the lack of dis- displayed bids & offers) in the market- about the pilot program itself at the
played liquidity in the small-cap space is place. Because of this, we recommend SEC’s website.
primarily due to the rise in off-exchange that one of the tests be modified to I will be interested to see the data
trading and broker–dealer internaliza- restrict broker–dealer internalization that the SEC starts to gather on the pilot
tion. Displayed market makers are set- to see if market quality improves in the program later this year. I’ll return to this
ting the price but not getting the reward underlying securities. topic then.
of getting the execution on their limit The pilot program is currently sched-
MetaStock XIV
MetaStock Product: Trading platform by S&C Staff
M
90 South 400 West, Suite 620 System requirements: Windows 7
Salt Lake City, UT 84101 and above, 4GB RAM, 1.6GB disk etaStock has had a devoted
Phone: sales 800 508 9180 space; see website for specifics following since its early
Email: sales@MetaStock.com, Price: Daily charts, $499; real-time, days and continues to have
support@MetaStock.com $1,395 one. It’s a terrific product that has only
gotten better. In this version, navigation
is more robust, the Forecaster tool has
been enhanced, and there’s a new trading
system that’s part of version 14, just to
name a few of the changes. We’ll start
by looking at the power console.
Power console
In Figure 1 you see the new look of the
power console. If you are familiar with
MetaStock, the first thing you’ll notice
is the split screen. On one side is a tree
structure that lets you find the instrument
you want to use in your analysis. The
advantage of the tree structure is you can
start with a broad class of securities and
FIGURE 1: POWER CONSOLE SCREEN. On the far left are tabs you can use to select one of four major catego- then use subclasses to narrow your search
ries. For this screen capture, the major category chart was selected, but explore, system test, and forecaster are
to view only your pertinent subclass of
alternative choices. To the right of the tabs is a split screen, with the left-hand portion being an instrument (that is,
equities) tree structure and the right being chart options, such as the number of records to load and whether or equities. Since the charts tab on the left
not to use a template. At the top of the instrument tree for this screen capture, it reads “Instruments 1 of 359972.” was chosen, the right side of the screen
This means one instrument out of a possible 359,972 has been selected. Using the tree structure and looking for a lets you choose chart periodicity, use of
“1 of …” type of statement, the next class of items is public online data lists, followed by equities – North America,
a template, how many records you want
and then US ETF. From the list of ETFs, we selected the symbol QQQ.O.
to load, and more. It’s not obvious from
the screenshot for Figure 1, but you can
resize the power console screen. In earlier
versions, it was a fixed size.
At the very top of the tree list shown
in Figure 1 is the word instrument. If you
right-click on it, you will be prompted
with a screen that asks if you want to
manage your public online data list
or build a custom list. If your focus is
going to be North American instruments,
it might make sense to pare down the
tree a bit. Let’s say you select “manage
public lists…” You get a screen similar
to what you see in Figure 2. It’s simple
to use. All you have to do is scroll down
the list on the left, and use the buttons in
middle, that is, add, remove, and remove
FIGURE 2: PUBLIC LIST EDITOR. Choose an item from the left and then an action using the buttons in the all, and create a list of items you want to
middle to add, remove, or remove all from the list on the right. If you don’t like the order of the items in this newly
created list, select one and move it up or down using the move up and move down buttons on the right. You can
see. Give this newly formed list a name
create a header to name your list. Use a button on the right or pick a header from the left-hand list of equities and by using the header button. Then, the
add it to items on the right. next time you use the charts tab in the
46 • May 2015 • Technical Analysis of Stocks & Commodities
power console, you’ll see just the list
you have created.
Other bells and whistles have been
added to this revised power console
interface, but one worth noting is that
you can now open a chart using a
template with several different periods.
For example, if you have a template
that has three charts with monthly,
weekly, and daily periodicities, you
can open that three-chart layout from
the power console. Prior to version 14,
if you opened that kind of template,
the software would have selected one
of the periodicities and used it for all FIGURE 3: Forecaster Price and Volume Chart. The title above the price series chart displays the symbol and
of the charts. Speaking of periodicity, the last event used from the library. The gray highlighted square overlaying the price series is the result of clicking & drag-
you can now create bars using ticks. ging a special mouse icon created when you choose user-defined pattern select in the upper right-hand corner. As soon
The interface defaults to a selection of as you click a second time, the area where you want to base your pattern is created and the dialog screen overlaying the
price appears asking you if you are done with the selection portion of the price chart with the pattern you want.
Fibonacci numbers. All of this is well
and good, but what will really tickle the
trader is the Forecaster. which way you want to go. You can it fits a price series.
draw the pattern free-hand, or you can In the Forecaster window there are
Forecaster start with the price series you’ve chosen two tabs: forecast analysis and event
This ingenious, clever feature unique to and locate the pattern you want. Let’s try recognizer library. Choose the former
MetaStock has been made better. Here’s the latter because it illustrates some of and then choose the price, volume, and
the idea: Suppose you wanted to know the steps you would go through if you event markers tab to arrive at a chart with
what a price would do after a technical choose the path of starting with a free- your selected price series. Clicking on a
event such as a Bollinger Band upward hand drawing and then seeing how well button in the upper right allows you to
breakout. Ideally, you would like to
see some sort of depiction of the prob-
ability of price change after this event
has occurred. When you say “after,” it
could range anywhere from a few days
up to 90 days. What Forecaster does is
find out, on a purely statistical basis, if
price moved in the direction you thought
it would, based on the technical event
that occurred.
MetaStock has over 70 events you can
choose from. If you are not exactly sure
what a specific event is, you can click on
the event and get a short and complete
textual description. In version 14, in
addition to adding six new events and
more ways to sort the results, MetaStock
has added the ability to draw your own
pattern and have the software match it
against a price series.
There are a couple of ways to go about
doing this. You start from the power
console, select the Forecaster tab, and
follow an instrument from the tree. Figure 4: Price Pattern Editor. The top portion reflects the pattern you identified in the price series defined in
You are now in the Forecaster, which Figure 3 by clicking & dragging the mouse cursor over the area of interest in the price series. Circles connect straight-line
has its own window separate from the
segments. The circles correspond to closing prices from your price series, and only the closing prices that require a change
in direction. You can use your mouse to alter the shape of the pattern, you can decide how many price bars you want in the
MetaStock XIV window. Here’s where pattern, the sensitivity, and your cloud focus. There’s a button on the lower-left corner of the circle and line diagram that
you are going to make a decision about allows you to get the pattern quick test, which is displayed in the bottom portion with green and red segments.
use your mouse in a click & drag fashion pattern, you can easily save it in the event Other
to identify the portion of the price series recognizer library, which is one of the Another feature of MetaStock XIV is
you want for your pattern (Figure 3). first tabs you could have chosen from the the LCI trading system. It is so robust
In Figure 3 you see a dialog screen Forecaster window. Once saved, you can that it will take a second review to cover
overlaying the price series. In that dialog select the pattern and request the software it sufficiently. Suffice it to say, it is a
screen is this question: “Do you want to find out how well it did in actual use system based on support & resistance
to capture the selected price formation by selecting the tab that lets you see the using support & resistance calculations
as a user-defined pattern?” If you select forecast cloud (Figure 5). and Fibonacci levels.
the “yes” button on the right, it’ll result You get to make a couple of important You can find a number of webinars on
in the upper portion of the screen you inputs from the screen shown in Figure 4. YouTube that will help you understand
see in Figure 4. The series of straight One of these is pattern match sensitivity. how to use the Forecaster feature and
lines drawn between the circles is a You have three choices: high, medium, or the LCI system. There is also friendly
representation of the pattern you located low. The idea behind these three choices and knowledgeable support available at
in Figure 3. You can take your cursor is to give the user the ability to say how no extra cost.
and move the circles to draw a slightly closely they want to have the pattern
different pattern or you can create a new match a part of the price series. If you Summary
one. You can now name your pattern to select low sensitivity, you’ll have more With navigation made easier and more
save it in the event library. Next, you events but the match may not be too close features added to the Forecaster, this
can click on the button pattern quick to what you’re looking for. You could go new iteration has made an outstanding
test, which will display what you see in to the opposite extreme and select high product even better.
the bottom portion of Figure 4. sensitivity, in which case you’ll probably
The quick test allows you to scroll get fewer events but with a much better Further reading
your price series underneath your pattern match. A key element in this process is Gopalakrishnan, Jayanthi [2013].
to see how well it fits other parts of the that a cloud will not be drawn if there are “Charting The Future With Scott
price series. This makes perfect sense fewer than three events. In other words, Brown” (interview with CEO of
since you have the ability to alter the your pattern must match some part of the MetaStock), Technical Analysis of
shape of your pattern using the circle and price series at least three times. Thus, a Stocks & Commodities, Volume
line diagram that is displayed above the key result is in the heading of Figure 5, 31: October.
pattern quick test. When you get to the which states that the cloud is based on S&C Staff [2013]. “MetaStock 12,”
point where you are satisfied with the the most recent 14 events. product review, Technical Analysis
of Stocks & Commodities, Volume
31: January.
S&C Staff [2014]. “MetaStock XIII,”
Navigation is more robust, the Forecaster Technical Analysis of Stocks &
tool has been enhanced, and there is a Commodities, Volume 32: March.
new trading system in this version. ‡MetaStock
if ( x1 > x0 )
{
curdist = 0;
newpip = FindMiddlePIP( data, x0, x1, "curdist" );
if ( oldpip != -1 )
pips[ oldpip ] = 0; // remove smaller one
pips[ newpip ] = 1;
oldpip = newpip;
}
Figure 5: AMIBROKER. Here is a sample chart showing the zzTop indicator applied
on ASML daily data, replicating the chart from Siligardos’ article in this issue. x0 = x1; // next leg
x1 = -1; //
}
code directly in AmiBroker in a short and concise way without }
}
having to use an external DLL and/or external languages. The }
code listing follows.
An example of the zzTOP indicator as implemented on an // draw lines connecting pip points
x0 = 0;
AmiBroker chart of ASML Holdings is shown in Figure 5. x1 = -1;
zzline = Null;
AmiBroker code listing for ( i = 0; i < BarCount; i++ )
{
SetBarsRequired( sbrAll, 0 ); if ( pips[ i ] )
{
function FindMiddlePIP( data, x0, x1, curdist ) x1 = i;
{ line = LineArray( x0, data[ x0 ], x1, data[ x1 ] );
bi = BarIndex(); zzline = IIf( NOT IsNull( line ), line, zzline );
x0 = x1;
y0 = data[ x0 ]; }
y1 = data[ x1 ]; }
line = y0 + ( y1 - y0 ) * ( bi - x0 ) / ( x1 - x0 ); if ( LogMode )
zzline = exp( zzline );
distance = abs( data - line );
maxbars = HHVBars( distance, x1 - x0 ); Plot( zzline, "zzTop", colorRed, styleThick );
pipbar = Nz( x1 - maxbars[ x1 ], -1 ); Plot( C, "Price", colorDefault );
if ( pipbar != -1 )
VarSet( curdist, distance[ pipbar ] ); —Tomasz Janeczko, AmiBroker.com
www.amibroker.com
return pipbar;
}
FIGURE 8: EXCEL, zzTOP Interval Controls. Slider controls allow you to immediately see the effects of changing the starting and ending points for the
zzTOP indicator.
Much like zooming in on a map from satellite level down Use the checkboxes to select the indicator or indicators
to neighborhood level, the closer we get, the more fine de- you wish to display as a way to control chart clutter.
tail we can see. What he calls perceptually important points In Figure 9, the interval is the full chart and we can see
(PIPs) can do that for us. When we ask for only a few PIPs, how the zzTOP indicators stack up against a standard zigzag
we are highlighting the large (high-level) moves and ignor- over the same interval.
ing the small ones. As we ask for more points, we are, in
effect, zooming in to highlight the ever-finer details. Additional uses for PIPs
The zigzag indicator I will use here was excerpted from (perceptually important points)
the spreadsheet I built for my June 2013 Traders’ Tips sub- In 2010, while Google and I were looking for discussions of
mission (which readers can find in the Traders’ Tips archive pattern matching in time series data, I came across an inter-
at Traders.com). I am using that indicator as a starting point esting master’s thesis written in 2008 titled “Novel Pattern
since Siligardos’ article in this issue compares the behaviors Matching Methods For Stock Data Analysis” by Zhang Zhe,
of his zzTOP indicators to the traditional zigzag. City University of Hong Kong. It’s a fairly accessible read
My implemention of the zzTOP indicator in Excel has and proposes a three-step process for locating and identify-
three user controls (see Figure 7): ing patterns such as head & shoulders in a time series stream.
Interested readers can access a free PDF of the paper at:
• Type in the number of legs you want to see
• Click on the checkbox to toggle between arithmetic or http://lbms03.cityu.edu.hk/theses/abt/mphil-is-
logarithmic calculation modes b23405983a.pdf.
• Click one or more times on the gray button to select the The spreadsheet file for this Traders’ Tip can be down-
pricing column to use in calculation of the indicator. loaded from www.traders.com in the Traders’ Tips area. To
This “tumbler” button includes a hybrid choice of Hi:Lo successfully download it, follow these steps:
Combo.
• Right-click on the Excel file link (“PIP_Filters.xlsm”),
In the Hi:Lo Combo mode, both the high and low of a bar then
are tested when selecting candidate points. This behavior is • Select “save as” to place a copy of the spreadsheet file
similar in concept to the standard zigzag and can produce a on your hard drive.
very choppy zzTOP indicator.
The zzTOPauto version of the indicator swaps the specific —Ron McAllister
number of legs for a proximity test, but otherwise, the con- Excel and VBA programmer
rpmac_xltt@sprynet.com
trols behave the same way.
To be able to see the effects of changing the starting and
ending points for the zzTOP indicators, I have provided the
ability to specify the interval of interest via slider controls
(Figure 8). These can be used to step the left and right edges
of the computation interval in or out and immediately see
what happens to the indicator.
May 2015 • Technical Analysis of Stocks & Commodities • 55
FUTURES LIQUIDITY
T
rading liquidity is often over- very high volumes. The greatest number three-year period. Thus, all numbers in
looked as a key technical of dots indicates the greatest activity; this column have an equal dollar value.
measurement in the analysis futures with one or no dots show little Columns indicating percent margin
and selection of commodity activity and are therefore less desirable and effective percent margin provide
futures. The following explains how to for speculators. a helpful comparison for traders who
read the futures liquidity chart pub- Courtesy of CBOT wish to place their margin money ef-
lished by Technical Analysis of Stocks ficiently. The effective percent margin
& Commodities every month. is determined by dividing the margin
value ($) by the three-year price range of
Commodity futures contract dollar value, and then multiply-
The futures liquidity chart shown be- ing by one hundred.
low is intended to rank publicly traded
futures contracts in order of liquidity. Stocks
Relative contract liquidity is indicated Trading liquidity has a significant ef-
by the number of dots on the right-hand fect on the change in price of a secu-
side of the chart. rity. Theoretically, trading activity can
This liquidity ranking is produced by serve as a proxy for trading liquidity
multiplying contract point value times All futures listed are weighted equally and equals the total volume for a given
the maximum conceivable price motion under “contracts to trade for equal dol- period expressed as a percentage of the
(based on the past three years’ historical lar profit.” This is done by multiplying total number of shares outstanding. This
data) times the contract’s open interest contract value times the maximum pos- value can be thought of as the turnover
times a factor (usually 1 to 4) for low or sible change in price observed in the last rate of a firm’s shares outstanding.
Wallstreetwindow.com
trading systems
Range or Trend? Self-Adaptive
Know What’s Coming! — Precise entries and exits — Trading Strategies
www.GoldenTrifecta.com
RangeOrTrend.com Proprietary Research
daytradesimple.com
To Advertise
contact: Ed Schramm
Day Trading Lessons ESchramm@traders.com • (206) 938 0570
Starting at $475
B
We have no control over the outcome and the odds are not in
ernard Baruch, the famed American financier and inves- our favor. But the stakes are usually low, and the thrill of the
tor, often repeated the following quotation, which he experience compensates for the ridiculously low odds of win-
attributed to Sir Ernest Cassel, good friend and banker ning. Now, when you bring that same mindset to the financial
to King Edward V11: markets in general or to the stock market in particular, you
are condemned to bet blindly, make high-risk bets character-
medieval backgammon scene: carmina boranus/wooden board: Lonely Walker/ collage: nikki Morr
When as a young and unknown man I started to be successful I
ized by recklessness and intense emotions, and our results are
was referred to as a gambler. My operations increased in scope
and volume. Then I was known as a speculator. The sphere of my
unlikely to be any different from those of the novice gambler
activities continued to expand and presently I was known as a hoping for luck in the Powerball lottery or on the races. But in
banker. Actually I had been doing the same thing all the time. gambling, as in speculating and investing, there is a minority
of participants who consider themselves professionals and
Much the same could be said today for gambling, speculating, who win consistently. What is it that this minority does that
and investing. When you start off, your operations are small sets them apart from the majority? I will attempt to answer
and people call you a gambler. As your operations grow, they this question later on in this article.
call you a speculator, and then when your operations are of
a decent size, you achieve a level of respectability and you Can you improve the odds by speculating?
become known as an investor. What do these terms really If gambling is characterized by high risk, recklessness, and
mean when applied to market participants? Can we arrive at intense emotions, what then is the commonly held view of
some clear definitions and remove some of the ambiguities speculating? To most people, it is no more respectable than
embedded in the common usage of these terms? gambling. In some corners of the investing world, speculat-
ing is viewed as dishonorable, seedy, and unwholesome. It
Is stock trading gambling? is the province of oily traders trying to wrest out a fast buck
For the novice player, gambling is a high-risk play on the from the markets, staring in darkened dens at screens lit up
outcome of an event characterized by recklessness and in- by red and green flashing lights. It is no more reputable than
by Stella Osoba
60 • May 2015 • Technical Analysis of Stocks & Commodities
AT THE CLOSE
analysis as proxies for the investor. But holding a security
indefinitely will not protect an investment from catastrophic
Your most important consideration losses, nor will it guarantee gains. Fundamental data will not
when taking a position is how much tell you when to enter a position. That a company has good
fundamentals is no guarantee that the price of the security
you can afford to lose, not how will rise and not go sideways or even fall. A speculator has
much you hope to win. no less interest in preserving capital than the investor does.
In fact, the speculator and gambler might have more reason
to try to preserve the original capital because that’s how they
stay in the game. Moreover, being risk-averse does not guar-
gambling, and no one with an ounce of honor would dare antee the investor a steady income. The stock market is risky
admit in polite society to being a speculator. And yet in 1938, and everyone who participates in it has to learn to embrace
John Maynard Keynes said the following: “A speculator is a level of risk.
one who runs risks of which he is aware, and an investor is Less than 100 years ago, all stock trading was seen as
one who runs risks of which he is unaware.” It is also true speculating. In fact, in England, the Universities and College
that Keynes often referred to himself as a speculator. So what Estates Act of 1925 (The Trustees Act) made it onerous and
exactly is speculating? Speculators buy or sell with the idea of nearly impossible to invest any of the endowment money of
disposing of the asset for a profit in the future. But isn’t that the colleges of Oxford and Cambridge in the stock market
what investors do? How then are they different? It could be because stocks were seen as too risky and the colleges’ funds
that a speculator, knowing that he is involved in a high-risk were supposed to be managed conservatively. Speculators
trade, studies the market, and devises specific rules based on took positions in the stock market, not investors. It was John
particular strategies to enter and exit the market. As Jesse Maynard Keynes who in the early 1920s succeeded in per-
Livermore, the well-known speculator, once said: suading the Fellows at King’s College, Cambridge, to be the
first university college in England to put part of its funds in
Speculators in stock markets have lost money. But I believe it the stock market. Keynes also showed that it was possible to
is a safe statement that the money lost by speculation alone is speculate and invest in the stock market successfully.
small compared with the gigantic sums lost by so-called inves-
tors who have let their investments ride. From my viewpoint, Think like a statistician
the investors are big gamblers. They make a bet, stay with
Gambling, speculating, and investing
it, and if it goes wrong, they lose it all. The speculator might
buy at the same time. But if he is an intelligent speculator, he
are, at their core, disciplines that rely on
will recognize—if he keeps records—the danger signal warn- somewhat basically interchangeable skill
ing him all is not well. He will, by acting promptly, hold his sets. This is what the professional knows
losses to a minimum and await a more favorable opportunity but the public does not. And this is why
to reenter the market. it is so difficult to come up with defini-
tions that sufficiently differentiate each
In other words, what Jesse Livermore seems to be saying is term. To succeed at gambling, speculating, or investing, you
that a speculator is one who enters the market with clear rules need to be in control of your emotions and have a firm grasp
delineating the trade, which tell him under what conditions to of probabilities. Whether you are a professional gambler in
hold the trade and when to exit for a profit or loss. Las Vegas or a billion-dollar hedge fund manager on Wall
Street, you know that you do not have to be right all the time
What does “investing” mean? to be successful. Given this, you know you must have clear
Of the three terms, investing seems to be considered the most entry & exit rules, and you must also become an excellent
respectable among lay people. No one is abashed to refer to risk manager.
themselves as an investor. It appears that investing is what Unlike with the general public, your most important consid-
you must aspire to in order to achieve respectability. So how eration when taking a position is how much you can afford to
then can we define investing? For far too many people, in- lose, not how much you hope to win. In games of uncertainty,
vesting is a byword for buy & hold. The Business Dictionary you are guided by your knowledge of human nature (yours
describes the investor as one “whose primary objectives are and others) and chance. In order to win, you have to have a
the preservation of the original investment, a steady income, firm understanding of what your opponent is likely to do, what
and capital appreciation.” In this sense, the investor is seen you will do, and what your odds of winning are. You have
as more prudent than either the gambler, who is described as to know about risk, understand what it is, and master the art
one whose risk of loss is out of proportion to the rewards, or of managing it. It is not a coincidence that many gambling
to the speculator, who is defined as one who takes high risks terms such as risk of ruin, the Kelly criterion, Monte Carlo
for high rewards. Because of this aura of respectability, which simulation, and theory of runs are also used by speculators
common usage has attached to the idea of investing, lay people and investors. Investment firms that manage billions of dollars
aspire to investing and substitute buy & hold and fundamental recruit “quants” to build models based on statistical inference
May 2015 • Technical Analysis of Stocks & Commodities • 61
AT THE CLOSE
to make best guesses on the outcome of market events. Statis- the rules of the game and has evolved the temperament and
tical inference can be thought of as gambling theory applied skill to stick with it and succeed.
to the world around us.
Stella Osoba is a financial writer who has written for the
What’s your priority? Market Technician Association’s (MTA) e-newsletter Techni-
To stay in the game, you must make it your business to preserve cally Speaking, their Journal Of Technical Analysis, and their
capital. This is your number-one priority, no matter what label CMT e-newsletter, as well as for TraderPlanet.com. She may
you apply to your dealings. And you must also make it your be reached via email at stellaosoba@gmail.com.
business to master the language of probabilities. You must
have clear rules that will dictate what you will do when you Further reading
are wrong. The thrill is not to be found in the playing of the Osoba, Stella [2015]. “Does Technical Analysis Work?”
game as the novice expects; rather, it’s in the staying in the Technical Analysis of Stocks & Commodities, Volume
game. That is what allows the rewards to come. So gamble, 33: February.
speculate, invest—call it what you may; the professional knows
TRADERS'
RESOURCE
The information in Traders’ Resource is the most accurate at the time of posting and is subject to change. Because the vendors posting to Traders’ Resource are responsible for their own listing, Technical Analysis, Inc. declines any and all liability
for any representations made by the businesses and individuals listed. Nor can Technical Analysis, Inc. endorse any business or individual listed on Traders’ Resource. Technical Analysis, Inc. makes no warranties, express or implied, as to the
accuracy and reliability of claims herein. You agree to release Technical Analysis, Inc., together with its respective employees, agents, officers, directors and shareholders, from any and all liability and obligations whatsoever in connection with or
arising from your use of Traders’ Resource. If at any time you are not happy with the information posted to Traders’ Resource or object to any material within Traders’ Resource, your sole remedy is to cease using it. This list is updated frequently.
If you are aware of a business that should be listed, please email us at Editor@Traders.com.
58
62 • May 2015 • Technical Analysis of StockS
tocks & c
CommoditieS
ommodities
Subscribe Or Renew Today!
Now a subscription to Technical Analysis of Stocks & Commodities magazine
gets you so much more than just a magazine:
8999
1 year...................
$
2 years.............. 149
$ 99
3 years.............. 199
$ 99
On customer service:
“TRADESTATION ORDER SPECIALISTS SET UP
MY COMPLEX ORDER STRATEGY SO NOW IT’S
JUST TWO CLICKS OF A MOUSE.”
On automation:
The above are unpaid customer testimonials. The customer’s experience and results may not be indicative of future performance or success. Technical Analysis of
Stocks & Commodities magazine Readers’ Choice Awards (2003-2015), are based on the company that receives the highest number of votes cast by the magazine’s
subscribers over a fixed time period that ends shortly before announcements of the awards. No offer or solicitation to buy or sell securities, securities derivatives, futures
products or off-exchange foreign currency (forex) transactions of any kind or any type of trading or investment advice, recommendation or strategy is made, given
or in any manner endorsed by any TradeStation affiliate. All proprietary technology in TradeStation is owned by our affiliate TradeStation Technologies, Inc. Equities,
equities option, and commodity futures products and services are offered by TradeStation Securities, Inc., a member of NYSE, FINRA, NFA and SIPC. Forex products
and services are offered by the TradeStation Forex divisions of IBFX, Inc. (Member NFA) and IBFX Australia Pty Ltd, ABN 84 142 210 179, holder of AFSL #363972.
© 2015 TradeStation. All rights reserved.