Professional Documents
Culture Documents
MIKE CRESSY
Stocks & Commodities V. 24:6 (21-30): Harnessing The (Mis)Behavior Of Markets by Rick Martinelli
1/1/05
3/1/05
5/1/05
7/1/05
9/1/05
FIGURE 1: NORMALIZED PRICE CHANGES FOR GENERAL MOTORS (GM). From 11/01/04
to 10/28/04 or 253 days, with a mean = -0.039, and standard deviation = 0.727, these are
the normalized price differences.
Sigma ()
8
6
4
2
0
-2
-4
-6
-8
11/1/04
MICROSOFT EXCEL
Sigma ()
Stocks & Commodities V. 24:6 (21-30): Harnessing The (Mis)Behavior Of Markets by Rick Martinelli
4
3
2
1
0
-1
-2
-3
1
51
101
151
201
251
Pk = P0 +
n=1
40
n=1
Fk = A n 1
n=1
20
11/1/04
Wn
Pn 1
1/1/05
3/1/05
5/1/05
7/1/05
9/1/05
FIGURE 3: CLOSING PRICES FOR GM. Here you see the closing prices for the 253 days
generated from Figure 1.
60
Wn
Pn 1
55
30
25
Price
Fk =
35
Price
50
45
40
35
30
1
51
101
151
201
251
FIGURE 4: A BROWNIAN MOTION. Here are the 253 simulated closing prices from the
white noise sequence in Figure 2.
Stocks & Commodities V. 24:6 (21-30): Harnessing The (Mis)Behavior Of Markets by Rick Martinelli
An-1 = +1 if Wn > 0
An-1 = -1 if Wn < 0
making An-1Wn always positive (the case Wn = zero is ignored). In this case, a graph of Fk starts at zero and increases
thereafter, which is sort of a Holy Grail for traders! The
problem, of course, is that An-1 must be calculated on the day
before measuring Wn predicted on the previous day. How
do you go about doing that?
Alpha ()
= P'
2
1
0
-1
-2
CALCULATING ALPHA
Let Pn denote the closing price of a stock and Pn = Pn Pn-1
its price change on day n. The algorithm for finding on day
n, n, is as follows (based on Excel computations).
-3
11/1/04
1/1/05
3/1/05
5/1/05
7/1/05
9/1/05
FIGURE 5: ALPHA VALUES. Here you see the k values for the GM closing prices in Figure
3. The values range between 2 and -2.
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0
-0.05
11/1/04
1/1/05
3/1/05
5/1/05
7/1/05
9/1/05
FIGURE 6: THE FORTUNE INDICATOR, C = 1.04. Overall, the value increases over time,
even if the closing prices of GM is decreasing.
Stocks & Commodities V. 24:6 (21-30): Harnessing The (Mis)Behavior Of Markets by Rick Martinelli
An = +1 if n > C
An = -1 if n < -C
An = Zero if -C n C
-0.1
11/1/04
1/1/05
3/1/05
5/1/05
7/1/05
9/1/05
FIGURE 7: WIN/LOSS RATIO, C = 1.04. In this case, the wins were generally larger than
the losses.
(PN P0) / P0
0.18
0.16
0.14
0.12
0.10
-0.08
-0.06
0.04
0.02
0
11/1/04
1/1/05
3/1/05
5/1/05
7/1/05
9/1/05
Win / loss
0.06
0.05
0.04
0.03
0.02
0.01
0
-0.01
-0.02
-0.03
-0.04
11/1/04
1/1/05
3/1/05
5/1/05
7/1/05
9/1/05
34
Closing price
0.1
0.05
-0.05
Win / loss
0.2
0.15
32
GM
30
28
26
24
Day 121
May 4, 2005
122
123
124
125
126
127
128
129
130
131 132
FIGURE 10: MISBEHAVIOR OF MARKETS. Here you see the closing prices of GM in the
vicinity of a large price change.
Stocks & Commodities V. 24:6 (21-30): Harnessing The (Mis)Behavior Of Markets by Rick Martinelli
STOCK
SDATE
EDATE
BM-1
MAXF
B&H
LDF
DIFF
#W
WLR
1.27
2.924
1.614
2.606
0.992
29
0.55
RMBS
01/03/05
12/30/05
1.00
0.536
-0.292
0.488
0.780
64
0.75
01/03/05
01/06/06
1.10
0.243
-0.410
0.213
0.623
52
0.62
GM
11/01/04
10/28/05
BM-3
1.04
0.305
-0.266
0.294
0.560
49
0.53
1.00
0.216
-0.365
0.128
0.493
59
0.51
SYMC
01/10/05
01/09/06
1.31
0.172
-0.180
0.172
0.352
41
0.54
IBM
10/22/04
10/21/05
1.19
0.242
-0.038
0.231
0.269
47
0.65
SUNW
11/08/04
11/07/05
1.19
0.169
-0.191
0.077
0.268
45
0.64
DELL
11/09/04
11/07/05
1.91
0.026
-0.209
0.018
0.227
10
0.50
GE
01/07/05
01/05/06
2.22
0.000
-0.207
0.000
0.207
CSCO
11/09/04
11/07/05
1.04
0.077
-0.096
0.072
0.168
49
0.56
MSFT
01/10/05
01/09/06
1.00
0.203
0.014
0.177
0.163
76
0.66
ZMH
01/07/05
01/06/06
2.04
0.000
-0.144
0.000
0.144
ORCL
01/07/05
01/06/05
BM-2
1.04
0.174
-0.016
0.106
0.122
54
0.54
1.41
0.108
-0.001
0.102
0.103
23
0.52
AMZN
01/07/05
01/06/06
1.00
0.263
0.131
0.233
0.102
68
0.58
DJ
01/07/05
01/06/06
1.50
0.028
-0.054
0.024
0.078
13
0.38
INTC
11/09/04
11/08/05
1.34
0.145
0.074
0.120
0.046
32
0.72
SEBL
01/07/05
01/06/06
1.28
0.178
0.130
0.172
0.042
18
0.44
SIRI
01/10/05
01/09/06
1.30
0.076
-0.008
0.025
0.033
30
0.57
TWX
08/06/04
08/04/05
1.01
0.097
0.075
0.081
0.006
59
0.54
1.17
0.112
0.101
0.102
0.001
40
0.65
QQQQ
11/23/04
11/21/05
1.10
0.088
0.077
0.076
-0.001
50
0.61
DJI
01/07/05
01/06/06
1.40
0.024
0.026
0.010
-0.016
26
0.58
KCN
01/07/05
01/06/06
1.65
0.006
0.035
0.006
-0.029
0.67
DIA
01/06/05
01/06/06
1.35
0.021
0.055
0.016
-0.039
31
0.58
DUK
01/07/05
01/06/06
1.00
0.046
0.166
0.017
-0.149
60
0.43
AZN
01/07/05
01/06/06
1.02
0.256
0.435
0.197
-0.238
65
0.63
LSI
01/07/05
01/06/06
1.12
0.308
0.554
0.291
-0.263
46
0.62
WFMI
01/03/05
12/30/05
2.42
0.000
0.666
0.000
-0.666
GOOG
AAPL
01/03/05
01/10/05
12/30/05
01/09/06
1.41
1.38
0.116
0.188
1.047
1.206
0.075
0.163
-0.972
-1.043
29
29
BM-4
0.59
0.52
FIGURE 11: RESULTS SUMMARY. Here you see the results of experiments on 28 stocks/indexes. Four simulated
Brownian motions were used in this study.
MORE EXAMPLES
I conducted 32 more experiments on 28 stocks/indexes and four
simulated Brownian motions. I selected the stock charts at
random from Yahoo!s most-active list as well as some popular
stocks from the DJIA and NASDAQ. The results are summarized
in Figure 11. Items BM-1 through BM-4 are the simulated
Brownian motions. Column headings Sdate and Edate represent
start and end dates, respectively, for the item in the first column.
Stocks & Commodities V. 24:6 (21-30): Harnessing The (Mis)Behavior Of Markets by Rick Martinelli
1.5
1.0
0.5
DIFF
0.0
-0.5
-1.0
-1.5
1.614
-0.180
-0.096
0.131
0.075
0.055
1.047
FIGURE 12: LAST-DAY FORTUNES VS. BUY & HOLD. Here you see the results for the
32 securities listed in Figure 11. Red points are simulated Brownian motions.
RELATED READING
Bachelier, Louis [1900]. Thorie de la Spculation, Annales
de lEcole normale superiure.
Mandelbrot, Benoit, and Richard Hudson [2004]. The
(mis)Behavior Of Markets, Basic Books.
See our Traders Tips section for program code implementing Rick
Martinellis technique.
See Traders Glossary for definition
S&C