ZSCORE
ZSCORE
A value of zero indicates that the data item x is equal to the mean , while
positive or negative values show that the data item is above (x>) or below
(x<) the mean, respectively. Values of +2 and -2 show that the data item is
two standard deviations above or below the chosen mean, respectively, and
over 95.5% of all data items are contained within these two horizontal
references (see Figure 1).
Figure 1: Z-score indicator. Over 95.5% of all data are contained within +
Figure 2: Bollinger Bands and z-score. When prices touch the bands, the zscore reaches +2 or -2 standard deviation levels.
As expected, whenever the price touches the top band, the z-score reaches
the +2. Conversely, when price touches the lower band, the z-score reaches
-2 standard deviation levels.
In Figure 3 (top chart) you see the z-score indicator applied to the Nasdaq
composite index. The horizontal levels at +2, 0, -2 offer a clear picture of
expected resistance and support levels, as they are equivalent with top
Bollinger Band, moving average, and bottom Bollinger Band, respectively.
Figure 3: Smoothing the z-score. This can result in very profitable trades.
Z-score applied to closing prices is an irregular curve that can be smoothed
by applying moving averages. In Figure 3 (bottom chart), a simple three-day
moving average has been applied to the z-score (20), and a simple five-day
moving average is applied to the resulting average.
As you can see, good long tradable moves took place at:
Point 1 (09/21/01 10/17/01)
Point 2 (2/25/02 3/12/02)
Point 3 (5/8/02 5/21/02)
Point 4 (8/8/02 8/23/02)
when the three-day simple moving average crossed above the five-day
simple moving average of the three-day simple moving average. Note there
are some good shorting opportunities initiated when the three-day simple
moving average crossed below the five-day simple moving average of the
three-day simple moving average (3/12/02, 04/22/02, 5/21/02, and 8/23/02).
CONCLUSIONS
The z-score indicator is not new, but its use can be seen as a supplement to
Bollinger Bands. It offers a simple way to assess the position of the price vis-vis its resistance and support levels expressed by the Bollinger Bands. In
addition, crossings of z-score averages may signal the start or the end of a
tradable trend. Traders may take a step further and look for stronger signals
by identifying common crossing points of z-score, its average, and average of
average.
In order to improve performance, traders can use different periods for the
bands together with other periods for the moving averages.
Veronique Valcu is a senior at the American School of Paris, France, with an
interest in the financial markets.
REFERENCES
Achelis, Steven B. [1995]. Technical Analysis From A To Z, Irwin Publishing.
Elder, Alexander [1993]. Trading For A Living, John Wiley & Sons.
Evens, Stuart P. [1999]. "Bollinger Bands," Technical Analysis of STOCKS &
COMMODITIES, Volume 17: March.
Murphy, John J [1999]. Technical Analysis Of Financial Markets, New York
Institute of Finance.
www.bollingerbands.com
www.animatedsoftware.com, Internet Glossary of Statistical Terms
www.thinkquest.org, ThinkQuest: Internet Challenge Library
TC2000 (data), MetaStock (Equis International)
SIDEBAR: Z-SCORE CALCULATION
The Z-score formula applied to closing prices is
Definition of 'Z-Score'
How it's calculated
X = 2*W*L
What it means
The Z score is the result of the runs test and will tell us if our system has more (or fewer) streaks of
consecutive wins and losses than a random distribution. The Z score shows us how many standard
deviations we are away from the mean of a distribution.
What we are trying to answer is how many streaks of wins (losses) can we expect from a given
system? Are the win (loss) streaks of the system we are testing in line with what we could expect? If
not, is there a high enough confidence limit that we can assume dependency exists between trades
-i.e., is the outcome of a trade dependent on the outcome of previous trades?
The Z score only takes into account the dependency from the point of view of whether the last trade
was a winner or a loser. It does not take into account the size of each winner or loser. For that we
use the Serial Correlation.
Use this table to translate the absolute Z Score to the confidence level:
Z-Score
3.00
2.58
2.33
2.17
2.05
2.00
1.96
1.64
A confidence level of 95% or above is needed to exploit (for extra profit) the apparent nonrandomness of streaks in a system so based on this table we're looking for Z scores of above 1.96
and below -1.96.
A negative Z score means that there are fewer streaks in the trading system than would be expected
statistically. This means that winning trades tend to follow winning trades and that losing trades tend
to follower losers. A positive Z score means that there are more streaks in the trading system than
would be expected. This means that winners tend to follow losers and vice versa.
If you discover that the system that you have back tested or the system that you are currently trading
has a reasonable Z score then it is possible to exploit the system for extra profit using money
management techniques.
Further reading
If this subject interests you then we can recommend that you read more about this in The
Mathematics of Money Management: Risk Analysis Techniques for Traders by Ralph Vince. A
number of his ideas were used in the back testing system that we developed.
Z-Score
A Z-Score is a statistical measure. A Z-Score tells how a single data point compares to normal data.
A Z-Score says not only whether a point was above or below average, but how unusual the
measurement is.
The algorithm to compute a Z-Score is simple. Start with a list of numbers representing common
values for something. Compute the mean of this list. The mean is just a simple average. Then
compute the standard deviation of the list of numbers. The standard deviation is the average
distance between each number in the list, and the mean of the list. Now take a new number that you
want to compare to the list of numbers. Subtract the mean of the list from that number, then divide
the result by the standard deviation of the list. The final result will be the Z-Score of the new number
compared to the list of numbers.
The algorithm used to compute a Z-Score is almost identical to the algorithm used to compute
volatility. The difference is that a Z-Score only looks at the values of the normal data. Volatility also
looks at the order of the normal data.
Trade-Ideas uses Z-Scores and similar methods internally when evaluating market data. It is not
enough to know that a stock price is changing by a certain number of pennies or even a certain
percent. We always compare this to the normal fluctuations in the stocks price, to see how unusual
this even is. If the Z-Score is too low, we do not report an alert; we consider this to be noise. ZScores are often used in computing the stock specific filter values; larger Z-Scores lead to higher
quality alerts.