36-The Random Walk Revealed
36-The Random Walk Revealed
Background
In the early 1990s, E. Michael Poulos
wrote a series of articles for Stocks &
Commodities in which he introduced
the random walk index. The concept was
borrowed from the probability theorist
and teacher William Feller, wherein it
was referred to as a “drunkard’s walk.”
In his honor, I will refer to my material
thus.
Feller posed the question, “If a drunk
leaves the lamp post he is leaning against,
how far would he have gone, on average,
after n steps?” The answer is he would
have gone the square root of n multiplied
by the average length of his stride:
N
early all technical indicators depend upon the ever-changing cyclic content currency market with the stock market,
of the market to generate information. When the indicator is synchronized and so on.
with the current market cycle, the signals are timely. If the indicator is When either series is above “1,” Poulos
misaligned, however, the signals will be out of phase and thus useless. viewed the market as trending in that di-
Copyright © Technical Analysis Inc.
Stocks & Commodities V. 29:12 (10-16): The Random Walk Revealed by Ron Davis
Ninjatrader
WilliamsRrom(ZW 09-11 (Daily), 14) -77.78
-100
Dec 2011 Feb Mar Apr May Jun Jul Aug Sep
Figure 1: overbought/oversold indicators. All overbought (red)/oversold (cyan) indicators find much the same tops/bottoms.
12000.00
-1 11500.00
+1 +1
+1 11000.00
5
“no buy” 10500.00
+1 bars
10000.00
%b(^DJIA (Daily), 20)
1
0.757
0.5
0
%b(^DJIA (Daily), 80) 1 0.996
-
0.5
0
DWBBL(^DJIA (Daily), 20,20,2,1) 3
2
1.23
0.355
0 63.66
4
DWBBL(^DJIA (Daily), 80,20,2,1)
2
1.1
0.179
Sep Oct Nov Dec 2011 Feb Mar Apr May
Figure 2: %b and dw. Drunkard’s walk gains information content on a longer time frame while %b loses information. For both indicators, the shorter time
frame is above the longer; +1 marks more information for long DW; ‑1 is more information for short DW.
In Figure 2, %b and the DW are shown at a 20-bar lookback the up walk being larger, and below the midline it corresponds
(top pair) and an 80-bar lookback (bottom pair). The longer DW to the down walk being stronger. Similarly, the 20-period up
loses some salient information but gains four items. However, walk corresponds closely to the %b; I find the %b to be more
the %b loses information at that setting and gains none. crisp and easier to scale using zero and 1. However, as you
The DW and %b both contain information about the direc- can see from Figure 2, the DW contains information not found
tion of the trend. The %b above the midline corresponds to in either the 20-period or 80-period %b.
0.497
FIGURE 3: TRENDLINES ACROSS THE WALK. Note the trendline across the up walk: a sign that air is coming out of the balloon.
Using the drunkard’s walk would have stopped if this bar goes up and moves closer
The examples here all focus on using DW with to the short-term trendline. In this situation, I buy the up
%b. My approach is to view technical studies breakout. Almost immediately (in two hours), the indica-
in relationship with price action. I will keep tors read overbought so I took profits on the close, but you
price action analysis to a bare minimum. could use a different exit approach.
When DW and %b agree on a condition
— oversold or overbought — the situation is Trade 2, March 9, 6:00: The early morning, pre–US session
clear. The action each trader chooses depends on his or her bars traded down to the moving average, only to be followed
own approach. It is worth noting that many strong moves by a weak rally. The general slope to DW is bearish and
begin with either OB or OS readings. %b is showing weakness. This is an uncomfortable trade
Trendlines drawn across the walk are useful (Figure 3). because the third bar has a wide range followed by a rally.
Fading rising trendlines are not very profitable. A better ap- The best result is to exit on the open of March 11. By that
proach would be to use corrections as opportunities to get point, the drunkard’s walk has shown both a yellow, “up
in or to add to your position. Adding to your position when walk falling too fast” impression and a cyan oversold read-
the DW trendline is down is riskier. You are usually safe if ing, and the %b has generated a higher oversold reading,
both indicators read OB or OS. When the indicators diverge, hence divergent from the major thrust of the day before.
look at the slope of the DW for guidance regarding probable The brown down walk is also much weaker. All this alarms
future direction. me, so I exit on the first higher high at the “X.”
A trader’s diary Trade 3, March 14, 8:00: In the non–pit session trading,
In Figure 4 you see an annotated version of my trading chart the DW was pushed into several bars of overbought and %b
for trades 1 to 5. The chart is the hourly emini contract for June was nearly overbought. The presession morning trading was
2011, using 24-hour data. Since I don’t trade around the clock, down, with a rally into the US opening. The first lower low
most of the trades shown are only for US pit hours, using Pacific of the US session was at 8 am, and that was where I shorted.
time. I use the 20-period exponential moving average (Ema), Again, I was out after the 10:00 oversold reading, but the
shown on the chart, as a comfort reference rather than as a trad- better trade was to hold the position until the next morning.
ing tool. I have included some prospective trades from non–US The European session drove prices into a deeply oversold
trading hours to illustrate ideas I think are important. I’m not an area, and the price action was a small double bottom. More
aggressive trader, and I’m sure you’ll see lots of opportunity. aggressive traders might have gone long with the upward
Here are the explanations of each of the trades: breakout that came shortly after the opening.
Trade 1, March 8, 7:00: The prior bar was blue on drunk- Trade 4, March 16, 7:00: Both indicators pushed into the
ard’s walk — an oversold reading. The %b may be a higher overbought range during the prior 24 hours, and prices
low than its two prior lows. The downward motion of price are again near the down trendline. A big plus for me was
Copyright © Technical Analysis Inc.
Stocks & Commodities V. 29:12 (10-16): The Random Walk Revealed by Ron Davis
0.5
0
%b(ES 06-11 (60 min), 20)
DWBBL(ES 06-11 (60 min), 100,20,2,1)
1
0.874
0.5
0.0867
0
3/8 3/9 3/10 3/11 3/13 3/15 3/16 3/17 3/18 3/20
FIGURE 4: TRADING DIARY. On this 60-minute chart of the S&P emini contract you see trades 1 to 5 annotated. The 20-period EMA is overlaid on the price
chart. Here you see examples of the entries and exits based on various criteria such as breakouts, oversold/overbought indicators, DW, %b, and upwalks,
among others.
the wedge or triangle. Prior to the New York open, prices the first time since March 9. Thus, buy the breakout, exit
returned to the lower line of the triangle, and then the day’s on the oversold reading.
first bar brought a breakout down. I
included a standard wedge measur-
ing for this trade. The dotted red line
is 100%; the blue line below is 161%.
Those lines correspond to winning
16 and 26 points, respectively.
An aggressive trader might con-
sider taking a long position between
trades 4 and 5. That possible trade
would have started in the Asian/
Australian session and been ripe for
exiting midmorning in the following
US session. The basis of the trade
was the downsloping drunkard’s
walk, which indicates a weakening
of trend, nearby oversold readings
in both indicators, and divergence
from price in both.
0.5
0
%b(ES 06-11 (60 min), 20)
DWBBL(ES 06-11 (60 min), 100,20,2,1) 2
Downward DW trendline for down 1.5
1
0.5
0.0689
3/17 3/18 3/20 3/22 3/23 3/24 3/25 3/27 3/29 3/20
FIGURE 5: IS DW A USEFUL TRADING TOOL? This is a continuation of the chart seen in Figure 4, displaying trades 6 to 10.
Trades 6 to 10 are displayed in Figure 5. Trade 10, March 29, 8:00: Oversold on the DW (at my
previous exit) with a rising tide in %b and a double bottom
Trade 6, March 22, 7:00: Price and DW made a double in price made an easy-to-find setup. I bought the breakout
top. The %b had a higher high, with the second high push- upward and then exited at my original target of 1325.
ing into the overbought zone. This combination is set up
with above-average safety. I shorted the breakout down; Perhaps the random walk index was not effective as a system
1282 was my target price, but the deeply oversold %b and because despite the intentions of the originator, it is not a cycle-
oversold DW around 1284 persuaded me to exit. free indicator. That is clear from comparing John Bollinger’s %b
with the same-period random walk index. With respect to trend
Trade 7, March 23, 9:00: At this point, I was thinking in identification, the two are virtually identical, but the drunkard’s
terms of another leg in a longer bull run. My estimated price walk makes information contained in the random walk index
target was 1325. The DW generated an oversold reading clear but previously untapped. We have also seen that the newly
not shared by the %b, often a bullish condition. I did not used information captured in the drunkard’s walk is closer to
exit on the overbought condition at the end of the session. being cycle-free, as demonstrated in the comparison between
The next trade was to add to my position. the 20- and 80-period DW charts and the %b charts.
The trading diary I have walked you through will allow
Trade 8, March 24, 8:00: The 7:00 bar was a scary de- you to decide whether the drunkard’s walk could be useful
cline out of an overbought %b reading and a considerably for your own trading.
weakened DW. The up swing generated a higher high, so
I left my capital protection stop in place and put in a buy Ron Davis trades for his own account. He is a member of
for above the 7:00 bar. If the stop is hit, it could generate the peer review committee for the Journal of the Market
a nice bull trap and some upward momentum, and that Technicians Association. He may be reached at j.ron.davis@
turned out to be the case. At 9:00 on March 25, another gmail.com.
overbought at a prospective double top was too much for
me and I closed my position. Suggested reading
Feller, William [1957]. Introduction To Probability Theory
Trade 9, March 28, 12:00: Prices had not been able to And Its Applications, 2d ed., John Wiley & Sons.
move much in either the Asian or European sessions. The Poulos, E. Michael [1991]. “Of Trends And Random Walks,”
DW generated an odd overbought reading and the %b was Technical Analysis of Stocks & Commodities, Volume
implying price weakness. There was also a small triangle, 9: February.
which is a formation I like to trade. I shorted the breakout _____ [1992]. “Are There Persistent Cycles?” Technical Analy-
and exited at the end of the day. This sudden, short selloff sis of Stocks & Commodities, Volume 10: September.
was enough to generate oversold readings on both indica- ‡NinjaTrader
tors — an exit for me.
Copyright © Technical Analysis Inc.