Maximum Adverse Excursion
Maximum Adverse Excursion
Maximum Adverse Excursion
IAI DVERSE
B-l XCURSION
ANALYZING PRICE FWCTUATIONS
FOR TRADING MANAGEMENT
JOHN SWEENEY
Chichester
Weinheim
Toronto
Singapore
Brisbane
in Canada.
Data:
Sweeney, John.
vi
Program trading is the automated response to the analysis of 8. computerized ticker tape, and it is just the tip of the inevitable evolutionary process. Soon the executions will be computerized and then we
wont be able to call anyone to complain about a fill. Perhaps we wont
even have to place an order to get a fill.
Market literature has also evolved. Many of the books written on
trading are introductory. Even those intended for more advanced audiences often include a review of contract specifications and market
mechanics. There are very few books specifically targeted for the experienced and professional traders and analysts. The Traders Advantage Series changes all that.
This series presents contributions by established professionals
and exceptional research analysts. The authors highly specialized talents have been applied primarily to futures, cash, and equity markets
but are often generally applicable to price forecasting. Topics in the series include trading systems and individual techniques, but all are a
necessary part of the development process that is intrinsic to improving price forecasting and trading.
These works are creative, often state-of-the-art. They offer new
techniques, in-depth analysis of current trading methods, or innovative and enlightening ways of looking at still unsolved problems. The
ideas are explained in a clear, straightforward manner with frequent
examples and illustrations. Because they do not contain unnecessary
background material they are short and to the point. They require
careful reading, study, and consideration. In exchange, they contribute knowledge to help build an unparalleled understanding of all
areas of market analysis and forecasting.
Unless you are gifted with remarkable natural insight, then
trading successfully is the result of a great deal of work. For most of
those who can boast a history of profits, there were countless
days and long hours studying the way markets react to various government reports, its changes in volatility, the speed at which it
moves, its relationship to other markets, and periods of illiquidity
during the day. From an unlimited variety of patterns, successful traders are able to find some profitable sequence that could be
anticipated.
Perhaps the most important part of the insight achieved from
this effort is the understanding of risk. For every position in the mar-
vii
. ..
WI,
PERRY J. KAUFMAN
Wells Riuer, Vermont
PREFACE
This is a book about losses, but dont let your eyes glaze over. Riskloss-is tied up with your fear, your profitability, and your career. For
the most part, this book is addressed to people with Investment Committees and Lines of Authority to deal with, people who end up explaining themselves if things go badly.
For those people, this book presents a novel approach to assessing the extent of risk and minimizing losses. In the world of futures,
the game is approximately zero-sum: for every winner theres a loser.
Stock traders have it easier because their pie is (currently) expanding
and, in many situations, everyone can win (or all go down together).
But, in a futures game (keep the word game in mind), things are
tighter. If I win, you lose. If you figure in commissions and slippage,
we both come up shorter than wed like.
From such a straightened trading environment, and from mathematical theory, we know going in to the competition that the key to
winning is minimizing the size of our largest loss. The problem, as
with all trading maxims, is: whats large? How can this be quantified? Thats where this book becomes novel.
I suggest you look at the results of your trading approach, consistently applied, to quantify things. If your traders eye is focused on
ix
PREFACE
the bark or the branches of the tree, you may have missed the forests
moving, or at least swaying in the breeze of the business cycle. Unless youve kept a detailed diary and read it, youve probably not noticed any particular consistency in the after-entry behavior of the
market. Each situation appears specific. Thats why you get paid the
big bucks: to be on top of the situation and trade smart.
Heres a thought for you, though: Shouldnt there be a consistent
pattern to what happens when you take action? What if, instead of gut
feelings, you could know objectively when to cut off a loser? What if,
instead of gut feelings, you could know when to put in a protective
stop? What if you could know objectively when to take profits? Well, if
all that were possible, all you would have to do is execute your scheme
properly.
From a management point of view, what if there were a way of assessing whether your traders were smart or lucky? What if there were
a way of consistently winning trading profits other than putting the
best and the brightest traders on the firing line until they burned out?
What if you could put up an objective performance benchmark, quantify
the amount of capital a trader needed (for his style and approach), and
assess the inevitable losses as normal or abnormal?
Now there is such a method, but it requires work: poking
into market behavior and using tools that arent easy to manipulate. This book looks at what happens when we make decisions on a
consistent basis-what happens to our trading positions as a result
of the markets behavior? It asks, If we consistently do this, what
does the market do? (This is different from asking, If we consistently do this, do we make a profit?) When this question is asked
today, the answer is I dont know or Its random or, worse, I
know its going to be a winner (since no one consciously takes
losers).
The answer closest to correct is I dont know. Think about it: if
your markets truly random, nobody should be trading. In fact, trading would be impossible because the next price would rarely be close
to the previous price-it might be anywhere.
Day to day, some speculative trades win, some lose, scnne go
nowhere. Were interested in the winners and we want to find and
eliminate the losers as soon as possible so as to keep our losses small.
Actually, if we know what we are doing, well find that winning and
PREFACE
xi
losing trades look different and the way they look can be the key to
success.
You might ask What do you mean how does a trade look? I
use the word look specifically to mean appear because Im going to
show you pictures of that behavior, pictures that are graphs which are
collections of data. Youre going to see the markets behavior in descriptive statistical terms rather than in price charts.
On these charts, youre going to see a line, the elusive edge that
traders seek and it will be a line all your own, from which profits can
flow with minimized, quantifiable risk.
Do the markets exhibit a consistent behavior? Can we possibly
adduce a consistency in what we see and experience? If so, what might
it be? Well, open your mind and read on.
It occurred to me as I prepared my manuscript, that this entire
book is really an exercise in exploratory statistics for traders. All the
things were used to seeing-charts, lines, indicators-have been replaced with graphs and tables; alien displays we traders dont use
much. The book is organized to show you the nuts and bolts of excursion analysis without delving into the theory.
I use examples, rather than generalities. Ive used spreadsheets
because most computerized traders have one available. There is more
elaborate software available for exploratory data analysis, but youd
probably need a degree in statistics plus considerable facility in programming to use it. (See the program Matlab from The Mathworks,
Inc., 24 Prime Park Way, Natick, MA 01760-1500. Phone 508-647-7000.)
Luckily, the data were examining is sufficiently sparse and simple that bonehead stat works fine. Still, it would be a great benefit for
you, if youre not numerically inclined, to pick up not only the technique of measuring excursion but also that of visualizing happenstance graphically. Within straightforward limitations that youll see
here, the data displays can be applied to many aspects of your trading
experience.
JOHN SWEENEY
CONTENTS
THE
CHAPTERS
IDEA
Experience
The Rule
The Data
CHARTERS
DEFININGMA~ADVERSEEXCURSION
10
Tweaking Stops
15
Sample Calculations
16
CHAPTER
21
DISPLAYINGMAF.
Aggregation
21
Frequency Diagrams
25
CHAPTERS
33
DEFININGPROFITBYBIN
Profit Tradeoffs
33
Profit Curves
34
Interpretation
37
CHAPTERS
IMPACTOFVOLATILITY
CHANGES
41
Tweaks
41
Summary
62
. ..
XIII
CONTENTS
xiv
CHAPTERS
Capital
RUNSEFFECTS
Conservation
63
63
64
74
83
Summary
84
CHAPTERS
WTINGALES
86
Simple Martingale
87
Complex Martingale
88
93
CHAPTERS
TFUDINGMANAGEMENT
Portfolio Impacts
99
99
Day-to-Day Trading
100
Elaborations
104
Conclusion
106
APPENDIX A COMPUTINGMAE
A~PENDIXB COMPUTING MAxFE
A~PENDIXC COMPUTING MINFE
APPENDMD GENERATINGAFREQUENCY
DISTRIBUTION
APPENDIX E MAE FOR SHORTS AND LONGS
A~PENDI~F COMPUTINGPROFIT CURVES
A~PEND~G RANGEANDVOLATILITY
APPENDS H RANGEEXCURSION
A~PENDIXI
MARTINGALES
A~PENDIXJ A~PL~NGMARTINGALESTO
TRADINGCAMPAIGNS
107
INDEX
157
112
116
119
123
127
133
138
145
151
1
THE IDEA
THE IDEA
Even so, youve got to hunt. Youre betting today that if the zebras are spooked simultaneously from the west, northwest, northeast, and east, theyll go straight back down the valley. Next, if
experience holds, theyll slow down after a few hundred yards if not
pursued and their tight running herd will spread out, right about
where the rest of your band has moved in and set up to spear a straggler from all sides.
Even if the hunt goes as planned, keeping the carcase out of the
mouths of lions, or hyenas and getting it back home will be tough work
in the dark. Still, you must hunt.
As a trader, your situation is a lot like the hunters, Whether you
have a team or are solo, you could use a theory of the market. Youve
probably got some ideas about what the zebra herd (the market) is
going to do. You know the season is dry and which way the wind is
blowing. You know generally where the herd heads when they break,
you know how far they like to run when they stampede, and you know
they will spread out when their fright dies down.
Youd like to make some money out of what you know. Are there
better ideas out there? Trading is an oral tradition, surprising in the
amount of money risked on fairly light formal credentials. As you
learn, you get lots of profundities (Keep your losses small, Dont
overtrade, etc.), lots of people with ideas, and books like this one but
a theory is something different.
In the scientific method, a theory is the result of observation
which leads to a provisional hypothesis of cause and effect, a hypothesis susceptible to testing. Testing will, with proper design, lead to
confirmation or rejection of the hypothesis. After confirmation, further hypothesizing and testing continues; after rejection, the hypothesis is reworked and retested. Finally, a theory can be formulated.
Only in relatively modern times have such processes been applied
to market behavior, that is, the behavior of groups in open, unre-
* For a look at markets in Laboratories, see work by Vernon Smith and his colleagues at the Economic Science Laboratory for Research and Education, University
of Arizona, McClelland Hall 116, Tucson, AZ, 85721. See also the new field of behavioral finance at web site http://www.sas.upenn.edu/-rrattgen/finps~.ht~l. At
this writing, only bits and pieces of research have popped up to indicate anomalies
in classical market theory. Far example, betas explanatory power for returns is
EXPERIENCE
Traders pick up experience while observing the market, but true experience comes from trading. Some keep notes mentally, some keep a
journal, some even keep a database.* A running discussion among
traders, economists, analysts, and the entire world also goes on, the result of which is the traders view: his outlook for the economy, his mar,ket and his tradable. Ideally, people record their views, their trades,
and their results. Mistakes and ~uccesses~ are recorded and, over
time, something is learned. Realistically though this work of recording is rarely done. Instead, there is an accretion of experience in a
traders head and a steady winnowing of losing traders.
Ditch that, I say, for statistically recorded results. Define your
trading rules objectively and see whether they yield results that can
help you define your actions operationally in the future. In other
words, does the market act, after your decision, consistently or not?
Since no one wins every trade, this is tough to tell. Still, it turns out
that, in at least one respect, a good set of trading rules generates a
classic set of responses by the market just as spooking a zebra herd
at a waterhole does: You can know from the markets behavior (like
the herds) roughly whats going to happen.
If the herd, instead of fleeing, runs right at you, your hopes are
dashed and you scramble out of the way. Instead of pursuing, you are
routed with, hopefully, the smallest possible injury. Its a question of
judgment. While youre in the act of spooking the herd, youre exposed.
At any instant, they can decide to flee or come at you. Youre dancing
on the traders edge, trying to decide if you should continue advancing
and yelling-or flee for your life.
questioned now, over reaction by market participants is acknowledged and rcsearchem are starting to attribute returns to market cap and market size or share.
* Chande, Tushar, $ecur-e (Chande Research and Trading, Pittsburgh, 19961. This
software tracks a traders actions and provides not only a trading .journal but a
checklist of factors to enter in the journal.
THE IDEA
So, too, with trading. The judgment comes in when you must continue the trade or get out. The market is moving around in front of
you and, like the zebra herd, is much bigger than you are. You must
judge when its decided to move favorably away from your entry or
right back over the top of it.
On the floor you can see the orders coming to the pit, hear the
noise, see the players screaming. Off the floor, you have the tape, your
own order flow, your phone, and the chart-information passed by the
recorder or the exchanges reporting system. Either way, youre laoking to see how close the herd is coming. Thats what youre tracking
and it turns out its a good indicator: past a certain point, they are
probably going to run over you; before that point, they are more likely
to flee properly.
THE RULE
Generally, good trades dont go too far against you while bad ones do.
Sometimes a winning trade could go strongly against you before turning right, but what generally happens? Whats usually the case?
It turns out that if your trading rules are consistent and can distinguish between good and bad trades, then, over many experiences,
you can measure how far good trades go bad and, usually, see at what
point a trade is mre likely to end badly than profitably. That is the
point at which you stop and/or reverse.
In this book, we will measure the price excursion from the point
of entry. Measuring things abstractly from the point of entry gets
away from the old news in the charts: support and resistance, value
points. It gives us a point of departure in a constantly changing sea.
In speculative trading, we only have our entry point and our exit
points, so this is a valid point of reference. We arent trading off a customers hedge and we dont see the order flow or the issue calendar or
the inventory. All these points of value arent relevant to the technical speculator anyway; he or she really nly has his price-take it or
leave it. Moreover, thats the point from which were judged. We may
as well focus on it.
In zebra terms, were going to see how close the herd cmes to us
before they shear off and head the other way-or decide to keep coming.
THE DATA
Well tweak this analysis with some fine points later in the book and
the general subject of using the technique in campaigning is dealt
with in Campaign Trading!, an earlier book, but here well make sure
the nuts and bolts of determining the breaking point of a trade are
covered completely.
THE DATA
One other basic point needs to be covered before we start. The data
for this exercise was developed for Campaign Trading! in mid-1995. It
includes Crude contracts from October 1983 through October 1994,
about eleven years of trading. The details of choosing and assembling
the data were covered there. This process is unique to futures trading
and equity or debt investors with long-lived tradeables can ignore the
issue of continuity.
To provide long continuous charts, the most active contract data
each month was put together with those before and after it in a data
series such that the interday price changes while jumping from one
contract month to the next were consistent. This process created the
actual price changes one would have experienced in rolling from one
contract to the next, but the values you may see here and there for
Crude probably wont be close to the actual values published. The results, shown in the charts in Campaign Trading!, are realistic chart
relationships and accurate day-to-day price changes.
I use daily data in my trading. I havent experimented with intraday data though I have used the concepts in this book with weekly
data.
2
DEFINING Mb
ADVERSE E XCURSION
Try to think of future prices from the vantage point of todays prices.
Imagine you are standing at a point looking forward toward a shifting
gray cloud of varying density, each miniscule dot representing a possible price occurrence. There are points of greater density and other
areas of near brightness. Looking directly forward, the mass is generally darkest but the cloud of possibilities shifts constantly as new information and new emotions enter the market and its participants.
There are areas of concentration and others of relative improbability.
Were interested in the edges of the cloud. If we translated the
haze of possibilities into tomorrows price bar, the edges would translate into the high and the low of the day, the points at which our stops
or limit orders would be last hit. We want to see if the shifts of the
haze are likely to hit our stops if we set them here or here or here.
The shifting-the movement of the price possibilities-is described statistically as a change from an expected value, an excursion
away from the darkest mars in front of us toward the outer edges of
likelihood.
7
81
Figure 6-l 1 Combining Trading Combinations. Melding the results of the figures
above for Drutschemark, Swiss Franc, Yen, and Cold generates this jagged curve.
Though the direction is upward, drawdowns seem to be serious. For a better look
at those, see Figure 6-l 2.
Figure 6-12 Drawdowns from Four Combinations. Somewhat easier to see are
the drawdowns, presented here as a percentage reduction from peak equity plus
initial trading capital.
Figure
2-1
Time
Figure 2-2
Raw Excursion. Starting from the point of entry. price excursion is
measured as the gain or loss on the trade, not the price and exclusive of transactions costs.
Figure 2-3
Consistent Excursions. The ideal result
entry that behave consistently.
10
Figure 2-4 Losers. In comparison to the upward trend of the winners, losers for
a given set of rules usually have a maximum upside, a shorter life span than winners, and a sharp terminating downfall.
ADVERSE
EXCURSION,
FAVORABLE
EXCURSION
When prices move against your trade, that is aduersity. From this comes
the term adverse excursion which is used to describe that price movement which goes against our favor during a trade. The abbreviation
used throughout the book is MAE-maximum adverse excursionwhich is an acronym for the worst that it gets while in a particular
position.
A key assumption for defining adverse or favorable price movement is the time frame. After all, if you wait long enough after an entry,
just about any price might pop up. To avoid this, your trading rules
must specify not only an entry, but also an exit. By doing this, you also
define a time horizon in which you can analyze price movement.
Conversely, there is favorable price movement. Maximum favorable excursion (MaxFE) and minimum favorable excursion (MinFE)
are discussed next.
11
MawFE a n d MinFE
Adverse excursion is the greater of zero or the difference between your
entry price and the worst price experienced after entry but before the
trade is closed. If youre long:
M*%ng = MAXLO, (Entry price - Lowest subsequent low),
Previous value1
MAX here refers to the greater of zero or the absolute value of the
computed difference. If youre short, its:
MALTt = MAX[O, (Highest subsequent high - Entry price),
Previous valuel
Remember that zero is greater than a negative number. As for nmximum favorable excursion, if youre long, its:
MaxFELog
12
MAE
MAE
Figure 2-5
(Top) Long MAE Example. Price rises from the entry on the opening
but just one day is far lower than the others between entry and exit. The low on
that day will be used for calculating the adverse excursion on the trade.
(Bottom) Short MAE Example. A short conw early in this example and suffers
through 35 points of adverse price movement before vindication. The absolute
value of the difference between the entry price and the MAE price will be the MAE
value for this trade.
.-.-
._._.
-.-
. ..__..
.,-.-. -
.-.-.
13
-._17
Figure 2-6
(Top) Favorable Excursion When Long. Mid-Julys price just tops early
Mays during this extended mid-l 991 trade in NY Light Crude. The absolute value
of the difference between the MaxFE price and the entry will be the MaxFE.
(Bottom) Short MaxFE Example. Another early short gets as far as $48 per share before rebounding into the $505. The difference between the $52 entry price and the
$48 low will be the Maximum Favorable Excursion of $4,
14
Figure 2-7
TWEAKING STOPS
15
Ive never had too much trouble getting the idea of excursion across
when explained with examples. Most people can see it as a simplified
price chart connecting highs or lows from the point of entry. If theres
a difficulty, its in believing there could be any regularity in these
graphs of excursion over time. That there could be consistency in how
far they move from the point of entry also seems unlikely to people.
For some sets of entry/exit rules, there is no consistency. These
rules dont have the ability to distinguish between good and bad
trades. So, to that extent, people are right to be concerned. The only
way to determine this is to look and see. If there is no regularity, then
with your rules, you have little basis for trading. If there is, B potentially profitable strategy becomes possible.
In excursion analysis, were concerned with the extremes of
movement so we can analyze stop placement, limit entry, or optimal
exit. All these occur at the extremes of price ranges. Moreover, without intraday data, we have no way of knowing what goes on inside price
bars. The limitations of the typically available data force us to deal
with what we do know-even so we should keep in mind that highs
and lows are so thinly traded that the values reported can only be considered rough targets.
TWEAKING STOPS
A tweak is a small analytical adjustment which, while not central,
may offer benefits.
In analyzing stops, we usually look for just one violation of a
given price level, thinking thats where our stop will be triggered. YOU
could require one, two, three, or more violations if you had intraday
data. To satisfy this requirement, the levels at which these semi-stops
might be triggered would be lower (for highs) or higher (for lows), allowing tighter stops. Operationally, this would require being there
to monitor action tick by tick, something most traders will not want to
do, but it might be feasible for someone whos trading that way anyway
and is sufficiently automated.
For those aware of differing speeds with which Treasury Bonds
or some other tradeable move up and down, a further refinement
would be to separate the data by longs and shorts. I once checked
16
DEFINING
MAX
ADVERSE
EXCURSION
2-l
Calculating Long MAE. This position opened 7/11/94 on the
close at 18.94. Since it was long (the negative 18.94 refers to a cash outflow),
The MAE computations referred to the subsequent lows.
Table
Date
Open
High
Low
Close
-l/12/94
19.15
19.28
18.93
19.09
7/13/94
,19.08
19.26
18.81
T/14,94
19.06
19.13
7/15/94
19.00
19.01
Lang at
16.94
MAE
Compgtation M A E
-18.94
= MAX,0.(18.94
0.01
18.96
16.94
_~ MAX[0,(18.94
18.81),.011
0.13
16.93
19.04
-18.94
18.85
18.R5
-1R.94
18.93),0,
= MAX,O,~lR.94
- l&93),.131
= MAX,O,W.94
0.13
0.13
18.85~,.13,
7/18/94
18.62
16.64
18.45
18.64
-18.94
7/19,94
18.46
16.76
1x.43
18.75
-18.94
7/20194
18.77
18.80
18.62
18.76
-18.94
= MAXlO,(18.94
18.45),.131
= MAX,0,(18.94
- 18.433,.49,
= MAX,O,(18.94
0.49
0.51
0.51
- 18.62),.51,
7121194
18.66
18.93
18.64
18.87
-18.94
7/22/94
19.00
19.07
18.93
19.01
-16.94
7/25/94
18.89
18.95
18.78
18.65
-1R.94
7/26/94
18.84
18.90
18.69
18.78
-18.94
= MAXLOJ18.94
18.64),.511
= MAX[0,(18.94
18.93),.511
0.51
= MAX[0,(18.94
- 18.78~,.51,
= MAX,O,(lR.94
0.51
- 18.69,,.51,
0.51
0.51
SAMPLE
CALCULATIONS
Were not dealing with involved mathematics here but to make sure
the technique is clear, Im including a tabular example as well. Many
traders are very uncertain about mathematics but there is very little
math to worry about with this technique. Were just comparing new
highs/lows to (1) previous highs/lows, (2) previous maximum values,*
@ The MAX function in a spreadsheet sclccts tho highest value from the three values
separated by a *,I within the square brackets 7 I.
Table 2-2 Calculating MAE When Short. This position opened 12/21/93 on
the close at 15.12 (a positive value referring to a cash inflow from the short).
The MAE computations referred to the subsequent highs.
Short at
Date
Ooen
Hish
Low Close
15.12
Computation
12/27/93
15.32
15.32
14.86
14.90
15.12
12/28/93
14.91
14.97
14.78
14.84
IS.12
= MAX[O,(15.32
15.12),01
= MAX[0,(14.97
12/29/93
14.96
15.15
14.88
15.13
15.12
15.07
15.18
14.89
14.92
15.12
l/3,94
14.96
15.34
14.96
15.29
15.12
l/5/94
15.23
15.55
15.43
15.99
15.13
15.54
0.20
0.20
- 15.12),.21
12/30/93
l/4/94
M A E
IS.39
15.93
MAX[O,(15.15
= MAXlO,(15.18
- 15.12),.21
= MAX[O,U5.34
15.12),.21
15.12
0.20
- 15.12),.2,
= MAX[O,(15.43
0.20
0.22
0.31
15.12),.221
0.00
MAX,0,(15.99
0.87
15.12L.311
Long a*
15.88
Open High
Low Close
417194
15.95
15.97
15.66
15.69
-15.88
4/8/94
15.68
15.75
15.62
15.70
-15.88
4/11/94
15.70
16.05
15.68
15.96
~15.88
4/12/94
15.93
16.03
15.77
15.82
-15.68
Computation MsrFE
= MAX[O, (15.97
15.88),01
= MAX[O. (15.97
15.88),.091
= MAX,0,~16.05
- 15.88),.091
_ MAXFO,
(16.05
15.88),.171
4,13/94
15.86
15.96
15.76
15.90
-15.88
4/14/94
16.03
16.07
15.79
16.05
-15.68
4/15/94
15.92
16.40
15.85
16.36
-16.88
4/18/94
16.32
16.46
16.20
16.31
-15.88
1.6.04
16.04
-15.68
4/20/94
16.08
16.22
15.96
16.16
-15.88
4/21/94
16.10
16.37
16.04
16.36
-15.88
= MAXLO, (16.05
- 15.88~,.17,
= MAXIO,
(16.07
- 15.88),.171
= MAXCO, (16.40
X5.88),.191
= MAX[O,(l6.46
- 15.88~,.52,
= MAXIO, (16.46
- 15.88),.581
= MAXCO, (16.46
15.88),.581
= MAX(0. (16.46
15.88),.581
0.09
0.09
0.17
0.17
0.17
0.19
0.52
0.58
0.58
0.58
0.5R
17
DEFINING
18
MAX
ADVERSE
EXCURSION
and (3) our entry point. A series of prices and the associated MAE for
a long position is shown in Table 2-1.
Table 2-2 is an example of a computation of MAE when going
short.
Calculating maximum favorable excursion is similar. Again,
compare the subsequent highs and lows to the entry point and each
other using the formulae above. Table 2-3 is an example for a long position, calculating MaxFE. Table 2-4 is an example for short MaxFE
computation.
These extreme values-MAE, MaxFE, and MinFE-are not always positive. Sometimes, for example, there is no favorable excursion. In this case, the MAX function serves to limit the value to zero
(Table 2-5).
Table 2-4 Calculating MaxFE When Short. A short goes well at first but
then turns bad. This experience makes the point that MaxFE never gets
smaller.
Open
High
Low
Close
Short at
15.12
12/27/93
15.32
15.32
14.36
14.9
15.12
KU28193
14.91
14.97
14.78
14.34
15.12
U/29/93
14.96
15.15
14.88
15.13
15.12
12/30,93
15.07
15.E
14.89
14.92
15.12
l/3/94
14.96
15.34
14.96
15.29
15.12
Date
Computation
MaxFE
= MAXLO, (15.12
- 14.86),01
= MAXIO. (15.12
14.%,.261
= M A X I O . (15.12
- 14.78),.341
= MAXIO,
(15.12
14.78),.34,
= MAXLO, (15.12
14.78),.341
0.26
0.34
0.34
0.34
0.34
Table 2-5 Minimum Extreme Value. Here a short at the close of 3/28/94
goes so far awry that there is never any MaxFE. Not only do MaxFE, MinFE
and MAE never shrink, they never go below zero.
Date
Open
High
Low
Close
Shorter at
14.33
3128194
3129194
14.41
14.58
14.33
14.33
14.58
14.33
14.33
3/30/94
14.55
14.67
14.43
14.65
14.33
Computation
= MAX,0,~14.33
14.33),0,
= MAXl0,(14.33
14.43),01
MaxFE
0.00
0.00
19
SAMPLE CALCULATIONS
Table 2-6 Calculating MinFE When Long. Going long at 15.88 takes a long
time to bear fruit as MinFE takes eight days to rise above zero. For many
trades, there is no minimum favorable excursion.
Date
Long at
16.88
Open High
Low Close
4/l/94
15.95
15.97
15.66
15.69
-15.88
4,8/94
15.66
15.15
15.62
15.7
-15.38
411 l/94
15.7
16.05
15.66
15.96
-15.86
4/n/94
15.93
16.03
15.17
15.82
-15.63
4/13/94
15.86
15.96
15.16
15.9
-15.63
4,14/94
16.03
16.07
15.79
16.05
-15.88
4/15/94
15.92
16.4
15.85
16.36
-15.88
4/M/94
16.32
16.46
16.2
16.31
-15.86
409194
16.15
16.23
16.04
16.04
-15.66
4/20/94
16.03
16.22
15.96
16.16
~16.63
4/21/94
16.1
16.37
16.04
16.36
-15.68
4/22/94
16.47
16.76
16.33
16.74
-15.88
4/25/94
16.62
16.91
16.55
16.37
-15.88
4126194
16.61
16.69
16.53
16.59
~~,15.68
4/26/94
16.43
16.63
16.37
16.4
-15.66
4/29/94
16.38
16.65
16.25
16.63
-15.88
5/2/94
16.64
16.97
16.64
16.63
~15.33
5/3/94
16.16
16.8
16.51
16.64
-15.88
514194
16.68
16.68
16.55
16.51
-15.88
Computation
MinFE
= MAX10.(15.66
,.
15.38),01
= MAXCO,W5.62
15.88),01
= MAX10.Cl5.66
- 15.68),OI
= MAX,O,U5.77
- 15.68~,01
= MAX[0,(15.16
.. 15.88),01
= MAX[0,(16.19
- 16.88),01
= MAX,0,(15.85
- 15.88),01
= MAX,0,~16.20
- 15.88),01
= MAXl0,(16.04
- 15.88),01
= MAX[0,(15.96
- 15.88),01
= MAX[0,(16.04
15.88),01
= MAX[0,(16.33
- 15.88),01
= MAXL0,(16.55
15.88),01
= MAXCOJ16.53
15.88),01
= MAX,0,(16.37
- 15.86),0,
= MAX10.Cl6.65
,.
15.33),01
-~ MAX10.Cl6.91
- 15.kR),Ol
= MAX,0,(16.80
- 15.88),0,
= MAXL0,(16.83
15.88),01
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.32
0.32
0.32
0.32
0.45
0.61
0.67
0.67
0.61
0.76
0.16
0.16
20
Table 2-7 Calculating MinFE When Short. Short goes bad after initial
surge! The MAX function serves to capture the initial favorable movement
and retain it as the ending MinFE value.
Open High
Low
Close
Short at
15.12
12/27/93
15.32
15.32
14.86
14.9
lS.12
12/28/93
14.91
14.97
14.78
14.84
15.12
12/29/93
14.96
15.15
14.88
15.13
15.12
12/30/93
15.07
15.18
14.89
14.92
15.12
l/3/94
14.96
15.34
14.96
1.5.29
15.12
l/4/94
15.23
15.43
15.13
15.39
15.12
Date
Computation
MinFE
= MAX,O, (15.12
15.321, 0 1
_ MAX,O, (15.12
0.00
= MAXIO, ClS.12
- lS.lS~,.lS,
= MAXIO,
(15.12
15.18),.151
= MAXLO, (15.12
15.34),.15,
= MAX,O, (15.12
- 15.43~,.15,
0.15
l&97,, 0.001
0.15
0.15
0.15
0.15
3
DISPLAYING MAEI
AGGREGATION
In Chapter 2, I showed how to measure MAE, MaxFE, and MinFE. I
included some sample Excel code in the appendices and, for such a
simple concept, it generated a lot of spaghetti code. This chapter
deals with the next problem in using MAE: assembling the collected
measurements and displaying them in a way that makes sense and
contributes to concrete decisions on where to put stops.
Personally, I like to see pictures. I can inspect tables of results
but Im more comfortable with a picture of the results than with a
table of results. Consider what would be the best way to show the long
list of MAE measurements.
As a rule of thumb, having thirty or more trades that are losers
and thirty or more that are winners should provide enough data to
have reasonable confidence in the results. The list might begin as
shown in Table 3-1.
Just these few items represent a lot of information, but picking it
out of several hundred lines is problematic. The models in Appendices
A, B, and C have the structure to eventually show day-by-day (1) time
in trade; (2) MAE, MaxFE, and MinFE; (3) trade profitability and
21
22
DISPLAYING MAE
Table 3-l Collecting MAE Data. For each trade, MAE is measured and
recorded along with the net profit or loss from the trade. In this data, commission and slippage are omitted but the analyst can easily factor this into
the profit/loss computation.
Date of
Entrv
Entry
Price*
Date of
Exit
Price
Profit or
LOSS
6/23183
-31.04
-31.2
30.96
-31.17
30.69
29.98
30.09
29.03
29.36
-29.26
-29.18
-30.62
-30.49
711183
31.18
31.96
-31.22
31.21
-30.34
-30.31
-28.14
-29.6
.14
.76
-.26
.04
.35
-.33
1.35
T/8/83
WW83
9/22/83
9/28/83
10/26/83
11/9/83
l/2/84
Z/10/84
Z/15/84
Z/24/84
3/29/84
4/13/84
Exit
8/16/83
g/14/83
9/23/83
10117183
11/4/83
12/21/83
l/16/84
2/14/84
Z/16/84
3116184
4/12/84
4/16/84
MAE
.a7
.a1
.46
0.00
0.00
.34
0.00
-.57
.12
-29.24
29.34
30.13
30.5
30.47
.64
.03
.08
.45
0.00
-.02
.02
.06
-.12
25
(4) account equity, all of which will he used later. For now, this is the
question: Is there any difference between winners and losers, any difference we can use while were in the trade?
To get at this, separate the results by winners and losers as
shown:
Win
.14
.76
.04
.35
1.35
.12
.08
.45
Winning
.07
.Ol
.oo
.oo
.oo
.03
.oo
.06
MAE
Loss
-.26
-.33
-.57
-.12
-.02
Losing
MAE
.46
.34
.64
.25
.02
23
AGGREGATION
MAE
0.14
0.76
0.04
0.35
1.35
0.12
0.08
0.45
-0.26
-0.33
-0.57
-0.12
-0.02
0.07
0.01
0
0
0
0.03
0
0.06
0.46
0.34
0.64
0.25
0.02
24
DISPLAYING MAE
0.8
.
I .
3:12- 4-m-W
1
-1
0.6
-0.5
0.5
1.5
Profit or Loss
3-l
MAE vs. Profit/Loss. This analytical chart highlights the distinction
between the MAE for winners and that for losers. The winners, to the right of the
vertical axis along the horizontal axis, have MAEs less than .I while the losers scatm
tered to the left of the vertical axis, have MAEs greater than .l (save one).
F,igure
ielatively small. If not, the market may have had a bout of disfunction or your rules may be unable to distinguish between winners and
lOSSI%.
Stop and think for a second about how youre seeing trading data
now. Instead of a summary table of wins and losses, Sharpe ratios,
drawdowns, results for shorts and longs, and so forth, youre seeing a
picture of your actual experience with, in this case, thirteen trades.
Youre also seeing all the market action from the viewpoint of the
trade entry, not from arrows on a price chart. Isnt it striking that,
from this viewpoint, there is some regularity to the market action?
Seen this way, statistically, from your point of entry, might there be
other regularities?
Putting up a chart like this serves to find outliers that may be
real or artifacts. In our example, all appears normal: the size of the
maximum adverse excursion rises as the size of the loss rises plus the
maximum adverse excursion for winners stays relatively low no matter the size of the win.
Unfortunately, even winning trades can go bad a little bit. Looking at Figure 3-1, we see that winning trades might have a maximum
adverse excursion of up to .l, which happens to be ten ticks. What if
we knew for certain that any trade that went more than ten ticks bad
FREQUENCY DIAGRAMS
25
would not be a winner? If it were not to be a winner, it would necessarily become a loser, right?
If we knew that, then, right in the middle of the trade, wed have
valuable new information about what to do. Wed see it go fifteen
ticks in the wrong direction and wed know we had a loser on our
hands. Trading experience would tell us to get out while the loss was
small.
Perhaps youre even more decisive. When the trade is put on, you
put a stop at eleven ticks. Youre ready to say, Dont call me for a decision, just get out if its to become a loser. Youd have automated the
process of keeping your trading losses small.
Now, lets be realistic. We dont know for certain that a trade that
goes eleven ticks wrong is definitely going to be a loser. From our sample of thirteen trades, we just have an estimate of that likelihood. I
wont bore you with the mathematics of the statistical estimate. Instead, just look at the picture. You can see where the winners MAEs
cluster and how bad they get. From the picture, you can see how
things go. Just keep in mind that unusual things happen in a market
subject to countless random shocks. The picture enables you to estimate roughly where the good news stops and the bad news begins.
FREQUENCY DIAGRAMS
There is another type of picture of these numbers that gives even more
detail and, later, will make better decisions possible. This type of picture is called a frequency diagram. If you are familiar with them, you
may choose to skim (or skip) this section.
As the number of trades increases, diagrams like Figure 3-l become a little rough for picking stop points and also for perceiving
whether there is a distinction between MAEs for winners and losers.
To get around this, categorize the data by the size of the MAE. (That
is, by the size of the potential stop. We take the trouble to measure
MAE so we can find a reasonable stop and/or reverse point consistent
with our trading rules experience.)
For a first cut, just make the categories equal to .1 or ten ticks.
All the trades that have MAEs from 0 to .l, inclusive, will get lumped
together. Then all those with MAEs greater than .l and up to .2 will
26
DISPLAYING
MAE
<=.l
<=.2
<=.3
<=.4
<=.5
8
1
<=.6
<=.7
< = . a
The data are shown graphically in Figure 3-2. This kind of display
is called a frequency diagram because it shows how often (that is,
how frequently) trades fall into different specific categories which
makes the distinction between the distributions of winners and
losers quite plain.
Figure 3-2 is stark compared to the typical result with sixty or
more trades but the distinction between the two sets of trades should
be clear. You hope to find a sharp cutoff like this one for the winners
but, if thats not possible, at least a distinct difference in the shapes
of the distributions.
7 1:
0.1
0.2
0.3
0.6
l-l:
0.7
0.0
Figure 3-2 Trades vs. MAE. Converting the data to graphics highlights the distinction between the MAE distribution oi winning trades and that of losing trades.
FREQUENCY DIAGRAMS
27
30
25
I
11 Winners
-.- LOsarS
y)
.
. rq\.,=> .---I..
,
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
Trade Frequency vs. MAE. An idealized version of the two distributions shows the winners with a sharp peak to the left and the losers with a peak
somewhat to the right and a long (ail.
DISPLAYING MAE
20
The point of all this effort is to look at something like Figure 3-4 and
come to a trading decision, a decision that has nothing to do with
entry or exit but only with controlling losses. You want to find a place
to stop a trade thats going bad. The stop point shouldnt be too far
away nor should it be too close to the entry point. Rather than look at
retracements, wave counts, support/resistance levels, percentage price
moves, arbitrary money management points, parabolics, or any of the
other ways to pick wrong points, here you look at the experience displayed in Figure 3-4.
80
W i n n e r s
n
70
-.-
Losers
10
0
l-l,
0.3
mm<=>.
0.6
0.9
1.2
.-.-.
1.5
1.8
2.1
29
FREQUENCY DIAGRAMS
As a first cut (subject to a closer look in Chapter 41, you just eyeball the graph and estimate where its no longer worth your while to
stay in. In Figure 3-4, points that suggest themselves are at .15, .30,
and .45 away from the entry price. (These are the values on the horizontal axis.) Each represent a wider stop you could set.
Looking at Figure 3-5, the dropoff in number of wins as adverse
excursion grows is striking. Hardly any winners have trades go
against them more than .45, but there are three:
1
0.15
0.3
0.45
0.6
0.75
0.9
1.05
1.2
1.35
1.5
1.65
1.8
1.95
2.1
Totals
80
17
4
0
0
1
1
0
0
1
0
0
0
0
104
21
44
28
28
7
10
2
3
1
0
0
1
2
1
148
On the other hand, 55 losers go wrong by more than .45 from the
entry point. Therefore, as a first cut, setting the stop at .46 would cut
off 55 losers and convert three winners to losers. Setting the stop at
.31 would cut off 83 losers and convert seven winners to losers. The
most aggressive strategy would be setting the stop at only .16 where
wed have 80 winners and 172 losses. (You have all 148 losers plus
youd convert 17 + 4 + 1 fl + 1 = 24 winners into losers for a total
of 172.)
30
DISPLAYING MAE
80
60
Possible
Stops
10
Figure
100)
$10/.02 = $22,500
to trade this single risky strategy. (It doesnt mean that the whole
$22,500 would be tied up supporting a single trade.) In this way, experience gives you a relatively precise estimate of your capital requirements and your stop-loss point, items that have been vague 01
without estimate in the past.
If those three winners are stopped out and converted to losers,
what would that have cost? Would it have been better to stop out at .3?
FREQUENCY DIAGRAMS
31
This subject is covered in Chapter 4. For now, there are some details of
this technique to clean up.
Picking Bin Size
For one thing, why should the categories we use be .15 or .30 or any
particular number? Computationally, theres little to recommend any
specific choice because todays spreadsheets can generate frequency
diagrams very conveniently. The details of calculating them and generating the charts in this chapter are discussed in Appendix D, Generating a Frequency Distribution.
The factors that control your bin size relate to your loss control.
The point of making MAE charts is to find a point at which profits
will be maximized with stops or reversals. Therefore, you want to construct the categories to help you find that point most accurately.
As a beginning point, there is your trading capital. Only a certain portion of that should be risked on any one speculative position
and that portion is generally quite small, about 2%. At this level, your
risk of ruin is quite small so the question is: Can you trade at this
level of loss? Is there a stop point that is less than 2% of your trading
capital? As a first cut, then, the category size should be no greater
than 2% of your trading capital. Otherwise, you wont be able to see
on the graph a stop point of that size or less.
On the hopeful thought that the stop point might be less, even
considerably less, than the 2% level you could make the bin size half
that amount or even one quarter that amount.
On the right hand side of the X-axis of your MAE chart, there is
the trade with the worst adverse excursion. If its huge and youve selected a very small bin size, youll end up with lots of empty bins between those on the far left and those on the far right of the graph.
From an analytical standpoint, you can graph just those on the left
side that interest you (those with small adverse excursions), but from
the standpoint of a presentation, such a large gap diminishes the impact of the information in the bars to the left.
The practical limitation on this fine division is often the amount
of data you have-the number of trades. For strategies that dont trade
often, you may have trouble coming up with thirty winning examples
and thirty losing examples, let alone dividing the thirty into ten or
32
DISPLAYING MAE
4
D E F I N I N G P ROFIT
BY
PROFIT
BIN
TRADEOFFS
Its all very well to see the numbers of trades that occurred in a given
bin but, at some point, youll want to know what the impact on profitability is as you widen or narrow stops. This usually comes up when
youre trying to pick a stop point and you want to know if theres much
of a profit difference between one level and another.
Perhaps two adjacent bins have nearly the same frequency of
wins and losses-youre curious if theres much difference in profit
when you set the stop at one bins level or the others, though you
wouldnt expect it. More often, the frequency curve for winners slopes
down nicely as that for losers rises. At what stop point do the profit
curves cross? Were there one or two inordinately sized wins or losses
distorting the curves? In other words, is the experience in your data
reliable and should you make trading rules using it? These are all
good questions, but lets define profit curues first.
33
34
PROFIT CURVES
In Chapter 3, I showed how to construct frequency diagrams or
curves. Curves refers to the smoothed shape of the line between the
plotted points.
Now, instead of plotting number of trades, you want to compute
the profit or loss on each trade within each category (or bin) and plot
the mm of those profits and losses for each bin. This seems straightforward, but there are some nuances to discuss after Ive shown the
prOCe*S.
To begin, youll have recorded for each trade its net profit or loss,
including commissions. Comparing these figures to MAEs and your
bin sizes, separate the trades into appropriate bins and total the profits.* For example, this table of trades:
Profit/Loss
-0.16
0.03
-0.55
0.16
0.07
-0.05
PO.21
-0.28
-0.16
-0.13
0.5
-0.06
0.02
MAE
0.18
0.11
0.55
0.00
0.03
0.22
0.21
0.36
0.22
0.23
0.00
0.13
0.25
35
PROFIT CURVES
becomes this:
Winners
Bin
0.0
.ll
.21
.31
.41
.51
Profit/Loss
.l
.2
.3
.4
.5
.6
LOSeI%
Bin
0.0
.ll
.21
.31
.41
.51
Profit/Loss
- .l
.2
- .3
- .4
- .5
- .6
= -0.16 - 0.06
= -0.05 - 0.21 - 0.16 - 0.13
= -0.28
= -0.55
whichcomputes as:
Winners
Bin
Profit/Loss
0.0 - .l
.ll ~ .2
.21 - .3
.31 - .4
.41 - .5
.51 - .6
0.73
0.03
0.02
Losers
Bin
0.0 - .l
.ll - .2
.21 .3
.31 - .4
.41 - .5
.51 - .6
Profit/Loss
-0.22
-0.55
-0.28
-0.55
36
DEFINING
PROFIT
BY
BIN
Losers again show far larger MAEs than winners. To compute profit
curves, segregate the trades by winners and losers, just as MAE
trades are, and further categorize them into bins defined by the size
of the adverse excursion.
This, in turn, displays graphically as shown in Figure 4-1.
Seen in this fashion, the tradeoff between setting stop/reversals
at .21 or .31 is clearer. If this were all the trades available as evidence,
youd see theres little to be gained from putting stops as these higher
values. (This is actually the last few trades in an eleven-year sequence
of trades.) The losses taken at that level, both in number and size, outweigh the few wins kept by allowing the wider stops. Youd want a stop
at ;ll and no doubt about it. To make this point clearer when dealing
with more trades than this, I usually plot both winners and losers
profits/losses as absolute values (Figure 4-2). A summary display may
be even better for some people. Figure 4-3 sums the losses and wins
in each bin to give a single curve.
Figure 4-l
Exemplary Profit Curve. Shown graphically, the losers losses vs. MAE
are even more distinct. To aid in picking stops and reversal points, the losws absolute values (the positive value) are usually plotted as in Figure 4-2.
INTERPRETATION
37
Figure 4-2
Absolute Value Profit Curves. To easily compare the size of the wins
by bin with the size of the IOSS~S by bins, it may be easier to plot the absolute
value of the losses. The format chosen for this display should he one you find
easiest to interpret, since your judgment will be on the line when start trading this
information.
INTERPRETATION
Normally, sample data wont be as clean as that shown here. The
curves for the winners will probably overlap that for the losers far
Figure 4-3
Total Profits. Summing the gains or losses from hoth winners and
loser, hy hin clearly shows the point at which adverse price movement suggests a
change in stance. Not only would stopping wt at .21 he healthy, hut there may he
gains from reversing.
more than they did in this exposition. When this happens, you will
make a judgment based on the overall trend of each curve and by visual estimation of the optimal crossing. Given the roughness of the
numbers, your visual judgment is wholly proper and probably superior
to mathematical algorithms.
Keep in mind that for these numbers to really work out you need
enough occurrences to generate reliable estimates. If theres a significant difference between the frequency curves of the trades and the
profit curves of the trades, the usual reason is that the number of
trades falls off rapidly for the winners as stops are widened, thereby
making the few remaining trades a greater influence.
Said differently, profit curves are very sensitive to the size of individual wins or losses. This is their limitation since one big win on a
trade with a large MAE can make your curve look like Pikes Peak in
the middle of the prairie. You need enough trades to make sense in
the low MAE ranges and you should take the profits shown in the large
MAE bins with a grain of salt. Typically, in the large MAE bins, you
are looking at the results with virtually no impact from stops.
INTERPRETATION
39
5
IMPACT 0F
V OLATILITY C HANGES
TWEAKS
With the basic concept of adverse excursion described in both text and
example, turn now to slight adjustments in the concepts that might
provide better results and, in any event, satisfy curiosity. In my days
as an analyst, we always called these adjustments tweaks to indicate
that, while they were not critical to success, they did slightly shift
the odds in the proper directions. The next chapters are devoted to
tweaking the use of adverse excursion in trading.
The first tweak relates to range volatility (as distinct from classical volatility). Then theres the effect of runs on the use MAE stops.
Last, I take up issues of betting strategies.
Range or Volatility to Change Our Stops?
In focusing on price excursion, price ranges are the main concern.
Highs and lows, being extremes, tend to be very lightly traded compared to the central values of the trading day. Nevertheless, if they do
41
42
IMPACT
OF
VOLATILITY
CHANGES
touch ones stop, your carefully placed order will be set off. The question for this chapter is to what extent volatility affects range which
might, in turn, affect the adverse excursion measurements and the
stop or reverse points that MAE suggests.
The intuitive idea is that, as intraday trading becomes more
volatile than previously, ranges are likely to expand and stops become
more likely to be hit, particularly closely set stops like MAE stops.
Contrarily, if intraday volatility is lethargic, ranges will contract and
stops are less likely to be hit (Figure 5-l).
Range and Vohtility
There are many logical questions about this concept. First, do price
ranges expand or contract with classically defined volatility? On this
point there is some quick evidence. Experiences such as that in Figure
5-2 suggest that range is related to classically defined volatility,
though not rigorously. Figure 5-2 is a mean-adjusted comparison of
20.day volatility with the 20.day average range. The qualifier meanadjusted tells you that the means of the two distributions have been
Gain
or
LOSS
L
---------- MAE Stop
-
Levels
Missed stop
TWEAKS
Figure 5-2 1995 New York Light Crude Range and Volatility. Though volatility
fluctuates to rclativcly grcatcr exrremes than daily range, the relationship is oiten
quite direct. In crude, range may be an effective proxy for volatility.
set at the same value by multiplying one series by an arbitrary adjustment factor. The result is a display that facilitates comparisons of
the changes in the two series, not an analytical construct useful for
establishing definitive relationships.
Figure 5-2 doesnt show overlapping lines but it does show
changes in each series happening in roughly the same direction in
reasonably comparable time periods. This is just one instance. Figure
5-3 is another example where changes in volatility and range might
show some relationship to each other. You would need to run something similar for the tradables ycm use to get a first cut at whether
this was a relationship you could use. It might be quite a study and
this isnt the place for a detailed treatise on the relationship of range
to classically defined volatility. I havent found treatments of this subject in the academic literature, but it has been a subject of proprietary
Figure 5-3 1990 New York Light Crude Range and Volatility. I picked 1990, a
year of spectacular price fluctuation in crude, as an example of range and volatilitv coincidence.
TWEAKS
45
Figure 5-4 Range at Entry vs. All Kanges. The averages of these fwo distributions are identical: .32, but the distribution of all ranges is more peaked and
skewed. Looking at this trend trading in crude, ifs striking that entry was rarely
from the most frequent ranges, the low ones at .lS, but from ranges around .25.
46
as in MAE analysis, you may find nothing you can exploit. Your combination of tradable and trading rule may not identify periods of
change in range. If it does give reliable estimates of changes in range,
then you have the first prerequisite for adjusting your stops and reverse points.
For example, beginning on your point of entry just measure the
amount the daily range exceeds the 20-day average range on the entry
day. Another comparison that would smooth the data would be to compare the range each day to the moving 20-day average range. An example or spreadsheet of doing these is given in Appendix H and graphed
data from both exercises is summarized next.
Comparing to the Moving 20-Day Average
Though this varies with the tradable, in my experience, if you compare the daily ranges after entry to the moving ZO-day average during
the trade, crudes result is common: the range doesnt vary statistically after entry. The daily range after entry, for the set of rules used
here, is usually close to the moving average of the range. Its important to inspect your results visually as well as statistically, though.
Looking at Figure 5-5, youll see plotted the range after entry
less the moving 20.day average of range. The average value of this
distribution is zero, but simply by looking at it, you can see that its
skewed upward and its the skewed values that might hit OUT stops.
In Figure 5-5, only one value goes below -2 and that barely. In
other words, range rarely shrinks more than 20 ticks below the moving 20-day average range. On the other hand, range often expands
but it expands eppisodicaZ2.y.
Figure 5-5 shows only the occurrence that ranges expand by more
than +.2. Its difficult to see when that occurs in the life of the trade.
Transforming Figure 5-5 to Figure 5-6 shows that there is typically
only one, occasionally two, days when the range expands by more than
+.2. That is, to emphasize, range doesnt usually expand after entry
and stay expanded. (This is specific to the trading vehicle and the trading rules. Your specific situation may give different results.) There is
an occasional blip upward but it is not held. It is that blip that hits
stops. (The shrinkage minimum of -.2 shouldnt be taken as absolute.
Later, more data will show that it can range as large as p.6.)
47
TWEAKS
Day of Trade
Figure 5-5
Range after Entry. Subtracting the 20.day range from the range on
each day after entry often produces a plot like this. Most values for range are between -2 and + .2 of the value on the day of entry. Also, while range rarely shrinks
more than -.2 (range is limited to zero), it often expands rrwre than +.2.
Day of Trade
Figure 5-6
Range Expansion. Most trades dont show expanded range after entry
on a consistent basis. By plotting range less range at entry, you can see that if range
is to expand more than .2, it will do so episodically.
48
Range at Entry vs. Range after Entry. Theres another way to look at it.
The data in Table 5-l compare the ranges after trade entry to the 20day simple moving average of the range during the trade. The virtue
of this is smoothing, but the future average range isnt a value you
know going into the trade. You do know the value of the average range
49
TWEAKS
Winning
Trades
Losing
Trades
Figure 5-7
(Top) Winners Range Expansion. With more examples, range can
contract dramatically (one instance went to -.h) but rarely. More common is expansion going above the .2 level seen in Figure 5-6.
(Bottom) Losers Range Expansion. Not only do losers last just a short time, but
their range expansion is less than that of winners. Range contraction also appears
more common in this limited sample.
50
Figure 5-8
Range Expansion vs. Moving 20.Day Average of Range Winners and
Losers Range Expansion Both Average Nearly Zero. Though theres a slight tendency to grow in both distributions. skew is just 1 .l for losers and 2.5 for winners.
The greater frequency of winning examples sterns from the fact that winning trades
last longer than losing trades. (Note the scale shift on the X-axis.)
Table 5-l Range Expansion for Winning and Losing Trades. The distributions described here are those in Figure 5-l.
n (Number of Days
in Trades)
Max
Min
Average
Std. Deviation
Skew
Kurtosis
Losers 139
0.68
-0.43
-0.02
0.15
1.03
4.27
Winners 374
1.43
-0.60
0.03
0.21
2.54
12.4R
51
TWEAKS
n (Number of Days
in Trades)
Losers 139
M&X
Min
Average
Std. Deviation
Skew
Kurtosis
0.73
-0.44
-,-0.03
0.16
0.97
3.75
Winners
1.79
-0.39
0.08
0.25
2.58
10.58
374
52
Figure 5-9 Range Expansion after Entry. In contrast to Figure 5-8, comparing
range after entry to range at entry produces markedly different between winners
and losers. On average, losers shrink their range m.03 and winners expand their
range t.08. (Note the scale shift on the X-axis.)
TWEAKS
53
Figure 5-10 Episodic Range Expansion in Winners. When measured from the
range at the point of entry, winning trades in this sample had episodes of range expansion at many times during the trade. This figure compares to Figure 5-7 (Top).
actually contracts, theres no problem but what about the 50% of the
times when it expands?* Does the winners advance offset its range expansion? Recall, too, that range expansion is episodic. Do these episodes
occur near entry when the stop is close or later in the trade? As to this
second question, Figure 5-10, which plots range expansion by day-oftrade for the sample trades, shows that ranges of winners can expand
at any time.
As to the first question, whether ranges expand faster than the
advance of the trade, Ive no evidence of this. Assuming ranges expand on both ends (the daily high and low) equally, an expansion of
.04 (= .08/2) is not threatening to an MAE stop in the .3 to .5 range.
Comparing advances on a winning trade to episodes of range expansion during the trade will typically show the trades profit growth
54
Figure 5-11
Range Expansion vs. Trade Advance. To see whether range expansion in winning trades is faster than the rate of the winners advance, the two are
plotted for inspection for several trades. Minimum Profit is, for longs, low minus
entry and for shorts, its entry-high. There was no evidence that range expansion
outpaced trade advance generally.
TWEAKS
55
Range at Entry
56
range) to suggest expanding stops. Only one trades MAE exceeded 2.0
though.
Throwing out the values of zero (for all the trades with no adverse
excursion) and computing the mean ratio of the remaining trades, the
average ratio turns out to be .52. In other words, the average adverse excursion during a winning trade that has arty adverse excursion is about
half the size of the range at entry, though there are episodes of much
greater adverse excursion, as noted on the figure. Again, even this conservative basis doesnt suggest the need to expand stops.
No Problem?
The third question about the idea of expanding or contracting stops
based on expanding range is whether the information we have already
handles that. After all, the original MAE stops and reversals were
TWEAKS
57
Figure 5-13 Winners MAE vs. Range at Entry. Recalling that the ratio of 1 .O
places MAE and range at equality, winners in crude show barely enough adverse
movement above 1 .O to justify any expansion of stops.
developed without checking for volatility. The values came from experience in all conditions of volatility. Therefore, the first assumption
would be that the impact of volatility is already in the MAE diatrihutions. Sharply distinguished distributions like Figure 5-14 show very
few winners that would be cut off by stops set too tightly. On the other
hand, distributions with extended tails of winners might be candidates
for some adjustments (Figure 5-15).
Just taking Figure 5-15 as an example of the real world, expanding the stop from, say, .45 to 1.05 appears impractical. It would
absorb far more losing trades than winners. Nor is the situation in
Figure 5-15 unusual. Readers of Campaign Trading! will have seen
many distributions where, just as the winning trades tail off, the
number of losing trades picks up and this just as the adverse excursion
is rising steadily, forcing the acceptance of larger losses as the stop is
widened.
To boot, knowing as we now do (for crude) that range expansion
is episodic, if we did observe extraordinary ranges before a trade entry
Figure 5-14 Different Distributions. Expanding an MAE stop from .3 to .45 hecause range volatility had heightened would expose profits to far nwre losing trades
while possibly allowing only four morr winners.
TWEAKS
59
Figure 5-15
For example, Figure 5-16 shows the distribution of daily average ranges for eleven years of crude trading. Since the range cannot
go below zero, we end up with a distribution which is not normal as
statisticians define normal. Indeed there were seven trading days with
ranges beyond 200 ticks (2.0 on the chart), days I forbore charting. In
a situation like this, what constitutes a normal range and what
would constitute a range out of the ordinary?
Looking at the data in Figure 5-16 slightly differently, Ive plotted the cumulative percentage distribution in Figure 5-17. Nonstatisticians should recall from math class that in a normal distribution,
a mean plus one standard deviation will include 67% of all occurences, all events. Add another standard deviation and youve got 95%
of all occurrences-95% of occurrences being a rough idea of a normal
range of experience. Figure 5-17 connects the range sizes along the
bottom axis with the percent of all occurrences on the vertical axis so
that we can ask what ranges are included in 95% of our experience
with crude ranges.
60
Figure 5-16
Distribution of Daily Ranges. From late 1983 until October, 1994,
crude experienced the ranges shown here. The median for the distribution t.28) is
notsignificantly different from the mean c.32) but there is necessarily a long tail to
the upside that skews the perception of normal range.
Figure 5-17
Cumulative Percentage Distribution of Ranges. The distribution of
ranges for crude is concentrated so sharply that 64% of all occurrences are between zero and .32. the mean of the distribution.
61
TWEAKS
Looking at Figure 5-17, the high concentration of ranges between 20 and 30 ticks causes nearly a full standard deviations worth
of events (64%) to fall at or below the mean at .32. Recalling that
normally 67% or so of all occurrences will be within one standard
deviation of the mean (both above and below), it turns out that 67%
of all occurrences in this distribution fall between .Ol and .34, just
two ticks above the mean range. That is to say, 67% of all ranges will
have a value between .Ol and .34. This is good concentration but if
you wanted normal to include the more common standard of 95% of
events, youd have to include days with ranges up to .75 or twice the
size of the average range. Where in this range do you start widening
stops? Well, if 95% is the normal range of experience, youd consider
widening stops if you had seen daily ranges exceeding 75 ticks C.75
trading points). If, despite the logic above, you want wider stops, the
general rule is: widen stops when youre seeing daily ranges outside
95% of your past experience. How much youd widen the stop would
depend on the range expansion youd measured. In the crude data,
there were 13 average ranges above .75 with no discernible relationship either to MAE or size of win or loss.
Range at
Entry
ProfitOF
Loss
MAE
0.77
1.07
0.87
1.14
1.10
1.07
1.05
0.86
0.82
0.88
0.83
0.71
0.74
-0.32
0.87
-0.87
-1.64
0.77
-2.05
3.72
5.06
-0.70
0.48
-1.81
-1.27
0.15
0.32
1.38
0.87
1.92
0.90
2.05
0.00
0.00
1.14
0.00
1.81
1.67
0.13
62
SUMMARY
Expanding stops, particularly MAE stops, when range volatility rises
is an intuitively appealing idea. Using excursion analysis, you can
check whether it makes sense for your combination of tradable and
trading rules.
Begin by summarizing your experience with the tradables
ranges using the cumulative distribution of ranges as in Figure 5-17.
This will give you a sense of what the nwmal range is. Should you
exceed that, go to step two.
Step two is to check the range expansion for both winners and
losers. In the crude oil example in this chapter, it turned out that the
range of losers actually contracted, almost imperceptibly while that
of winners expanded. In any case of range expansion (Table 5-Z),
widen MAE stops by half the estimated range expansion.
In this example, I was surprised that crude oil showed range expansion up to 25% of its average range. My experience, certainly not
exhaustive, is that range expansion is much more a perceived phenomenon than one thats measurable. Perhaps because range volatility and price volatility are episodic, human perception remembers
most vividly the exceptional instances rather than the general rule.
6
RUNS EFFECTS
CAPITAL
CONSERVATION
All of these things are crucial and, in retail trading, are often set by
seat-of-the-pants guesstimates. Even commercial trading and money
63
64
RUNS EFFECTS
managers often have barely any defensible reasons for their losscutting tactics.
Using adverse excursion information, you can manage individual trades effectively and build up the ability to trade a variety of
market modes, such as trending or ranging, and a variety of tactics,
such as add-on trades, counter-trades, and reversals. The result is you
are trading far more actively than you would at any one time in a single trading system.
Why is this important? What could happen is that, despite controlling individual losses, you could end up with a string of trades that
impact your capital so severely as to stop your trading. When this happens, there is no chance of recovery and youve suffered the catastrophic
,106s that MAE analysis was designed to prevent in the first place.
In terms of trading management, a string of consecutive losses
(a run of losses) has a direct impact on any individual trading tactic and on two management plans, the actual trading campaign itself
and a subsidiary tactic which is not necessarily being used: a betting
strategy.
65
Figure 6-1 Account Equity from Trend Entry Tactic. Lots of small losses and a
few huge wins typify trend trading. Herr MAE stops have served to keep losses
small but there are long series of losses to be endured.
66
RUNS
EFFECTS
tactic: entry on a dual moving average system using crude oil as the
trading vehicle. The stop used was .31 or 31 ticks, about $310, ignoring commissions. The result is typical for trending systems: a few
incredible gains and lots of small losses. Its almost ideal for the
study of adverse runs.
Looking at the periods of equity drawdown, most losses are
roughly offset by small gains. However, in periods 700 to 900 as well as
later periods around 2000, 2500, and 2900 there were extended periods of losses that slowly wore away account equity. You might pick out
different periods that I should have included and that brings up the
issue of definition. Whats to be a run and whats to be a significant
run against which we should guard?
Visually inspecting charts like Figures 6-2 and 6-3 repeatedly
suggests one practical answer: An adverse run is any sequence of
losses or gains (sic) resulting in equity falling below a previous peak
and continuing until a new high in. equity is attained. To measure an
Trading!
67
Figure 6-3
Drawdown Compared to Capital Plus Winnings. A run of lk~sses builds
drawdown up to 8% of initial trading capital plus winnings. Comparing equity reduction to capital plus winnings is only correct on a one contract or no additional shares basis. For a mote conservative
view, see Figure h-4. Points A through
C are those referenced in Figure 6-2.
adverse run, simply keep a tally of the previous peak equity and the
current account equity, computing the percentage reduction on a daily
basis. Plotting the result makes judgment of the level of significance
and labeling the charts by inspection easier (Figure 6-3).
Figure 6-3 plots the percentage reduction from peak equity plus
initial trading capital of the trading combinations various adverse
runs. Pictured in this fashion, drawdown from adverse runs may show
some consistency, consistency you could use to as8e.w at what level to
become concerned about a string of trading losses from a specific trading tactic. At a minimum, each peak in Figure 6-3 defines a drawdown in Figure 6-2.
In this figure, material peaks are those of 4% or greater equity
reductions subsequent to new highs in equity. That is, a new high in
equity ends the adverse run and that new high appears in this figure
as a spot on the X-axis with no columns above it. Three peaks (1, 2,
and 3) show drops below the 4% level before going on to their ultimate
68
RUNS
EFFECTS
high but arent noted because the drawdown had not yet ended. In
other words, equity continued to decline after that interim peak was
established, despite .a temporary reduction in drawdown.
Figures like this make assessments of significance easier. However, if you want a completely objective standard, go with the original
definition and count all the peaks interrupted by periods of higher
profitability. Doing this highlights that, in a tractable trading combination, most of the drawdowns from adverse runs of trades will be
fairly small.
Computation
The precise computation of Percent Reduction in Trading Capital
Plus Winnings should be clear from Figure 6-3. Since we know the
MAE stop ($310) and we know our 2% rule for the MAE stop, we can
compute the trading capital required to support this trading combination. That is:
$3101.02 = 515,500
If you were trading two or more contracts or blocks of shares at the
$310 stop, your available trading capital would be, for example:
2 x $310/.02 = 531,000
It is to $15,500 plus any accumulated equity that Figure 6-3 compares the drawdown experienced by this trading combination:
(Maximum equity ~ Todays equity)/($15,500
+ Maximum equity)
69
A winning trader has the luxury of banking the winnings and continuing to trade on the initial capital committed to the trading tactic.
Alternatively, he can hold the winnings against future, probably inevitable, storms of adversity. Or, he can up his commitment to the particular tactic by increasing the shares or contracts traded, relying on
his analyses of the MAE stop and runs to protect him. I advocate the
third path. For those who pursue the first or second path, drawdowns
should be compared to initial trading capital which is the subject of
Figure 6-4.
Figure 6-4 shows more serious problems with adverse runs in
this experience with crude. The 25% figure mentioned earlier is there
to the right, but so are regular stabs at the 15% level. Larger adversities cannot be ruled out either. Indeed, in this worst case outlook,
adversities amounting to 5% have more than a 50% chance of reaching 10% to 15%. Still, none of them amount to the 40% reduction in
trading capital which is the most popular rule of thumb for suspending trading. If winnings are considered as well (Figure 6-3), none of
the drawdowns remotely approaches 40%. That is, despite a very good
likelihood of seeing an adverse run of 10% to 15% of initial trading
capital, this combinations experience is that losses from such runs
will be recovered and equity will move to new highs before seeing another adverse run of similar or greater magnitude.
/mmediate Disaster
Finally, even eleven years experience is only suggestive, not exhaustive of all possibilities. A single 40% reduction could happen right off
70
RUNS EFFECTS
Figure 6-4
the bat, putting you out of business. However, this small sample of experience suggests the possibility of a huge adverse run is small. There
is no instance of 40% drawdown before returning to higher profitability. The probability of even being in one of the samples 200-day
drawdown states is about 45% and, once that hurdle is surmounted,
the possibility of its being a 25% drawdown is one in seventeen. That
works out to less than 3% chance at any one time for the worst case on
day one. Actual probabilities may be even lower as shown next.
The likely extent of drawdown is suggested by the distribution of
occurrences of drawdowns in the historical data as shown in Table 6-l
and Figure 6-5.
Looking at Figure 6-5, its apparent that most drawdowns are
small, even in relation to initial trading capital (vs. trading capital
plus trading profits) and 70% are 10% or less. If you are looking at this
kind of concentration, its reassuring evidence that your trading combination is workable. That 94% of the time its drawdowns dont exceed
18% is also workable. Plus, its worth keeping in mind that drawdown
71
6
8
10
12
14
16
18
20
22
24
26
OOClllY?IlC.%
0
3
5
3
1
0
1
1
1
1
0
0
0
1
Probability
0%
18
29
18
6
0
6
6
6
fi
0
0
0
6
Cumulative
Probability
0
0.18
0.47
0.65
0.7,
0.71
0.76
0.82
0.88
0.94
0.94
0.94
0.94
1
72
RUNS EFFECTS
Figure 6-5,
its apparent from the figure, that there are fewer and fewer drawdowns
as we go out further on the x-axis. To estimate the likelihood of a killer
drawdown, I fitted through these actual events an exponential (or
growth) curve as a proxy for the actual distribution we cannot know.
If we read from it the estimated probabilities, the expected probability
for the 25% drawdown is vanishingly small. The probability of a 40%
drawdown is surely infinitesimal. This estimate leaves us little excuse
to avoid using this particular trading combination.
By displaying the drawdowns experienced in your system testing
and applying this straightforward inspection of the results, you can
make reasonable estimates of the likelihood of getting hammered right
out of the gate.
Significance
The exemplary data used here are of a worst case. This is a trading
system with only 30% winners so lots of time is spent in drawdown
Percent
Drawdown
of
Initial
73
Capital
periods. The last analysis assumed that, even though the trading combination was profitable, none of the winnings would be used to support
future trading; all drawdowns would be from the initial trading capital. Moreover, drawdowns themselves were (and should be) defined
comprehensively and conservatively as the worst reduction in trading
equity before a new high in trading equity is set.
Nevertheless, so effective was the use of MAE stops to minimize
losses that even lots of losses did not prevent the trader from being
around when large winners showed up. Also, the MAE stops prevented
any disastrous single loss that would have destroyed the trader.
The loss control from MAE stops also minimized the impact of
adverse runs of losses. Figure 6-5 summarizes the actual experience
of adverse runs showing how unlikely they would be to break the
traders bank. The significance of losses from adverse runs depends
on their distribution. When experience indicates, for instance, that
74
RUNS EFFECTS
(1) most adverse runs will cause losses of less than lo%, (2) 95% of
the losses will be less than 18% of initial trading capital, and (3) the
probability of a trade-stopping 40% drawdown on the most conservative basis is extremely low, heart should be taken and the trading plan
executed faithfully.
If examination shows that the probability of hitting the 40%
drawdown is high, its time for revisions. However, that doesnt seem
to be common with MAE trading. Consider the probabilities that must
occur with even so dismal a system as my 30%.winner example. Using
its most common drawdown of 4% (from Figure 6-6) and assuming
there were no interval of high profits between drawdowns,* it would
take ten of these in a row to hit 40% total drawdown. This event would
have a probability of .3 I0 = .0000059. A 10% drawdown, using the
same assumptions, would have, at the worst, a .O@ = .OOOOl probability. In fact, the evidence collected here shows that lots of small, consecutive losses result in drawdowns that are generally manageable,
frequently sizable, and never catastrophic.
Your historical testing may have quite different results and you
may set different limits. A 3% chance, a chance that may actually be
much lower, of a 25% drawdown moderated by MAE stops is manageable.
* This has the effect of turning drawdowns as defined here into independent events
so that it would never occur that a drawdawn would never be succeeded by another
drawdown without an interval of higher profitability. Thus, the fear of succeeding
drawdowns is met in these statistics, unless your trading equity actually is beaded
consistently downward and there is no interval of higher profitability.
75
trade but, if, for example, add-on trades during a trend had progressed
well you might have on at one time:
1. The basic trend entry trade
2. Two or three additional trend add-on trades
3. An add-on day trade. Since this is a day trade, you might avoid
your broker seeing a margin requirement but you still have the
risk of loss and must account for it by an absorption of capital.
4. A countertrend trade
Ive even seen a situation where a well-developed trend triggered
a (brief) ranging trade without ending the trades associated with the
trend. In that case, you could add a fifth exposed trade.
In such a situation, you will have some comfort that your trend
trades have progressed well (since you now have several of them that
were triggered by earlier successes) and add-on trades usually have a
very high percentage of success. Since the returns to any individual
tactic are largely independent of those of another tactic, diversification
effects usually work in your favor by offsetting losses in one tactic
with wins in another.
Nevertheless, correlation between tactics should be checked where
its conceivable and it is possible that several could go bad coincidentally. Though you could check past experience on this one, the correlation of trading system/tradable combinations is usually pretty sporadic.
Where you do find relationships are those well-established among stock
industries, groups and sectors; indices; and futures related to underlying economic sectors (the rate complex, currencies, indices of many
kinds).
What you must check is whether, once a trading systems entries
and exits are used on a specific pair of tradables, the correlation
events survives and, after trade management (i.e., stops), any correlation of returns and drawdown experiences survives. If the trading
systems for the two (or more) related tradables are different, correlation of returns and drawdowns is even more problematic.
Moreover, using standard statistics for this comparison is inadequate. Since, in statistical terms, gains and losses occur episodically,
correlations may be very low when measured in the usual way. Its
76
RUNS EFFECTS
Figure 6-7
Equity for Two Trading Tactics. Since drawdowns and advances occur
episodically during trading campaigns, visual comparisons are more to the point in
rearching for relationships between those events in two different trading tactics.
Here, the equity curve for simple the trend trading of Figure 6-l is compared to
that for additional day-trades taken during trend trades.
77
The episodic nature of the relationship of two trading combinations plays out well here. For roughly half of the 11 years shown here,
the add-on trades did not do well while the trend trading tactic advanced steadily in equity. Add-ons did not participate in the single
large gain around the 700th trade day nor did they participate in the
trend trades gains from many small trades taken during the first six
years. Then, in 1989, around the 1600th day, the tactic started to
work well with very few drawdowns. During that same period, the
trend equity line did advance, but had several periods of significant
drawdown.
Experiences like these-where the tradable is the same and
the trading tactics somewhat related-generally produce very little
relationship in equity impacts. I am tempted to say never because I
havent seen a solid relationship, but they still are possible. Nevertheless, I dont believe this concern is worth more than this visual inspection. By the time you have differences in the tradables, differences in
the trading tactics, and differences in the loss management techniques,
you have very little relationship between the equity curves. I certainly
cant prove they dont exist, but I couldnt find one to show you!
Correlated Equity Curves
Where you did find those strings of losses from different trading combinations coincided regularly, you deal with the issue by raising the
capital available, lowering the amount of loss acceptable on trades
(tough to do if youve selected the right MAE stop level to start with),
reducing the number of contracts used by each tactic (only possible if
your MAE analysis allows you to trade more than one contract within
the 2% of capital limit), or ceasing one of the two related tactics.
The best example of this is trading the same tactic on highly related tradables, for example, the DMark and the Swiss Franc. The
correlation in monthly returns between these two using, as an example,
the Donchian Rule, was reported to be on the order of .77 in 1993.
(Kestner, Lam. The Role of Diversification, Techrzical Analysis of
Stocks and Commodities, March, 1996.) in 1993. The simple thing to do
is trade the more liquid issue in greater size since youre getting the
same movement in both and diversification benefits are minimized if
you trade two vehicles with highly correlated equity curves.
78
RUNS
EFFECTS
Take Figure 6-8 as an example. Here, both the Swiss Franc and
Deutschemark contracts are traded with the same dual moving average system used in Figure 6-1, albeit with 12- and 20-day parameters for the averages. The Swiss contract came out less favorably, but
both advances and declines were shared coincidentally. Indeed, the
correlation of the two equity curves is an astoundingly high .94. Here
is clearly a case where trading both doubles the downside.
Kestner reports the correlation of returns for Deutschemark and
Japanese Yen at .38 (Figure 6-9) and that for Deutschemark and Gold
at -.Ol (Figure 6-101, roughly half that of the Swiss Franc. The equivalent figures for the equity of the dual moving average system are 59
for the DM/JY and -.27 for DM/Gold. The DM/Y relation is clearly
less sympathetic than DM/Swiss and both head in the same general
upward direction.
79
RUNS EFFECTS
Day
of Trading Campaign
Figure 6-10
81
Figure 6-l 1 Combining Trading Combinations. Melding the results of the figures
above for Drutschemark, Swiss Franc, Yen, and Cold generates this jagged curve.
Though the direction is upward, drawdowns seem to be serious. For a better look
at those, see Figure 6-l 2.
Figure 6-12 Drawdowns from Four Combinations. Somewhat easier to see are
the drawdowns, presented here as a percentage reduction from peak equity plus
initial trading capital.
82
RUNS EFFECTS
Table 8-2 Variability of Returns. DMark, Swiss, Yen, and the total portfolio achieve a K-ratio > 1 but fail to make the grade when the risk-free interest rate is included via the Sharpe ratio. Only the Yen, with its
last-minute surge, achieves profitability in excess of the risk free rate.
DMark
K-ratio
Std dev./avg.
Shsrpe
ratio
Swiss
2.13
0.48
1.43
0.51
-2.41
-3.22
Yen
1.42
0.50
-1.19
Gold
-0.51
0.50
-11.74
Total
Portfolio
1.60
0.31
-0.90
83
IMPACT
ON
BETTING
STRATEGIES
Betting strategies alter the size of the amount traded based on, commonly, the likelihood of success, pyramiding, the progression of
betting, and the amount of capital available. Of all these, the last
two have some theoretical and experiential support. Increasing or decreasing the number of shares or contracts based on capital available
is straightforward: the size of the play for an individual trading tactic is simply limited by the 2% rule, the loss being defined by an MAE
stop. As your capital grows (hopefully), 2% of it grows apace and the
size of your commitments grows with it.
Its the use of progressions thats more difficult. An individual
trading tactic certainly produces a series of wins and losses (outcomes) that resembles a betting series and a properly prepared progression will eventually win. The trouble with progressions is that a
run of losses can extend the trading beyond your capability to play.
In Chapter 7, I give some examples (and references) for using progressions in trading and show how your experience with runs of losses
can impact this particular betting strategy.
84
RUNS EFFECTS
SUMMARY
Practical inspection of the day-to-day performance of individual trading combinations and that of the group of combinations as a whole will
give a good indication of the potential for disastrous hits. Asset allocation schemes can be used by quantitatively-oriented trading management to objectively assemble portfolios of trading combinations (or
traders, for that matter) but those after a graphic depiction of their potential to lose may use the approach outlined here. Repeated experience, as shown in the graphics, may lend some intuitive understanding
of the nature of the drawdowns faced day-to-day that a smoothly assembled efficient frontier does not.
7
MARTINGALES
If the runs information means anything, it means there will be adverse runs. Runs of winners are fine, but well be faced with losers
certainly, especially as Ive defined runs for trading purposes in this
book. If you recall that definition is that an adverse run lasts until a
new high in equity is achieved, even if there are some intervening
wins. Is there some means of taking advantage of this situation?
Given enough money, almost anything can be overcome, even adverse runs. With adequate capital (i.e., LOTS of capital), you can adjust the size of your bets to suit a variety of win/loss sequences. An
extraordinary amount of capital is needed because you dont know how
long the adversity will persist. The trick is estimating that length and
size probabilistically and arranging your capital to withstand it. Fortunately, with MAE stops, loss size is controlled and the major remaining question is how long adversity will go on. In the previous
section, we went over the estimation of adversity from runs by examining the experience both for a single trading combination and for a
group of trading combinations.
85
86
MARTINGALES
There is another tactic though. Ferguson, Eliason, and Pelletier* have dealt with the subject of handling a series of trades
through betting strategies. The technique, a martingale, adjusts
the bet size by fixed rules following a win or loss. In Fergusons first
article, he demonstrated the positive impact this approach can
have on the typical trend following trading system, turning it from
a loser to a winner. The approach was so apt I applied it to the humdrum system discussed in this book. That system is a small winner
in DMarks, Swiss, and Yen, but a loser in gold (or, at best, a small
winner).
Martingales are best suited for professional traders and trading
organizations who are not only well-capitalized but also thoroughly
disciplined. It can be a disastrous strategy from which to exit in midstream so, given that quitting a strategy prematurely is common
among individual traders, its not something unseasoned traders
should undertake.
Moreover, if applied to a series of trades that take place over two
,0r three years, even a institutional trader may have difficulty implementing it simply because normal turnover on the trading floor will
mean he or she wont be there in two or three years. In a wellorganized and disciplined institution with adequate position tracking
facilities, run control or loss management techniques can be sue
cessfully implemented over longer periods of time. Even there, though,
it helps if the trading combination used trades rather frequently so
that traders and management can see the technique workin,&! and get
away from the notion that they are sitting on a loss which can only be
requited at some distant time in the future.
One factor in trading that favors a martingale is that winning
trades are normally larger than losing trades. Although this isnt the
* Ferguson,
James W., Martingales, Stocks & Commodities, V. 852 (Seattle, 1938)
pp. 66-59, and Reverse Martingales V. 8:3 (Seattle, 19881 pp. 105-108.
Eliason, Peter Tactical Stock Trading, Stocks & Commodities, V. 7:3 (Seattle,
1988) pp. 69-72.
Pelletier, Robert, Martingale Money Management, Stocks & Commodities,
. 63 @eattIe, 1966) pp. 266-267.
87
SIMPLE MARTINGALE
SIMPLE
MARTINGALE
A simple martingale consists of this rule: Double your bet (at even
odds) after each loss until you win. When you finally win, your winnings will amount to your original bet. In a trading situation, that
means that your expected win is the same size as your expected loss.
For example, check this sequence:
Trade
Bet
Win or
LOSS
Equity
1
2
3
4
$1,000
2,000
4,000
8,000
LOSS
LOSS
LOSS
Win
$(l,OOO)
(3,000)
(7,000)
1,000
88
MARTINGALES
Try a few sequences of your own. The bet size (the number of
shares or contracts) increases rapidly (from $8,000 to $16,000 to
$32,000, to $64,000 and upward) so that you run the chance of running out of money. MAE stops help with this by limiting the size of the
loss which, in trading terms, is really the size of your bet. If the same
sequence as above were played out with the stop of $310, things would
be more manageable for most traders, though the commitment rises
faster than most would like. Again. its assumed the win will be $310
just as will be the loss:
Win or
Trade
1
2
3
4
Bet
LOSS
Equity
310
620*
1,240
2,480
LOSS
LOSS
LOSS
Win
(310)
(930)
(2,170)
310
COMPLEX
MARTINGALE
As easy as the simple martingale is to understand, the complex martingales are not. There are many varieties of complex martingales but
all have one feature: They reduce the size of the additional bets that
must be made at the cost of extending the time you spend in the betting sequence.
To see a complex martingale (again, just one of many possible)
working consider what would happen if, in the above sequence, you
bet not double the previous bet but only one. unit more or less:
89
COMPLEX MARTINGALE
Trade
Bet
1
2
3
4
5
$ 310
620*
930
1,240
930
Win or
Loss
Loss/Gain
$ (310)
(620)
LOSS
Loss
LOSS
(930)
Win
Win
1,240
930
Equity
$
(310)
(930)
(1,860)
(620)
310
The result was the same but it took longer to get it. Again, you
should try a few of these sequences yourself. Just for a taste of a eomplex martingale the rules for the number of contracts to trade were,
after the first loss, to add the number of contracts traded in the loss
to the sequence of trades, sum the first and last number in the sequence, and trade that number next. If a trade is a winner, strike the
first and last numbers in the sequence and sum the remaining first
and last numbers to get the number to trade next. For example:
sequence
Number to
Trade
Win or
Trade
1
2
3
4
5
1
1,1*
1,1*,2
1,1*,2,3
1*,2
1
1+1=2
1+2=3
1+3=4
1+2=3
LOSS
LOSS
LOSS
Loss
Win
Win
You can readily imagine with all the combinations of wins and
losses the market can throw at you how complicated a series could be
generated. To really get a practical feel for this, you should play with
the martingale simulation given in Appendix J. Youll quickly see
that, even though martingales cc~me right in the end, youll not enjoy
a situation where the win size is equal to the loss size. Figure 7-l is
90
MARTINGALES
Figure 7-l
Distribution of Win Size. Computed for the trend following dual moving average system used throughout this book, the distribution highlights that selecting an appropriate wins size for martingale modeling is subject to wide latitude.
COMPLEX MARTINGALE
91
Table
7-1
Long Drawdown. Though martingales can always bring
one back to new highs in profitability, a truly adverse run of trades
absorbs both time and capital.
PCWIN)
$Win / $ Loss
0.5
A s s u m p t i o n s : W i n o=
Trade
Bet
LOSS
Contracts
Loss/Gain
LOSS
- 1
LO88
Loss
-2
2
3
LOSS
LOSS
LOSS
4
5
6
7
8
9
10
11
12
13
Win
Win
LOSS
Win
Win
LOSS
Win
LOSS
6
3
14
1s
16
17
LOSS
Win
Win
F&t!
False
F&e
18
19
20
Bet Size
$310
Equity Units
Equity
- 1
-3
-6
-3
-4
-5
-6
7
6
-6
6
6
-3
4
-2
-3
4
3
0
0
0
-10
-15
-21
-14
-8
-14
-8
-2
-5
-1
-3
-6
-2
1
1
1
1
Bet Table
(310)
- 4 5
IO
(930)
-36
-28
-27
-21
-20
-19
9
8
8
7
(1,860)
(3,100)
(4,650)
(6,510)
(4,340)
(2,480)
(4,340)
(2,480)
(620)
(1,550)
(310)
(930)
(1,860)
(620)
310
310
310
310
-15
-14
-11
-10
-9
-8
-6
-5
-4
-3
-2
-1
0
10
8
6
6
8
5
5
6
4
4
5
3
3
2
1
Table 7-2
Adverse Runs. A good win size compared to the loss size (the
MAE stop) can overcome a multitude of bad trades, even an adverse win probability. A martingale series is terminated when the equity after a trade
turns positive.
PCWIN)
0.4
Assumptions:
Trade
Bet
2
3
4
5
2
3
4
5
$ Win / $ Loss
3
Contracts
Loss/Gain
LOSS
- 1
- 1
5 (310)
LOSS
-2
-3
-4
15
-3
-6
-10
5
(930)
(1,860)
(3,100)
1.550
LOSS
LOSS
Win
Equity
Units
Bet Size
$310
Win or
Loss
Equity
MARTINGALES
92
ratio of wins and losses without imposing too many rules and overfitting. Small adjustments, however, often effect the size of you wins
and losses and, in MAE, you have an excellent tool for managing the
size of your losses.
Managing the size of the wins is tougher. The average win figure
is not necessarily a good one as the size of the wins is usually quite
skewed (see Figure 7-l).
Nor is the distribution of loss size normal. See Figure 7-2.
Thus, it isnt idle to inspect closely the distribution of the size of
wins and losses. When you actually trade, remember, you wont get
average wins or losses but values all over the ballpark, usually within
expected ranges. Thus, you must plan to go through many martingales
to come up with the average win and average loss, assuming prior experience holds true. Some experimenting with the models will give
you a feel for the levers available to you but the most common result
of low frequency trading is to cut things too finely: without a lot of
trades, the win size and loss size tend toward the median rather than
the mean. As a result, the ratio of win size to loss size moves closer to
1: 1 from the ideal 2: 1 or 3: 1. In the example above, using means we
Median = ~2,
Mean =
N = 148
93
have .76/.34 = 2 while if medians are used we have .36/.24 = 1.5. The
practical result is that, if youre going to use martingales you need to
use them for a lot of trades to get sufficient to reach your desired winsize, loss-size ratio.
In summary, martingales should be used with a trading tactic
that trades frequently (add-on day trades come to mind), where the
probability of profit is 40% or better and/or the ratio of win size to loss
size is better than 2: 1, to pick rough rules of thumb. These factors
shorten the length of the martingale which will cut down the number
of trades before conclusion which, in turn, reduces the cost of capital
invested in the tactic as well 8s commissions and slippage. Given that
the martingale only returns the size of the original bet times the win
size:loss size ratio, careful comparison, considering the amount of capital tied up (losses plus margin), to alternative speculations should be
made. Keeping in mind that transactions will be numerous, tax effects
must also be added to the mix. Dealers with the advantage on all these
issues will probably find martingales of most use.
MARTINGALES ON CRUDE 011
94
MARTINGALES
95
Table 7-3 Exemplary Martingale Worksheet. A trading martingale must track both the martingales counts of trades won or
lost but also the actual amount won or lost on each trade, here, by
trade in the third column and cumulatively in the fourth column.
(This is just the beginning of a long martingale.)
Number
Blocks
Won or
Lost
False
False
False
-1
-1
-1
-1
-1
-1
-1
-1
-1
1
~~1
-~I
-1
-1
-2
-2
-3
-3
-3
-3
-3
-4
-4
-4
5
Martingales
BI&S
Outstanding
F&e
False
F&e
-1
-1
-1
~~- 1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-3
-3
~43
-6
-6
-6
-6
-10
-10
-10
-5
Msxtingde
Equity
False
False
False
-0.31
-0.31
-0.31
-0.31
-0.31
-0.31
~,~.0.31
-0.31
-0.31
-0.31
-0.31
-0.31
-0.31
-0.31
-0.93
-0.93
-1.86
'~ 1.86
-1.86
-1.86
-1.86
-2.58
-2.58
-2.58
-2.43
Trend and
Martingale
Equity
112.77
112.46
112.46
112.46
112.46
112.46
112.46
112.46
112.46
112.46
112.46
112.46
112.46
112.46
112.46
111.84
111.84
110.91
110.91
110.91
110.91
110.91
110.19
110.19
110.19
110.34
96
MARTINGALES
Figure 7-3
Explosive Results of Martingale Management. Managing the same series of trades with a martingale sysrem produces explosive results at the cost of increased volatility. Drawdown B had an l-1 1 win-loss streak before recovering and
Drawdown C went 3-20 before recovering it all on just one trade and going on to
new highs in profitability.
average system using an MAE stop of .31. The only thing that changed
in the other line was the use of the martingale system. The result was
to triple overall profits at the expense of increased volatility of returns and greater commitment of capital.
Ignoring for the moment the dramatic movement around C, notice
that at A and B, downturns in the Trend Equity line became major
dips in the martingale line. On the other hand,the slope of the martingale line is much steeper upward. This is because, absent extended
drawdowns, the 2: 1 win/loss ratio of this trading combination and the
MAE stops holding losses to .31 mean, together with the growth in
contracts as the martingale progressed, meant that just one win would
~vercmne all the previous losses.
To say it another way, MAE kept the losses small until a solid
win came along, a win which was amplified by the greater number of
contracts being traded when it popped up. Thus, the sharp upthrusts
MARTINGALES
ON
CRUDE
OIL
97
in the Trend Equity line were amplified in the martingale line. A big
win when youre running a martingale with a good dollar win/loss
ratio is a very big win indeed.
Along with the increased volatility and higher profit came higher
capital commitments. Though profits easily funded the drawdowns,
had the worst come first, a loss series of 3,000 points ($30,000 would
have been endured up front, something most managements could not
stomach). Additionally, the margin required to support these positions
lowers the return to capital. Figure 7-4 shows how the margin requirements shift with the invocation of the martingale sequences during drawdown periods.
Margin required rises dramatically in the last drawdown where
as many as 28 contracts must be supported for what started as a
single-contract trade. This is meant for large money or large lines of
credit. However, most of the time, requirements are much less and the
computation of return to capital will be more favorable.
Taken together, this exemplary analysis nicely demonstrates the
strengths and weaknesses of the martingale strategy. On the favorable
Days in Campaign
Figure 7-4 Martingale Margin Requirements. Margin pops dramatically as the
martingale sequences elongate. Margins are the columnar elements of the chart
while profits arc the line element. Note the differing scales.
98
MARTINGALES
8
TRADING MANAGEMENT
While we are certainly far from true control of trading activity for
relatively assured profits, its not too early to consider how that might
work. Its reasonable to think of this because we can put B measure to
losses which is part of giving us a standard for performance (the other
half being measures of gain which have been well studied). We actually have a picture of how a particular trading combination should
perform; we know, to some degree, what constitutes normal experiences and what doesnt; and, since we know what the losses should be,
we have the gain/loss picture more firmly focused.
PORTFOLIO
IMPACTS
100
TRADING MANAGEMENT
as seen in Chapter 7, combinations using progressive capital commitment schemes (betting progressions) may have both higher returns
and higher variance of returns. All of this necessitates a portfolio reassessment.
DAY-TO-DAY
TRADING
Managers are always in the loop of measuring results, seeing deviations from plan and making corrections to the plan (Figure 8-l).
Traders, in contrast, are usually wondering if theres been a change in
plan. I took a loss, they mull. Was it a serious loss? Is it telling me
something? Did I do something wrong? Has the situation changed? Did
everyone else do something wrong? Am I out of touch? What happened?
Traders usually think they have a plan when what they have is
an idea of how to get into a trade. Someone one level up whos managing traders usually hasnt any illusions that hes planning, directing, and controlling. He tries to make sure the cannons are firing
regularly and pointedly rather than rolling around aimlessly.
Instead, what if the trader could turn to his plan and check if the
loss was within expected size or if the overall frequency of losses was
within expected ranges? What if wins were similarly comparable to
DAY-TO-DAY TRADING
101
Figure 8-l
play? For a trader, a simple checklist would then tell him if he were
performing properly (Figure 8-2).
Heres another thought: a trading manager who knows objectively what his traders losses should look like (as most trading managers feel intuitively) has a tool for making changes. He can look at
losses first through the checklist above to identify problems with the
trader, problems with conditions, or problems with trading rules (Figure 8-3).
To make these assessments, either at the traders level or the
managers level, some standard is necessary. To say whether a trader
102
TRADING
MANAGEMEN
Figure 8-2 Trader Performance. Broad categories of judgment tell the trader or
his manager if he or she is performing to spec. There should he no distress for a loss
taken properly hut there should be distress for a win taken improperly.
DAY-TO-DAY TRADING
Figure 8-3
103
104
TRADING MANAGEMENT
was early or late in getting out of a bad trade, you must know where
the stop level should have been. If you believe the stop varies with the
trade, the conditions of the market, or the ability of the trader you
have a lot of variables to deal with and none you can cite without arbitrariness. If, on the other hand, you set the stops based on the elements you can control-the entry point, your indicators, and your
rules-theres a good chance youll find a distinct stop (and/or reversal) point to which you can manage.
Notice I said manage. Knowing your *wrong point objectively
gives you a beacon when you drift off course. Correct to the target as
a: good manager would. Knowing your historical win profitability and
choosing your loss level you should be able to
l
ELABORATIONS
Typical Path
This book has focused on adverse excursion because it is most important to manage losing properly. However, back in Chapter 2, definitions of two forms of favorable excursion were also given. These two
definitions serve when defining what could be called the typical path
of a trade. Like adverse excursion, excursion analysis of winning trades
begins with separating the winners from the losers, the winning behavior from the losing behavior. These excursions are then analyzed
ELABORATIONS
105
MAE uses price extremes, normally highs and lows, but its occasionally fruitful to use closes instead of extremes as the measure. Highs
and lows are thinly traded and, sometimes, not really traded at all
while closes are difficult to trade on a stop basis. However, where liquidity is bare, the close might be the most likely price to actually receive or take. Too, its excursions are generally less than those of the
106
TRADING MANAGEMENT
high or low so that you get less adversity to handle at the cost of increased intraday vigilance and some premium for efficient execution
at the close.
CONCLUSION
All these elaborations stem from knowing what losses should look
like. That knowledge gives you the tool to control losses 80 the wins
can do their work. There are more than enough traders and trading
rules to generate winning trades but there are few objective techniques for managing losses appropriately. This book described one
such practical technique: measuring maximum adverse excursion.
Appendix
COMPUTING MAE
* Microsoft has been good to date about compatibility between various versions of
Excel. Later versions extant by the time you read this should be able to use this code.
108
APPENDIX A
and extend this formula down column G to the bottom of your list of
prices.
This formula captures the closing price as the entry price of the
position. Modify the formula to use another price if thats what you
wish.
This formula displays long positions as negative values, the negative representing a cash outflow. Short positions are shown as positive values, the positive representing a cash inflow.
Next, we prepare a column which (1) computes profit or loss on
the trade and (2) serves as a switch to tell the later MAE column that
the trade has closed.
Assure that cells H2 and 12 are blank as row three will refer to
them.
In cell H3, enter:
=IF(G3< >G2,IF(G:!>O,G2%E3,IF(G2<0,G2+E3)))
and extend the formula down to the bottom of your price list.
This formula computes the net profit or loss, exclusive of commissions and slippage, as of the close of the day when the signal in
column F changes. Modify the G2 ~ E3 or G2 + E3 expressions to
include commissions and/or slippage.
Finally, we compute MAE with an involved expression which (1)
will not compute MAE when there is no position except on the day
closing a position, (2) will not compute MAE on the opening day of the
position taken at the close, (3) will compute the proper MAE on a reversai, and (4) will compute MAE using the MAX expression in Chapter 2 which compares zero, the difference between the entry and the
worst price, and the previous MAE. The spreadsheet logic is tortuous
but enter in cell 13:
=IF($G3< >O,IF($G2< >O,IF($H2
=FALSE,1F($G2<0,MAX(0,-5G2-$D3,$12),MAX(0,5C3
~$G2,512)),1F($G2<0,MAX(0,-5G2-$D3),MAX(0,5C3
p$G2)))),IF($H3< >FALSE,IF($G2<0,MAX(O,-$G2
-5D3,512),MAX(O,5C3-5G2,512))))
and extend the formula down to the bottom of your price range.
109
COMPUTING MAE
Profit
1
Date
2
3
4
5
6
Open
11/6/90
11/7/90
1118190
11/9/90
11/12/90
High
28.93
29.40
31.32
31.50
29.32
Low
Close
29.62 28.70
30.95 29.30
32.35 30.82
31.97 30.42
29.53 29.03
Position
29.51
30.95
32.02
30.59
29.31
1
1
1
0
Entry OF
Price Loss
MAE
-30.95
-30.95
-30.95
0
False
0.13
0.53
1.92
False
False
False
-1.64
Entry
Date
or
Loss
MAR
7112185
7/15/85
7/16/&i
7/17/85
7/18/85
7/19/85
25.77
25.43
25.56
25.69
25.61
25.58
25.76
25.66
25.70
25.69
25.73
25.62
25.54
25.37
25.47
25.53
25.58
25.52
25.56
25.59
25.53
25.55
25.62
25.57
71221.35
7123185
25.48
25.82
25.77
25.94
25.38
25.73
25.66
25.93
False
0.10
0.14
0.14
0.17
0.17
0.21
0.38
-1
-1
-1
-1
-1
-1
-1
25.56
25.56
25.56
25.56
25.56
False
False
False
False
False
False
False
-0.37
25.56
25.56
110
APPENDIX A
Remember, MAE never goes lower than its previous value in a trade
and never goes below zero.
5/24/89
5/25/89
5/26/89
5/30/89
5131189
6/l/89
6/Z/89
615189
6/6/89
617189
618189
619189
6112189
6113189
6114189
6/15/89
6/16/89
6119189
6/20/89
6/21/89
6122189
6123189
17.80
18.15
18.08
18.31
18.36
18.27
18.24
19.04
19.08
18.84
18.40
18.56
17.93
17.64
17.66
17.46
17.63
17.38
17.58
17.63
18.11
18.20
18.31
18.50
18.33
18.40
18.42
18.33
18.77
19.17
19.12
19.08
18.66
18.58
18.01
17.74
17.73
17.93
17.63
17.62
17.74
18.08
18.26
18.49
17.78 18.28
18.13 18.21
18.07 18.31
18.18 18.38
18.22 18.27
18.20 18.31
18.18 18.75
18.91 19.13
18.81 19.11
18.36 18.41
18.24 18.57
18.20 18.23
17.58 17.61
17.39 17.41
17.22 17.57
17.45 17.74
17.38 17.51
17.25 17.57
17.52 17.58
17.57 18.01
17.99 18.10
18.18 18.48
1
1
1
1
1
1
1
1
1
1
1
0
-1
-1
-1
-1
-1
-1
-1
-1
-1
0
-18.28
-18.28
- 18.28
-18.28
-18.28
-18.28
-18.28
-18.28
-18.28
-18.28
- 18.28
0
17.61
17.61
17.61
17.61
17.61
17.61
17.61
17.61
17.61
0
Profit
or
Loss
MAE
False
False
False
False
False
False
False
False
False
False
False
-0.05
False
False
False
False
False
False
False
False
False
-0.87
False
0.15
0.21
0.21
0.21
0.21
0.21
0.21
0.21
0.21
0.21
0.21
False
0.13
0.13
0.32
0.32
0.32
0.32
0.47
0.65
0.88
COMPUTING MAE
111
Entry
Open High Low Close Position Price
L:s
MAE
21.55
21.67
21.71
21.82
22.00
21.97
21.81
21.96
22.04
22.01
21.63
21.76
21.41
21.27
20.97
21.23
20.82
20.95
20.54
False
False
False
False
False
False
F&e
False
False
False
False
-0.16
F&e
False
False
False
False
False
False
False
0
0
0
0
0
0
0
0
0
0
0.23
0.04
0.04
0.04
0.04
0.04
0.04
0.04
21.63
21.70
21.78
22.14
22.04
22.05
21.89
22.06
22.08
22.03
21.92
21.77
21.48
21.29
21.14
21.24
21.01
20.98
20.65
21.53 21.60
21.65 21.67
21.70 21.73
21.82 22.09
21.97 22.02
21.81 21.81
21.77 21.81
21.95 22.03
21.92 21.96
21.86 21.86
21.79 21.83
21.37 21.44
21.18 21.19
21.05 21.07
20.97 21.14
20.93 20.94
20.69 21.00
20.63 20.69
20.46 20.61
1
1
1
1
1
1
1
1
1
1
1
-1
-1
-1
-1
-1
-1
-1
-1
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
21.44
21.44
21.44
21.44
21.44
21.44
21.44
21.44
Appendix
COMPUTING MAxFE
* Microsoft has been good to date about compatibility between variom version8 of
Excel. Later versions extant by the time you read this should be able to we thiv code.
112
COMPUTING MAxFE
113
114
APPENDIX B
D&e
2 6/28/87
3 6/29/87
4
5
6
7
8
9
10
11
12
13
6/30/87
7/l/87
7/2167
716187
l/7/87
7/B/87
719/87
7,12/87
7/13/87
7/14/87
14 7/15/87
15 7/16/87
30.99
30.67
30.97
31.15
31.08
31.03
30.75
30.66
F
Long (1)
or Short
31.02
31.04
31.04
31.19
31.18
31.13
31.03
31.15
31.00 31.15
31.12 31.20 31.12 31.20
31.19 31.34 31.19 31.33
-1
-1
31.37 31.44 31.37 31.39
-1
31.55 31.72 31.05 31.68 -1
31.66 31.70 31.57 31.67 -1
31.66 31.66 31.56 31.65 -1
II
Price P&L
n
False
-31.04
-31.04
F&e
False
-31.04
-31.04
False
0
0.09
0
False
False
0
31.20
False
31.20
False
F&e
31.20
31.20
F&e
31.20
False
31.20
False
Entry
MaxFB
F&e
0.00
0.11
0.17
0.17
False
False
False
0.01
0.01
0.15
0.15
0.15
COMPUTING MAxFE
115
The MaxFE on 10/22/92 is that for the short from 21.44. The code supplied
above should handle even this situation.
A
P&L
MaxFE
F&e
F&W
False
False
False
False
False
False
False
False
False
-0.16
False
False
False
False
False
F&e
False
False
False
F&e
0.10
0.18
0.64
0.54
0.54
0.54
0.54
0.64
0.54
0.64
0.54
0.26
0.39
0.47
0.51
0.75
0.81
0.98
0.98
0.96
Long (1)
1
Date
2
3
4
5
6
7
8
9
10
11
12
13
14
16
16
17
18
19
20
21
22
10/6/!32
10/7,92
10/8/92
10/9/92
10/12/92
10/13/92
10,14,92
10/15/92
10/16/92
10/19/92
10/20/92
IO/21192
10122192
10/23/92
10126192
lo/27192
lo/28192
10,29,92
10,30/92
11/2,92
11/3/92
21.63
21.70
21.78
22.14
22.04
22.05
21.89
22.06
22.06
22.03
21.92
21.77
21.48
21.29
21.14
21.24
21.01
20.98
20.65
20.76
20.78
21.53
21.65
21.7
21.82
21.97
21.81
21.77
21.95
21.92
21.66
21.79
21.37
21.18
21.05
20.97
20.93
20.69
20.63
20.46
20.55
20.6
21.60
21.67
21.73
22.09
22.02
21.81
21.81
22.03
21.96
21.66
21.63
21.44
21.19
21.07
21.14
20.94
21.00
20.69
20.61
20.70
20.66
or Short
Entry
( -1)
1
1
1
1
1
1
1
1
1
1
1
-1
-~I
-1
-1
-1
- 1
- 1
-1
-1
-1
Price
-21.60
-21.60
-21.60
-21.60
~~-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
21.44
21.44
21.44
21.44
21.44
21.44
21.44
21.44
21.44
21.44
Appendix
COMPUTING MINFE
* Microsoft has been good to date about compatibility between various versions of
Excel. Later versions extant by the time you read this should be able to use this code.
116
COMPUTING MINFE
117
and extend the formula down to the bottom of your price list.
This formula computes the net profit or loss, exclusive of commissions and slippage, as of the close of the day when the signal in
column F changes. Modify the G2 - E3 or G2 + E3 expressions to
include commissions and/or slippage.
Finally, we compute MinFE with an involved expression that (1)
will not compute MinFE when there is no position except on the day
closing a position, (2) will not compute MinFE on the opening day of
the position taken at the close, (3) will compute the proper MinFE on
a reversal, and (4) will compute MinFE using the MAX expression in
Chapter 2 which compares zero, the difference between the entry and
the worst price, and the previous MinFE. The spreadsheet logic is tortuous but enter in cell 13:
APPENDIX C
118
Table C-l
Row
21
22
23
Long (1)
or Short
Entry Price P&L MinFE
Date Ooen High Low Close
( -1)
lo/W92
10/7/92
10,8,92
10/g/92
10,12,92
10,13,92
10/14,92
10/15/92
IO,16192
10/19/92
10,20,92
10,21/92
IO,22192
10/23/92
10,26,92
lo/27192
10,26,92
lo/29192
10/30/92
11/z/92
11,3,92
11,4,92
21.55
21.67
21.71
21.62
22.00
21.97
21.81
21.96
22.04
22.01
21.83
21.76
21.41
21.27
20.97
21.23
20.82
20.95
20.64
20.72
20.77
20.40
21.63
21.70
21.78
22.14
22.04
22.05
21.89
22.06
22.08
22.03
21.92
21.77
21.48
21.29
21.14
21.24
21.01
20.98
20.65
20.7fi
20.78
20.44
21.53
21.65
21.70
21.82
21.97
21.81
21.77
21.95
21.92
21.86
21.79
21.37
21.18
21.05
20.97
20.93
20.69
20.63
20.46
20.55
20.60
20.28
21.60
21.67
21.73
22.09
22.02
21.81
21.81
22.03
21.96
21.86
21.63
21.44
21.19
21.07
21.14
20.94
21.00
20.69
20.61
20.70
20.65
20.40
1
1
1
1
1
1
1
1
1
1
- 1
- 1
- 1
-1
-1
-1
-1
- 1
- 1
~~ 1
-1
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
-21.60
21.44
21.44
21.44
21.44
21.44
21.44
21.44
21.44
21.44
21.44
21.44
0.05
0.10
0.22
0.37
0.37
0.37
0.37
0.37
0.37
0.37
0.37
0.00
0.15
0.30
0.30
0.43
0.46
0.79
0.79
0.79
1.00
Appendix
GENERATING A
FREQUENCY DISTRIBUTION
Date
Open
High
LOW
Close
Position (Long +l, Short -1)
Entry Price
Profit or loss on the trade at
ClOW
I
J
K
MAE
Winning MAE
Losing MAE
119
120
APPENDIX D
>FALSE,IF(HS>O,IS))
and extend the formula down to the end of your data array. In column
K, go to K3, enter
=IF(H3<
>FALSE,IF(H3<0,13))
and extend the formula down to the last line of your data. These two
formula record the MAE! if its a winner or loser, respectively. Otherwise, they enter a FALSE value which wont be picked up by the function creating the frequency distribution.
Now, go to the last line of your data array. The spreadsheet I used
for this book has 3,069 lines or rows, so all the formulae were extended
to row 3069. Just below the last line, in cell 53070 (or the equivalent
in your spreadsheet) enter:
= count( j3:j3069)
In cell K3070, enter:
= count(i3:i3069)
These two counts will serve as checksums on the frequency distribution. This is a good place to enter other statistical measures such as
average, median, skew, and kurtosis. If you know what these are,
youll know how to put them in! For the graphically oriented amongst
us, lets get on with making the graph. Make these entries:
Cell 13070 MAE
Cell 53070
Winners
Cell K3070
LOSSIT
Next we make the categories by telling the spreadsheet the size of each
bin. Enter:
Cell 13071
.15
121
3070
MAE
Winners
LOSWS
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
0.15
0.30
0.45
0.60
0.75
0.90
1.05
1.20
1.35
1.50
1.65
1.80
1.95
2.10
122
APPENDIX D
3070
MAE
Winners
LOSIX%
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
0.15
0.30
0.45
0.60
0.75
0.90
1.05
1.20
1.35
1.50
1.65
1.80
1.95
2.10
80
17
4
0
0
1
1
0
0
1
0
0
0
0
0
104
21
44
28
28
7
10
2
3
1
0
0
1
2
1
0
148
Appendix
m FOR
SHORTS AND LONGS
You would like to distinguish between the MAE distributions for short
positions and that for long positions, probably because you feel the adverse price movement in those two situations is different. If it were
different, youd adjust your stops and reverse point differently depending on the direction of your trade. This appendix shows you some
Excel code that you can use to construct the two charts youll need to
analyze this.
To begin with, lay out the data as described in Appendix D, to wit:
Column
Information in Column
A
B
C
D
E
F
G
H
I
Date
Open
High
LOW
Close
Position (Long +l, Short - 1)
Entry Price
Profit or loss on the trade at close
MAE
123
124
APPENDIX E
These two columns will extract from the MAE column, column I, the
MAE values if the position is long or short and it will extract them on
a daily basis. Extend the formulae in row 3 down to the bottom of your
data range.
Next create four new columns as follows:
Winning Long Losing Long Winning Short
MAE
MAE
MAE
Long Short
MAE
=IF($HY< >
FALSE,IF($G2
<O,IF($H3>
=IF($H3< >
FALSE,IF($GZ
<O,IF($H&
=IF($H3< >
FALSE,IF($GZ
>O,IF($H3>
=IF($H3< >
FALSE,IF($G2
>O,IF($B3<
0,513)))
0,513)))
0,$13)))
0,513)))
These formulae will check (1) if a position has closed, (2) if it was a long
or a short (by looking in column G), and (3) if it was a winner or a loser.
The column with the formula that checks out will transfer the MAE
value into itself; otherwise, it will set the cell to FALSE, a reading
which is ignored by the summary statistical functions well use next.
Table E-l is an exemplary table against which you can check your code.
Next, you summarize the data in columns L through 0 just a8 it
was summarized in Appendix D. In cells L22 through 022 enter the
labels for the graph youre creating:
ROW
125
value you wish and you can have more bins or fewer bins as you think
necessary. Here you end up with values from .l to 1.0.
Select the range from L23 to L34 and type-but dont hit
ENTER= frequency (13:121,k23:k33)
and, while holding down the 6 key, press ENTER. If youre using a
Windows machine, press CTRL + SHIFT + ENTER for the same result. The entire range is filled automatically by EXCEL; you dont
need to extend the formula down. Normally, youd have far more rows
than just three through twenty-one, so youd adjust 13:21 in the formula to match the range you want checked. If your range of bins were
more or less than K23:K33 youd adjust that as well.
APPENDIX E
126
Just so you can be sure, you follow the same procedure for
columns M, N, and 0. Each time, select the range from row 23 to row
34. Here are the formulae for each column:
0
= FREQUENCY
(M3:MZl,K23:K33)
= FREQUENCY
(N3:N21$23:K33)
= FREQUENCY
(03:021$23:K33)
Winners,
LOIW
22
23
24
2s
28
27
28
29
30
31
32
33
34
3s
0.1
0.2
0.3
0.3
0.4
9.5
0.8
0.7
0.8
0.9
1.0
Overflnw
Totals
1
0
0
0
0
0
0
0
0
0
0
0
1
Lone
N
Winners,
Short
L0SlXS,
Short
0
0
0
0
1
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
1
LO.%3~S,
Appendix
COMPUTING
PROFIT CURVES
COMPUTATION
It isnt always possible to pick out a stop and/or reverse point just from
a frequency diagram. That only shows the number of trades that have
taken place in each MAE bin and, frequently, the curve for winners
will overlap the curve for losers. To sort this out, using the same bins,
compute the profit or loss from the winners and losers and plot the
two curves for comparison. Chapter 4 outlines this process generally
with tables. This appendix shows you scme Excel code that you can
use to construct the charts youll need to analyze this.
To begin with, lay out the data as described in previous appendices as follows:
127
Column
A
B
C
D
E
F
G
H
I
J
K
L
M
Information in Column
Date
Open
High
LOW
Close
Position (Long +l, Short -1)
Entry Price
Profit or loss on the trade at close
MAE
Winning MAE
Losing MAE
MinFE*
MaxFE
* For exposition, MinFE and MaxFE were shown in column I. Now move them to columns L and M by rearranging columns.
See columns A through I of Table E-l. You should have something like
this:
128
129
The table to be created here will have the MAE bins values
across the top of the columns. I set them for this example at .ll, .21,
.31, .41, 51, and .61 which values will vary as you change the size of
the bins during your analysis. These would be your stops. The .ll
stop would allow adverse excursion up to .lO before being triggered,
for example.
The rows will be each day (or week, month or period). The result
in each cell of the table will be the end-of-the-day closed equity from
all the trades to date, assuming the trades were stopped at .Ol less
than the column heading (that is, stopped at .l for the first column, .2
for the second column and so on).
First put in the column headings as:
ROW
0.11
0.21
0.31
0.41
0.51
0.61
and extend this formula to the right to, in this example, cell 53. Then
extend N3 through S3 (in Excel notation N3:S3) down to the bottom
of your data range. The results for columns N through S are shown in
Table F-l.
To be sure you understand the calculations, you should work
through the impact of each of the four trades here. This will be important later when you analyze changing stops and wonder why the
results arent always intuitive.
The first trade closes on row 7 with an adverse excursion of just
.07. None of the stops are tripped and the profit booked to date is increased by the trades profit of .09. This is the simplest case possible.
Next, in row 14, a trade closes with a profit of .8 (80 ticks) and
an MAE of .ll. Looking at cell N14, you can see the impact of tripping the stop set at .ll. Instead of adding 80 points of profit as in cell
014, eleven points of loss is added from the stops being executed:
.09 - .ll = -.02.
130
APPENDIX F
Table F-l Profit Curves. Too tight a stop at .ll causes losses
in this sample data while looser stops are profitable. Row 21 will
be the summary-to-date of each stops impact.
ROW
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
11
18
19
20
21
0.11
0.21
0.31
0.41
0.51
0.61
0.00
0.00
0.00
0.00
0.09
0.09
0.09
0.09
0.09
0.09
0.09
-0.02
-0.02
-0.02
-0.02
-0.13
-0.13
-0.13
-0.24
0.00
0.00
0.00
0.00
0.09
0.09
0.09
0.09
0.09
0.09
0.09
0.89
0.89
0.89
0.69
0.66
0.68
0.66
0.47
0.00
0.00
0.00
0.00
0.09
0.09
0.09
0.09
0.09
0.09
0.09
0.89
0.89
0.89
0.89
0.58
0.58
0.58
0.27
0.00
0.00
0.00
0.00
0.09
0.09
0.09
0.09
0.09
0.09
0.09
0.89
0.89
0.89
0.89
0.59
0.59
0.59
0.18
0.00
0.00
0.00
0.00
0.09
0.09
0.09
0.09
0.09
0.09
0.09
0.89
0.89
0.89
0.89
0.59
0.59
0.59
0.17
0.00
0.00
0.00
0.00
0.09
0.09
0.09
0.09
0.09
0.09
0.09
0.89
0.69
0.89
0.89
0.59
0.59
0.59
0.17
131
Figure F-l Profit vs. Stop Level. A tight stop at .11 produces losses while profits peak with a stop of .21 using the sample data in this Appendix. Results arent
always so neat but the display is typical.
GRAPHIC DISPLAY
To display the data graphically, select N1:Sl and N21:S21.* Then
order up a chart of the selected range.+ Figure F-l is the result using
the numbers in Table F-l.
In Figure F-l, Nl:Sl are the stop levels specified in the worksheet, all set one tick higher than the limits of the bins used for
analysis.
Interpreting Figure F-l is straightforward since all we seek is
a point for placing a stop. This (limited) experience shows that a stop
at .21 would generate the most profit.
Occasionally, youll have two or three stop levels that are close to
each other in profitability at the end of a long run of trades. It may be
* See your spreadsheets manual for non-contiguous aelection. In
the 1 key when selecting additional ranges of cells.
In Excel 4.0, type +N, C, return. In Excel 5.0, select the Chart Wizard button and
follow
instructions.
132
APPENDIX
Figure F-Z Closed Profit or Loss Over Time. Using the three dimensional charting capability in a spreadsheet, the numbers in Table F-l generate information
about which stop levels perform best over the trading period.
that one performed better prior to the end of trading and youd like to
check that. You can plot the equity performance of all three stop levels over time using the 3D graphics functions in your spreadsheet.
Using Table F-l as the example, select N3:P21, generate a chart and,
if its not your default option, change the display to a three dimensional line drawing.*
Figure F-2 with its four trades doesnt tell you much more than
the ending results of Figure F-l but it does show that the lowest stop
generates the slowest rate of decline when the two-trade losing streak
hits toward the end of trading. This sort of inspection of a long series
of trades may be valuable to a trader picking stops for the future.
* Excel users can consult the Gallery in Excel 4.0 and the Chart Wizard in Excel
5.0.
Appendix
Here are some examples from a variety of tradables showing the relationship of range to volatility. These graphs may give you some
trading ideas for tracking volatility using range as a proxy or for adjusting entry points on volatility-based trading systems. Naturally,
this book is concerned with the effects expanded ranges have on
stops.
Each graph (Figures G-l through G-4) has been prepared
using a standard computation of volatility for twenty days (to pick
a number). From the high-low range for each day, the moving,
twenty-day, simple average was computed. The two series were
mean-normalized by adjusting the volatilitys mean to that of the
ranges, giving a graphic where the coincident fluctuations of both
were highlighted.
133
134
Figure G-l
APPENDIX C
AT&T Range and Volatility. Though not consistent in their fluctuation, changes in range and volatility in AT&T during early 1995 oken coincided
but occasionally diverged over longer periods.
135
APPENDIX C
Figure G-3 June 1995 U.S. Treasury Bond Futures. Leads and lags in the changes
of range and volatility are apparent in this graph of the futures contracts activity,
Though only a short extract of time, it suggests that range expansion or contraction
may precede volatility expansion or contraction, a neat intuitive result.
137
Figure G-4
Dow Industrials Range and Volatility. While daily range (smoothed)
certainly fluctuates, the associated volatility nwves much more quickly to produce
sharper peaks and valleys than that of the smoothed range. The coincidence of
these two lines suggests the range/volatility relationship may be most applicable in
indices where the law of large numbers has great effect.
Appendix
RANGE EXCURSION
This appendix shows how youd check to see if range expands or contracts after your combination of tradable and trading rules calls for a
trade. This programs an exemplary spreadsheet to demonstrate one
way of approaching the question.
To begin with, lay out the data as described in previous appendices in Table H-l. Notice that Ive kept columns I through M for
MinFE and MaxFE, respectively, but in the tabular output below, Ive
suppressed their printing to save space here.
Devote the first 63 rows to data so that the trading system has
all the data needs on row 64. Then go to cell N60 and, beginning from
there, enter column headings as below in Figure H-l.
138
RANGE EXCURSION
139
Information in Column
A
B
C
D
E
F
G
H
I
J
K
L
M
Date
Open
High
LOW
Close
Position (Long +l, Short -1)
Entry Price
Profit or loss on the trade at close
MAE
Winning MAE
Losing MAE
MinFE
MaxFE
After the headings are all entered, begin in Cell N 64 and make
the following entries, leaving cell T64 blank:
Cell
N64
064
P64
Q64
R64
S64
U64
Cell Entry
=ROUND((SUM(C45:C64)-SUM(D45:D64))/20,2)
=C64-D64
=IF(G64< >0,064-N64)
=IF(G64< >O,IF(G64< >G63,O,MAX(Q63,C64-D64)))
=IF(G64< >O,Q64-N64)
=IF($G64< >O,IF($F64< >$F63,$N64))
=IF(G64< >0,064-T64)
140
APPENDIX
Figure H-l
Column Headings. To prepare for the computation of range expansion, enter these headings in these cells. If you prefer to put headings on the top
row. thats fine, too. Formula entry will start on cell N64. (SMA20 is a mnemonic
for 20.day simple moving average.1
Cell Entry
>O,IF($F65< >$F64,$N65,T64))
Lastly, ycm extend to the bottom of your data rows. If that data
ended on row 300, for example, select N65:U300* and hit CMD-D.
Excel may give you a warning that it cannot proceed unless there is no
Undo. If so, accept the warning and proceed anyway. This should extend all formulas down to the bottom of your model creating the data
series for your inspection.
GRAPHICS
Because different versions of Excel have differing interfaces to specify graphics Ill restrict myself to getting the data into place for graphing as shown in the text.
The values computed above create strings of values during the
trades. Since there is no way to know where in the column they will
RANGEEXCURSION
141
occur and you should graph each from the day the trade starts you
must tediously cut these strings, transpose and especially paste them
into a second worksheet where their statistical properties and graphics can be processed.
Therefore create two new worksheets, one for comparing ranges
after entry to a running 20-day simple moving average and a second
for comparing those ranges to the range exactly at entry. Take extra
precautions to keep these two spreadsheets separate.
Each spreadsheet will have two blocks of data. The first block will
be, roughly from A3:AZ36 and the second from, roughly, A38:AZ65.
These can be changed as you need. The number of rows is dependent on
the number of trades and the number of columns is dependent on how
many days the trades go on. If you dont want to transpose the values
from vertical, as they are in the model above to horizontal, these two
blocks should be arranged vertically rather than horizontally.
Begin with the headlines, examples of which are in Figure H-2
which shows the beginning of the block for Winners. I put the title for
Losers in cell B38. As an example, I use the comparison of range to the
moving 20-day average of range.
Once the headlines are set, return to the original model first constructed in this appendix (I11 refer to it as the range expansion
model). Go to your first trade which, for example, looks like Table H-2.
Next switch over to the Graphics Worksheet and select cell A5.
From the menu, select EDIT Paste Special. In the pop up window, select Paste Values and click the box for Transpose, then click OK (or hit
Return). The values themselves will be laid out as shown in Figure H-2.
Next, return to the range expansion model and go to your next
trade by proceeding down the column. As before, highlight the entire
series of values, copy the series, return to the graphics worksheet, and
Figure H-2 Titles for Graphics Worksheet. Take care to keep the worksheets for
the two different range expansion measures separate with embedded comments.
Data for the first trade be,e,ins on row five.
142
APPENDIX H
Over and
Under
Daily
Over or
Range at
Range Days Under Max
Range
Range Entry, Life Range at
Entry
SMASO Range SMASO Ram% Exrransion at Entry of Trade
0.18
0.18
0.18
0.18
0.18
0.19
0.19
0.19
0.07
0.06
0.11
0.10
0.28
-0.11
-0.12
-0.07
FZ3lZX
False
0.19
0.08
False
-0.11
0.15
-~0.04
0.07
0.07
0.11
m~o.11
-0.11
-0.07
False
False
F&e
0
0.15
False
False
False
-0.19
-0.04
0.01
0."6
0.11
F&X
False
False
-0.11
-0.04
RANGEEXCURSION
143
Figure H-3
Frequency Distribution Expressions. These formulations summarize
the distribution of winners and losers range expansions in the graphics worksheet.
BUT, dont hit the return key. Instead, hold down the command button and hit the enter key. This will extend the frequency distribution,
using the categories in A78:A90 throughout the range and put any
overflow into cell B91. Note that this is sorting all the data points in
the range B39:AV65, the range where all the losering trades range expansions lie.
Figure H-4
144
APPENDIX H
Appendix
MARTINGALES
Figure l-l
Headings Layout. This screen capture shows the models headings.
Rows one through four are text or fixed values used in the calculations below.
145
146
APPENDIX I
The probability of a win can be varied later in the model; its set
to .5 here for convenience and because the resulting calculations dont
get out of hand. The value in D2, set to 1, is actually the ratio of the
average win (in dollars) to the average loss in dollars. This allows you
to adjust this crucial factor land 888 the impact on your equity and
loss drawdowns immediately. Last, F2 is set to $310, the MAE and avwage loss for the Crude data used in this book. This is a little harsh;
some trades could be losers without hitting the MAE stop. The model
itself deals mostly with trading units but this allows a convenient calculation of dollar impacts. You could make it worse by adding in slippage and commissions.
COMPUTATIONS
To enter the computations, row 5 is given the initial values where
needed and row 6 is given the formulations. Then, row 6 is just extended downward to row 24 by highlighting A5:F24. NOTICE that the
Bet Table in columns G and H is entered manually. Its values are not
formulas but specific values that Excel will look up depending on the
state of the equity units in column E. Ive created this table from a
complex martingale so that you can quickly look up your bet without going through the martingale logic. The martingale used is a
slightly modified version of that published by Bob Pelletier.*
Enter these values in row 5:
ColumnlRow
A5
B5
c5
D5
E5
F5
Value or Expression
1
1
=IF(B5=O,FALSE,IF(RANDO~C$2,LOSS,WIN))
_ IF~C5~LOSS.-B5.BSD$2)
=D5
=E5*F$2
MARTINGALES
147
Row
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Bet
Table
-45
~36
-28
-27
-21
-20
-19
-15
-14
-11
-10
-9
-8
-6
-5
-4
-3
-2
-1
0
10
9
8
8
7
10
8
6
6
8
5
5
6
4
4
5
3
3
2
1
148
APPENDIX I
that comes up, give the range the name Bet-Table using the lower
dash (SHIFT-Dash), not the normal dash on the upper right of your
keyboard. Click OK to close the popup window.
Next enter these values in row 6:
Column/Row
A6=
B6=
Value or Exmession
A5+1
IF(E5~0,OVLOOKUP(E5,Bet_Table,2))
EXPLANATIONS
MARTINGALES
149
Bet
LOSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Loss
Win
False
False
False
False
False
False
False
F&e
False
False
False
False
FASC
False
False
False
False
False
$ Win I $ Loss
1
contracts
Loss/Gain
Equity
Units
-1
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
-1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Bet Size
$310
Equity Bet Table
$(310)
310
310
310
310
310
310
310
310
310
310
310
310
310
310
310
310
310
310
310
-45
-36
-28
-27
-21
-20
-~19
-~15
-14
-11
-10
-9
-8
-6
-5
--4
-3
-2
~1
0
10
9
8
8
7
10
8
6
6
8
5
5
6
4
4
5
3
3
2
1
USE
This model can show you very quickly the good and bad points of the
martingale. Since it randomly generates wins and losses, all you need
to do to see another scenario is hit your Calculate Now command
150
APPENDIX I
(CMD =). Once youve become familiar with the base cam of 50% winning probability and $l:$l win to loss size, see whats important in
managing a martingale by tweaking the probability of winning and
the ratio of wins to losses.
For some analytical adventure, turn the win/loss ratio into a random variable mapped between 1 and 5 and skewed to the left between
1 and 3, a pretty typical trading situation.
Appendix
APPLYING MARTINGALES ~0
T RADING C AMPAIGNS
152
APPENDIX
Figure J-1
Headings for Martingale Analysis. The models first five columns and
63 rows are given over to data to feed the trading rules. Titles for the analysis are
in cells Fh3:063.
Figure J-2
Bet Table for Crude. Equipped to handle adverse runs up to twelve
losses and 23.trade martingales. the Crude bet table is much longer than the cimulations bet table in Appendix I.
153
your needs. In cell 059 enter the title Margin in $; in 060, enter
$2000; and in 061, enter the formula * = 059/10 without the quotes.
This assumes your tradable trades at $10 per tick. Adjust as necessary to compute margin in trading points.
One other preparation is necessary before filling in the formulations for the day-to-day computations. That is to create the Bet Table
as in Appendix I. This table must be filled in manually because its
values are specific to the martingale I used. I began it at cell 662 with
the title Bet Table. Enter it into the cells Q62:R96 as shown in Figure J-2.
This table is so much larger than that of the simulation model
because Crude goes on longer runs!
Beforeleaving the bet table it must be defined to Excel. Highlight Q63:R96 and then select from the menu bar FORMULA/DEFINE NAME Enter the name Bet-Table (without the quotes)
and click OK. From now on, the model can refer to this entire table by
the name weve just given it.
Next, move to the following cells and fill in the formulations
specified:
Cell
Formulation
F64 =IF(E64>E52,IF(E64>E4,1,O),IF(E64<E4,-1,0))
G64 =IF(F63< >F64,IF(F64=1,-E64,IF(F64=-1,E64,O)),G63)
H64 FALSE
164 FALSE
564 0
K64 =IF(H64< >FALSE,IF(H64<0,IF(K63=FALSE,-1,
-VLOOKUP(L63,BET_TabIe,Z)),IF(K63
=FALSE,FALSE,VLOOKUP(L63,Bet_Table,Z))),IF(L63>
=O,FALSE,IF(M63>=O,FALSE,K63)))
L64 =IF(K64=FALSE,FALSE,IF(H64< >FALSE,K64
+L63,L63))
M64 =IF(L64=FALSE,FALSE,IF(H64<0,IF(J$61>164,
-H64*K64+M63,J$61*K64+M63),H64*K64+M63))
N640
064 =IF(G64< >O,IF(K64<0,0$61-K64*0$61,0$61
+K64*0$61),FALSE)
154
APPENDIX J
H64,164,564, and N64 all held initial values but, for the rest of
the rows need formulas. To avoid typing row 65 again select F64:065
and hit CMD-D. This will fill in row 65 with the formulas from 64
plus some initial values which youll now overwrite with specific formulas. Enter the following formulas in the cells indicated.
Cell
Formulation
mm$D65),MAX(O,$C65 ~$G64)))),1F($H65<
>
FALSE,IF($G64<O,MAX(O,m$G64
-$D65,$164,,MAX(O,$C655$G64,$164))))
565 =IF($H65< >FALSE,IF(J$61<$165,564-J$61,564
+$H65),J64)
N65 =IF(H65=FALSE,N64,IF(M65=FALSE,N64+565
-J64,M65-M64cN64))
Wow! Seeing the actual logic behind simple trading ideas is astonishing!
Now, checking to see the last row of your data, (lets say row
3000, for example) select F65:03000.* Then hit CMD-D. Excel may
complain that the selection is too large to do with an Undo, but bit
OK. Once it has copied itself, select Calculate Now (if you dont have
Automatic Calculation turned on) and your equity curves are deposited in columns J and N.
With the various charting sequences in various packages of
Excel, I forbear instructing on creating a chart but the most foolproof
way is to make line charts your default chart type, select and move
the two columns adjacent to each other, select the range you wish to
chart and invoke the chart wizard. In Excel 4.0 for the Mac, the last
efficient version of Excel, hit CMD-N, C, and return. Voila!
* An easy way to do this is put your cursor in cell F65, select GO TO and enter 03000
in the popup box. BEFORE you close the box, hold the shift key down and click OK.
The entire area will he selected for you.
155
EXPLANATION
Columns F through I have already been explained in earlier Appendices. The Trade column computes whether a dual-moving average
trade is on or off and in what direction. You can change this formulation to use the model for different trading rules. Column G computes
and holds the positions entry price, negative (for cash outflow) for
longs and positive for shorts. When the trade ends Column H computes
the win or loss. Column I computes the maximum adverse excursion
on each day of the trade and its final value.
Column J keeps a running total of the wins and losses, subject
to the .31 MAE stop, resulting in the equity curve of the trading combination. Each time there is a closure of a trade, Column J checks to
see if the adverse excursion exceeded the .31 level. If so, the trade is
marked a loss of .31 even if it was a winning trade originally. This accounts for the negative impact of MAE-or any-stop.
To get to the martingales equity curve, Column K waits until a
losing trade is recorded. Then it computes the number of contracts or
share blocks that were risked on the trade in units. These are the
numbers used to track the martingales sequence. Later as the martingale proceeds through more losses, it recomputes the number of
contracts to be risked by looking up the values in the Bet Table. Using
the bet table is preferable to encoding the elaborate martingale logic
within the limitations of Excel. The bet table holds valid amounts to
risk for the most common values in the martingale used here. If you
want to experiment with a different martingale, youll need to make
the Excel logic or create a similar table by going through various
win/loss sequences.
Column L is a running total of the contracts or share blocks that
have been won or lost. If this running total turns to zero or positive
the martingale is ended. Similarly, Column M keeps a running total
of the trading points gained or lost during the progression of the martingale. If this turns positive the martingale is ended, placing the
trader at a new high level of profitability.
Column N keeps a running total of the equity from the trend
trade as impacted by the Martingales results, in trading points. Winning and losing trend trades plus all the wins and losses of the martingale are summed here to create the martingales equity curve.
156
APPENDIX I
INDEX
158
INDEX
Excursion(s), price:
adverse/favorable, 10-15. See also
Maximum adverse excursion
(MAE)
key assumption (time frame),
10
consistent (Figure 2-31, 9
measuring from point of entry, 4,
8
Experience, trading, 3-4
Frequency diagrams/distributions,
25-32
bins, see Bin(s)
calculating/generating
(Appendix
D), 119-122
example (Figure 3-21, 26
and long/short, 32
Indicators, related, 105
K-ratio, 82
Losers/winners, see Winners/losers
LossCes), runs of, see Runs effects
Loss limit (2% rule of thumb), 68,
14,84
MAE, see Maximum adverse
excursion (MAE)
Management, see Trading
management
Management performance checklist
(Figure S-3). 103
Market behavior, and zebra
analogy, l-4
Martingales, 85-98
applying to trading campaigns
(Excel code; Appendix J),
151-156
complex, 88-93
creating model in Excel
(Appendix I), 145-150
on crude oil, 93-98
margin requirements, 97
simple, 87-88
simulation (Appendix J),
E-156
strengths and weaknesses,
97-98
MaxFE, see Maximum favorable
excursion (MaxFE)
Maximum adverse excursion
(MAE):
collecting data for, 21-25
sample list (Table 3-l), 22
defining, 7-20
displaying, 21-32
examples, short/long (Figure
2:5),12
exemplary Excel code (Appendix
A). 107-111
in fre&cydiagrams, 25-32
us. profit/loss (Figure 3-l), 24
us. range at entry, 55-56
sample calculations (tabular
examples), 16-20
long (Table 2-11, 16
short (Table 2-21, 17
for shorts and longs, 12, 32,
123-126
and trading decisions (placing a
stop or reversing), 28-31
and trading management, 99-106
winning trades/losing trades,
seminal observation about,
23
Maximum favorable excursion
(MaxFE), 10, 11-15
examples, short/long (Figure
2-61.13
exemplary Excel code (Appendix
B). 112-115
sample calculations:
long (Table 2-3). 17
short (Table 2.-41, 18
MinFE, see Minimum favorable
excursion (MinFE)
INDEX
Minimum favorable excursion
(MinFE), 10, 11-15
examples, short/long (Figure
Z-7), 14
exemplary Excel code (Appendix
Cl, 116-118
sample calculations:
long (Table 2-61, 19
short (Table 2-71, 20
Moving 20-day average, and range
volatility, 46-55
Path, typical (of a trade), 104-105
Point of entry/point of exit
(measuritig price excursion
from), 4
Price chart, standard (Figure 2-21,
9
Price excursion, see Excursion(s),
price
Price ranges, 41. See also
Range/range volatility
Profit curves. 34-37
absolute value (Figure 4-21, 37
computing (Appendix F), 127-132
example (Figure 4-l), 36
summary display (Figure 4-31,
38
and widening/tightening stops,
39
Profit/loss us. MAE (Figure 3-l),
24
Profit tradeoffs, 33
Progressions, 63, 84
Range/range volatility, 41-62,
133-137, 138-144
anecdotal evidence (Appendix G),
133-137
and classically defined volatility,
42-46
MAE us. range at entry, 55-56
and moving 20.day average,
46-48
159
160
INDEX