Professional Documents
Culture Documents
..............................
.............................
...............................
13
..........................
20
.......................
23
.............................
18
.........................
16
......................
28
..........................
32
..............................
35
.................................
39
.............................
42
..........................
"The long and short of it: The noise channel breakout system 2"
BY DENNIS MEYERS, PH.D (Active Trader, October 2001) . . . . . .
"The multibar range breakout system"
BY DENNIS MEYERS, PH.D (Active Trader, January 2004)
47
......................
53
............................
41
.....................
58
...........................
60
............................
62
..........................
64
...........................
66
68
1
TRADING Basics
Price breakout
40
37.00
35
30
26 916
25
Lowest price
of last 40 bars
21.50
20
15
27 3 10 24 31 7 14 28 6 13 20 27 3 10 24 1 8 15 22 30 5 12 19 26 3 10 17 24 31 7 14 21 28 5 11 18 25 2 9 16 23 30 6 13 27 4
Jan. 2000
Feb.
Mar.
Apr.
May
June
July
Aug.
Sept.
Oct.
Nov.
Dec.
Glossary
FIGURE 2 DONCHIAN BREAKOUT CHANNELS, INTRADAY
The breakout concept is applicable to any time frame. Here, the highest
20-bar highs and lowest 20-bar lows are shown by the channel lines.
Oracle Corporation (ORCL), 10-minute
27.25
27
26 916
26
25
Highest price
of last 20 bars
24
23.81
23
22
Lowest price
of last 20 bars
14 15
10 11 12
11/28 Tuesday
13 14
15
10 11 12
11/29 Wednesday
13 14
15
10 11 12
11/30 Thursday
13 14
15
10
12/1 Friday
Application
Traders using breakouts are basing their
trades on the following principle: If
price momentum is strong enough
(either up or down) to push through a
significant technical level, there is a
good chance price will continue in that
direction for at least a while. As a result,
these price levels represent logical trade
entry and exit levels with well-defined
risk, both for traders who expect follow
through in the direction of the breakout
and, as will be described shortly, traders
who are looking to fade breakouts.
Key points
Price breakouts are typically used as
trend-following signals. The greater the
number of days (or price bars) used to
determine the breakout, the longer-term
trend the trading system will reflect and
attempt to exploit. For example, a 20-day
(or 20-bar) breakout would capture shorter trends than a 40-day breakout, which
in turn would reflect shorter trends than
an 80-day breakout. Generally, in terms of
trend-following approaches, the longerterm the breakout, the more significant
the price move and the greater the likelihood of sustained follow through.
Breakout trading can also simplify
risk control because stop-loss levels are
often easy to identify. For example, if
price breaks out of the upside of a trad-
25 5964
24
20
Breakout above
previously tested high
16
12
Jan. 1997
Apr.
July
Oct.
Jan. 1998
Apr.
July
Oct.
Jan. 1999
55
Far side of
trading range
(stop 1)
54
Midpoint
(stop 2)
53
Breakout level
(stop 3)
Trading range
51 1516
51
10:00 10:30
11:00 11:30 12:00 12:30 13:00 13:30 14:00 14:30 15:00 15:30
Bottom line
reason for a trade is nullified, that position should be eliminated. (Note also,
the second and third options would be
likely short entry points for traders looking to fade the upside breakout.) Figure
4 shows a downside breakout out of a
36
35 2364
34
32
Far side of
trading range
30
Trading range
28
26
Midpoint
False
breakout
24
22
Original
breakout level
20
25 2 9 16 23 30 6 13 20 27 3 10 18 24 3 10 17 24 31 7 14 21 28 5 12 19 27 2 9 16 23 30 7 14 21
Dec.
Jan. 1997
Feb.
Mar.
Apr.
May
June
July
Additional research:
Trading for a Living
by Alexander Elder
John Wiley & Sons, 1993
Trading Systems and Methods
by Perry Kaufman
3rd edition, John Wiley & Sons, 1998
Technical Analysis of the Financial
Markets
by John Murphy
New York Institute of Finance, 1999
Street Smarts
by Linda Raschke
and Laurence A. Connors
M. Gordon Publishing Group, 1995
Schwager on Futures:
Technical Analysis
by Jack Schwager
John Wiley & Sons, 1996
TRADING Strategies
PATTERNS
WITHIN PATTERNS
Upside
breakout
80
78
76
Stopped out
74
72 58
72
70
68
12
19
26
3
July
10
17
24
31
7
Aug.
Using the opposite side of a trading range as a stop for a breakout trade can
result in large initial risk if the trading range is wide.
130
patterns.
125
120 1516
120
115
110
105
100
95
90
4 11 18 25 1 8 15 29 6 13 27 3 10 24 31 7 14 28 6 13 20 27 3 10 24 1 8 15 22 30 5 12 19 26 3 10 17 24 31 7 14
Nov.
90
80
77
60
Narrow range
50
40
30
4 11 18 25 1 8 15 22 29 6 13 20 27 3 10 18 24 31 7 14 22 29 6 13 20 27 3 10 17 24 1 8 15
Oct.
Nov.
Dec.
Jan. 2000
Apr.
May
June
July
Aug.
Feb.
Mar.
Apr.
May
Resistance
80
70
Flag
60
50
40
30
27 4 11 18 25 1 8 15 29 6 13 27 3 10 24 31 7 14 28 6 13 20 27 3 10 24 1 8 15 22 30 5 12 19 26 3 10 17 24 31 7
Oct.
Nov.
Dec. Jan. 2000 Feb. Mar.
Source: Qcharts by Quote.com
Apr.
May
June
July
Aug.
93 38
92
Resistance
88
84
Narrow
flag
80
76
S
H
19
May
22
23
24
25
26
30
31
1
June
The advantage
of trading breakouts
of congestion
patterns such as
trading ranges,
triangles, flags
and pennants is that
these formations
allow you to clearly
define the risk on
your trades.
point but a much closer stop. In this
case, placing a stop one tick below the
low of the narrower trading range
would have reduced the risk to 6 34
points. For a short-term trader, this represents a large stop, but its still a dramatic improvement and the profit
potential for the move out of the larger
trading range is still intact. (Later, well
look at the practical risk-reward impact
this can have on a trade.)
Figure 4 provides another example. In
this case, EMC Corp. (EMC) repeatedly
pulled back from resistance around 72 12.
Because a well-defined horizontal trading range did not develop (the stock
swung back and forth in an increasingly
wider range), the most recent swing low
around 51 would be the reference point
for the initial stop-loss a risk of more
than 20 points.
However, as the stock bounced off that
low and made another run at the resistance level, it formed a flag consolidation
from June 7 to June 12 with a high around
69 78 (the highs of the bars in the flags
were within 116 of each other) and a low
around 66 1316. The upside breakout of this
flag provided an early entry to the subsequent surge that pushed the stock past
the 72 12 resistance level to new highs.
Figure 5 shows a 15-minute chart of
the Nasdaq 100 tracking stock (QQQ).
The stock formed a large bottoming pat-
Structuring a trade
Figure 3 provides a good example of how
this approach can work in the context of a
complete trade plan. The rally from the
late-October 1999 low to the early-
A flag forms in the middle of a larger trading range. Even though price
gapped above the flag, playing the upside of this smaller pattern offered
early entry and a tighter stop on a long-side trade.
52
49 171256
48
44
Trading range
40
36
32
Flag
28
3 10 17 24 1 7 14 21 28 6 12 19 26 2 9 16 23 30 7 13 20 27 4 11 18 26 1 8 15 22 29 6 13 20 27 3
May
June
July
Aug.
Sept.
Nov.
Dec.
Jan. 2000
Oct.
TRADING Strategies
Anticipating BREAKOUTS
and beating SLIPPAGE
Trading breakouts is a tried-and-true
approach on all time frames. But intraday
and other short-term traders
can sometimes give up
precious points because
of slippage.
BY STEVE WENDLANDT
13:00
61
14:00 15:00 16:0010:00 11:00 12:00
13:00
14:00
15:00 16:00
59
Stop placed at most
recent swing high (50 34)
57
55
53
51 18
51
49
47
350,500
10
Feb.
Mar.
Apr.
May
122
109 12
97
8412
72
5912
47
3412
25 1116
5,820,000
Feb.
Mar.
Apr.
May
130
125 964
12312
117
11012
104
9712
91
8412
8,434,900
11
Trendline breakout
Triangle breakout
12
100-20 channel
breakout system
3/1/95 2/6/96
Cash
2/3/97
1/2/01
1/2/02
Short
1/2/03
Money management: Risk a maximum of 2 percent of total account equity per trade. The position
size is based on the difference between the entry
price and the initial stop level. Trade the number
of shares that would result in a 2-percent loss of
account equity if the stop level were hit.
Short
44.00
42.00
40.00
38.00
36.00
34.00
32.00
Cover
30.00
10.00 M
Volume
5.00 M
August 2002
September
Source for all figures: Wealth-Lab Inc. (www.wealth-lab.com)
13
October
November
Long
period
70
70
130
130
80
70
80
90
90
70
130
130
130
120
70
120
90
110
Short
period
16
14
26
14
24
18
18
24
18
16
14
26
16
18
14
16
26
14
STRATEGY SUMMARY
Profitability
Net profit ($):
Net profit (%):
Exposure (%):
Profit factor:
Payoff ratio:
Recovery factor:
12,608
12.61
73.36
1.05
0.25
0.35
Drawdown
Max. DD (%):
Longest flat days:
35.29
1,766
Trade statistics
No. trades:
Win/loss (%):
Avg. gain/loss (%):
Avg. holding time:
Avg. profit (winners):
Avg. hold time (winners):
330
38.79
0.09
34.09
12.67
53.33
-7.88
21.91
6/14
-5%
-10%
-15%
-20%
-25%
-30%
-35%
3/3/93
3/3/94
3/1/95
2/9/96
2/3/97
2/2/98
1/8/99
1/3/00
1/2/01
1/2/02
1/2/03
ket began to fall in the year 2000, and although this period did
produce a small profit, it was also accompanied by extreme
volatility.
System parameters: One way many traders attempt to
improve a system is to optimize its parameters (in this case,
the number of days used to determine the channel lengths).
This involves testing various parameter combinations to find a
range of values that result in the greatest profit over a given
period.
Although this technique can result in a system that shows
tremendous profit over a historical testing period, the odds that
you would have known to use those specific parameter values
PERIODIC RETURNS
Avg. Sharpe Best Worst Percentage Max.
Max.
return ratio return return profitable consec.
consec.
periods profitable unprofitable
Weekly
0.04% 0.15 11.49% -8.47%
49.42%
11
9
Monthly
0.19% 0.15 13.53% -8.31%
50.83%
6
6
Quarterly 0.51% 0.15 22.09% -13.63% 48.78%
5
4
Annually 2.19% 0.17 33.91% -10.28% 50.00%
3
2
LEGEND: Avg. return the average percentage for the period Sharpe ratio
average return divided by standard deviation of returns (annualized)
Best return best return for the period Worst return worst return for
the period % Profitable periods the percentage of periods that were profitable Max. consec. profitable the largest number of consecutive profitable periods Max. consec. unprofitable the largest number of consecutive unprofitable periods
Trading System Lab strategies are tested on a portfolio basis (unless
otherwise noted) using Wealth-Lab Inc.s testing platform.
If you have a system youd like to see tested, please send the trading and money-management rules to editorial@activetradermag.com.
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
14
15
at the start of the period are about the same as picking the
winning lottery numbers for tomorrow. The parameters that
worked best in the past years are unlikely to be those that
work best in the future.
However, there are ways to use optimization effectively. One
technique is called walk-forward optimization. First, system
parameters are optimized on an initial (sample) data period.
Second, the best-performing parameters are used to execute the
system on a new, historical (out-of-sample) data period after
the sample period. This allows you to find out if the optimized
parameters would have improved the results going forward,
without cheating by using hindsight.
We performed a walk-forward optimization on the 100-20
channel breakout system by first optimizing the long and the
short channel periods for the first nine years of historical
price data. We then used the best-performing parameter values for each stock in the portfolio (see Table 1) and applied
them to the last year of historical price data.
Figure 4 is the equity curve for this optimized system. The
walk-forward optimized system lost 1.54 percent during the
one-year period, but buy and hold lost 30.57 percent. (The
system lost nearly 9 percent during this same year using the
default parameter values of 100 and 20.) The walk-forward
optimization was effective in this case.
The 100-20 channel breakout performs much better on the
long side than on the short side in stocks. Although it may be
possible to improve the systems performance by optimizing
the channel periods for each stock, optimization must be used
120,000
115,000
110,000
105,000
100,000
95,000
90,000
85,000
80,000
75,000
70,000
65,000
60,000
55,000
50,000
45,000
40,000
35,000
30,000
25,000
20,000
15,000
10,000
5,000
0
3/1/02 4/3/02
Equity
5/7/02
Cash
6/12/02
7/22/02 8/28/02
Linear reg
Long
10/7/02
11/15/02
Short
1/2/03
2/6/03
FUTURES
100-20 channel
breakout system
The system equity curve with the 2-percent maximum loss setting has a
relatively stable uptrend.
220,000
210,000
200,000
190,000
180,000
170,000
160,000
150,000
140,000
130,000
120,000
110,000
100,000
90,000
80,000
Rules
1. Enter long on the next bar at the highest
100-day high.
2. Exit long on the next bar at the lowest
20-day low.
3. Enter short on the next bar at the lowest
100-day low.
4. Exit short on the next bar at the highest
20-day high.
(All trades are executed as stop orders.)
70,000
60,000
50,000
40,000
30,000
20,000
10,000
0
3/25/93
3/1/94
2/1/95
Equity
1/2/97
1/2/98
Linear reg
1/4/99
Long
1/3/00
1/2/01
1/2/02
Short
Money management
1. Risk a maximum of 2 percent of account equity
1/4/96
Cash
2,200,000
2,000,000
1,800,000
1,600,000
1,400,000
1,200,000
per trade. (Results will also be discussed for a 6percent maximum risk version of the system.)
2. To determine the position size (number of contracts to trade), multiply the difference between the
entry price and the stop-loss price by the dollar
value of a one-point move in the contract, and
divide the result by the contracts minimum margin.
For example, assume the contract being traded
has a point value of $250 and a $1,000 margin
requirement. Next, assume the initial entry buy
stop is at $100 (the value of the 100-day high) and
the initial stop-loss level is at 80 (the lowest 20day low). In this case, you would buy five [{(100
80)* $250}/$1000 = 5] contracts.
The $5,000 maximum loss this five-contract
trade represents should not be more than 2 percent of the current portfolio equity. As a result,
unless the account equity is in excess of $250,000,
the system would not be able to take this position.
Starting equity: $100,000. Deduct $10 slippage/commission per trade.
1,000,000
800,000
600,000
400,000
200,000
0
3/25/93
Equity
3/1/94
2/2/95
Cash
2/1/96
1/8/97
1/2/98
Linear reg
1/4/99
Long
1/3/00
1/2/01
1/2/02
Short
cent.
The system results on the futures portfolio were fairly good when the maximum risk was set to 2 percent
per trade. The system returned an average profit of 8.42
percent per year, with the largest losing year being -8.91
percent. The systems market exposure was low on
average, about 30 percent.
Based on this information, the idea of increasing the
risk and taking more contracts for each signal might
sound like a good idea, especially because there is still
plenty of margin available. Even though the system
reached an account value of more than $3 million (refer
-4.00%
-6.00%
-8.00%
-10.00%
-12.00%
-14.00%
-16.00%
-18.00%
3/25/93
3/1/94
2/1/95
1/9/96
1/2/97
1/2/98
1/4/99
1/3/00
1/2/01
1/2/02
STRATEGY SUMMARY
3/1/94
2/1/95
1/9/96
1/2/97
1/2/98
1/4/99
1/3/00
1/2/01
1/2/02
to Figure 2), the accompanying drawdown would have been nearly impossible to stomach. Exposure climbed near 70 percent, and
the longest wait between new equity highs was more than 750
trading days.
The 100-20 channel breakout performed fairly well in this test. As
discussed in the stock Trading System Lab, you can experiment
with the system by optimizing the channel periods for each market.
Compiled by Dion Kurczek of Wealth-Lab Inc.
Profitability
Net profit ($): 99,997.48
Net profit (%):
100.00
Exposure (%):
29.99
Profit factor:
1.50
Payoff ratio:
1.64
Recovery factor:
3.21
Trade statistics
No. trades:
292
Win/loss (%):
45.21
Avg. gain/loss (%):
0.73
Avg. holding time:
37.60
Avg. gain (winners) %:
6.22
Avg. hold time (winners): 56.30
Drawdown
-3.80
Weekly
0.15%
0.64
7.29% -6.14%
52.07%
22.17
5/7
Monthly
0.66%
0.61
12.32% -9.25%
55.08%
Max. DD (%):
Longest flat days:
19.59
685
PERIODIC RETURNS
Avg. Sharpe Best Worst Percentage Max.
Max.
return ratio return return profitable consec.
consec.
periods profitable unprofitable
Quarterly 1.99%
0.55
24.09% -8.25%
40.00%
Annually
0.58
29.99% -8.91%
66.67%
8.58%
LEGEND: Avg. return the average percentage for the period Sharpe
ratio average return divided by standard deviation of returns (annualized)
Best return best return for the period Worst return worst return
for the period % Profitable periods the percentage of periods that were
profitable Max. consec. profitable the largest number of consecutive
profitable periods Max. consec. unprofitable the largest number of
consecutive unprofitable periods
Trading System Lab strategies are tested on a portfolio basis (unless
otherwise noted) using Wealth-Lab Inc.s testing platform.
If you have a system youd like to see tested, please send the trading and money-management rules to editorial@activetradermag.com.
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
17
FUTURES
16,000
14,000
12,000
10,000
8,000
6,000
4,000
2,000
0
10/15/01
1/8/02
Equity
6/24/02
Cash
9/23/02
Long
12/30/02
4/2/03
Short
6/26/03
9/25/03
10/15/01 1/2/02
Test data: SPY and QQQ. The SPY is designed
to trade at one-tenth the level of the S&P 500;
the QQQ is designed to trade at one-fortieth of the Nasdaq 100.
Like futures, the uptick rule to enter short positions does not
apply to these instruments. QQQ and SPY can be traded intraday but have the advantage that no rollover occurs every three
months.
We downloaded more than two years of 30-minute bars from
the QCharts historical intraday database for SPY and QQQ.
There are a few interesting things to note. For the first hour
range we take the prices from 9:30 a.m. to 10:30 a.m. and for the
closing time we use 4:15 p.m. This is important because we will
18
4/1/02
3/14/02
5/30/02
8/9/02
10/28/02
1/21/03
4/2/03
6/13/03
8/29/03
34.10
34.00
33.90
33.80
Sell
33.70
33.60
33.50
Buy
33.40
33.30
Sell
33.20
33.10
Buy
33.00
9/11/03
STRATEGY SUMMARY
Profitability
Net profit ($):
Net profit (%):
Exposure (%):
Profit factor:
Payoff ratio:
Recovery factor:
Drawdown
Max. DD (%):
Longest flat days:
3,976.80
19.88
44.95
1.11
0.93
1.38
-13.52
1,742
Trade statistics
No. trades:
Win/loss (%):
Avg. gain/loss (%):
Avg. hold time:
Avg. profit (winners) %:
Avg. hold time (winners):
Avg. loss (losers) %:
7.04
10/7
PERIODIC RETURNS
Avg. Sharpe Best Worst Percentage Max.
Max.
return ratio return return profitable consec.
consec.
periods profitable unprofitable
Weekly
0.19%
0.80
7.31% -3.36%
53.85%
Monthly
0.77%
0.88
6.97% -3.17%
52.00%
Quarterly 2.07%
1.39
6.19% -2.19%
66.67%
LEGEND: Avg. return The average percentage for the period Sharpe
ratio Average return divided by standard deviation of returns (annualized) Best return Best return for the period Worst return Worst
return for the period Percentage profitable periods The percentage of
periods that were profitable Max. consec. profitable The largest number of consecutive profitable periods Max. consec. unprofitable The
largest number of consecutive unprofitable periods
Trading System Lab strategies are tested on a portfolio basis (unless
otherwise noted) using Wealth-Lab Inc.s testing platform.
If you have a system youd like to see tested, please send the trading and money-management rules to editorial@activetradermag.com.
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
19
Buy
Buy
Volume
April 2003
Source for all figures: Wealth-Lab Inc. (www.wealth-lab.com)
100M
50M
Buy
27.40
27.20
27.00
26.80
26.60
26.40
26.20
26.00
25.80
25.60
25.40
25.20
25.00
24.80
24.60
24.40
24.20
24.00
23.80
23.60
23.40
250,000
240,000
230,000
220,000
210,000
200,000
190,000
180,000
170,000
160,000
150,000
140,000
130,000
120,000
110,000
100,000
90,000
80,000
70,000
60,000
50,000
40,000
30,000
20,000
10,000
0
3/10/99 9/1/99 3/1/00 9/1/00 3/1/01 9/4/01 3/8/02 9/5/02 3/6/03 9/3/03 3/3/04
Equity
Cash
Drawdown
0%
-1%
-2%
-3%
-4%
-5%
-6%
-7%
-8%
-9%
-10%
-11%
3/10/99 9/1/99 3/2/00 9/1/00 3/5/01 9/4/01 3/8/02 9/6/02 3/7/03 9/5/03 3/5/04
Test results: Figure 1 shows the first trade was a success. Price rose 40 cents after entry and the market
made a small gap open the following day for a twopercent profit. The next two trades, which occurred
only a few days later, were not as successful but
nonetheless booked modest profit.
However, the next trade wiped out the previous
profit and then some. Price gapped up at the market
open, beyond the four-percent threshold, and the
entry order was filled (this particular trade would
have probably been subject to negative slippage because of the
volatility at the open).
Price then suddenly reversed, and the result was a large loss
upon the exit the following day. The fact that the initial losing
trade occurred on a day when prices gapped above the entry
level on the open suggests the system might benefit from a filter that ignores the signal if price opens with a greater than
four-percent gain.
The equity curve (Figure 2) provides a better indication of
the systems overall performance. After a small loss in 1999,
profits began in early 2000 and lasted until mid- to late 2002.
The drawdown curve (Figure 3) confirms this, as the 12-percent drawdown began in late 2002. The system is more or less
flat from April 2003 forward. The only trade after that was in
July 2003, resulting in a loss of 0.08 percent.
Portfolio test results: While it is still too early to tell if this system is worth trading on the QQQ (because its possible the system was subconsciously designed to take advantage of what
STRATEGY SUMMARY
Profitability
Net profit ($):
Net profit (%):
Exposure (%):
Profit factor:
Payoff ratio:
Recovery factor:
121,023
121.09
7.81
1.82
1.13
4.05
Drawdown ($):
Max. DD (%):
Longest flat days:
29,900
-11.93
420
Trade statistics
No. trades:
Win/loss (%):
Avg. trade (%):
Avg. winner (%):
Avg. loser (%):
Avg. hold time:
Avg. hold time (winners):
Avg. hold time (losers):
Max. consec. win/loss:
105
64.76
0.80
2.38
-7.55
1.00
1.00
1.00
11/5
LEGEND: Net profit Profit at end of test period, less commission Exposure
The area of the equity curve exposed to long or short positions, as opposed to cash
Profit factor Gross profit divided by gross loss Payoff ratio Average
profit of winning trades divided by average loss of losing trades Recovery factor
Net profit divided by max. drawdown Max. DD (%) Largest percentage
decline in equity Longest flat days Longest period, in days, the system is
between two equity highs No. trades Number of trades generated by the system Win/Loss (%) the percentage of trades that were profitable Avg. trade
The average profit/loss for all trades Avg. winner The average profit for
winning trades Avg. loser The average loss for losing trades Avg. hold time
The average holding period for all trades Avg. hold time (winners) The
average holding time for winning trades Avg. hold time (losers) The average holding time for losing trades Max. consec. win/loss The maximum
number of consecutive winning and losing trades
0.30%
1.18
11.89%
Monthly
1.30%
1.35
13.34%
-6.40%
50.00%
10
15
Quarterly 3.93%
1.03
25.74%
-6.98%
59.09%
Annually 16.71%
0.56
75.51%
-2.52%
66.67%
*The system remains flat much of the time. A flat period is considered unprofitable
for purposes of this report.
LEGEND: Avg. return The average percentage for the period Sharpe ratio
Average return divided by standard deviation of returns (annualized) Best return
Best return for the period Worst return Worst return for the period
Percentage profitable periods The percentage of periods that were profitable
Max. consec. profitable The largest number of consecutive profitable periods
Max. consec. unprofitable The largest number of consecutive unprofitable periods
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
21
Bottom line: The four-percent breakout system could not be much simpler. Simpler systems are often the most effective, and this
one is no exception. However, there needs to
be sufficient post-publication data to provide a reliable test for the QQQs.
This system is from James Altuchers Trade
like a Hedge Fund.
150,000
100,000
Account balance ($)
50,000
0
250,000
200,000
150,000
100,000
50,000
0
7/15/94 7/31/95 6/7/96 6/2/97 6/1/98 5/6/99 5/1/00 5/1/01 5/1/02 5/1/03 4/5/04
Equity
Cash
22
TRADING Strategies
BROADENING PATTERNS:
34
32
30
29
28
27
26
25
24
23
22
21
20
19
18
Partial rise
12
34
17
16
15
14
13
12
1998
Mar.
Apr.
May
June
July
Source: Proprietary software (Thomas Bulkowski)
Aug.
Sept.
Oct.
Nov.
Dec.
23
37
Partial rise
35
33
31
30
29
28
27
26
25
24
23
22
21
20
19
18
Right-angled broadening
formations
Figure 3 shows a rightangled, ascending broadening formation. The top trendline slopes upward (ascends)
and the bottom trendline is
horizontal or nearly so. Like
other broadening patterns,
the breakout can occur in
any direction, but this pattern usually reverses the
trend. The figure shows this,
as prices rise into the pattern
and exit out the bottom.
After two touches of each
trendline occur, look for a
partial rise or decline. The
late-May decline in Figure 3
does not show a partial
decline. Why? Because the
pattern at that point did not
have at least two minor
touches of each trendline.
Price touches at point 1 but it
is not a minor high or low, so
it does not count as a touch.
Point 2 is valid, as is point 3.
Only after price touches
point 3 can you draw the
horizontal trendline. By that
time, the three touches on
the top connect an up-sloping trendline. The partial rise
that follows correctly predicts a downward breakout.
Figure 4 shows a descending right-angled broadening
17
16
15
14
1998
Feb.
Mar.
Apr.
May
Source: Proprietary software (Thomas Bulkowski)
June
July
Aug.
Sept.
Oct.
Partial rise
26
25
24
23
22
21
20
19
18
17
16
15
14
13
1994
Nov.
Dec.
1995
Feb.
Mar.
Source: Proprietary software (Thomas Bulkowski)
Apr.
May
June
July
Aug.
12
Sept.
25
Not a
partial decline
Partial declines
1999
June
July
Aug.
Sept.
Oct.
Source: Proprietary software (Thomas Bulkowski)
Nov.
Dec.
2000
Feb.
Mar.
20
32
31
30
Partial rise
29
28
27
26
25
24
23
22
21
1999
Aug.
Sept.
Oct.
Nov.
Dec.
Source: Proprietary software (Thomas Bulkowski)
26
2002
Feb.
Mar.
Apr.
May
20
June
Broadening wedges
Figure 5 shows a descending
broadening wedge, which
consists of two down-sloping trendlines (think of a
downward-tilting
megaphone). The rules for wedges
are the same as other broadening patterns: There must
be at least two minor high
touches of the top trendline
and at least two minor low
touches of the bottom trendline. Only then is the pattern
valid and only then should
you look for a partial rise or
decline.
The pattern usually acts as
a continuation, rather than a
reversal, of the prevailing
price trend. However, the
two wedges shown in Figure
5 are reversal patterns. In the
August
pattern,
prices
climbed into the pattern and
broke out to the upside, but
the overall trend (except for
a few days after the breakout) was downward after the
pattern. Prices in the October
wedge were trending downward into the pattern and
exited out its top. The trend
after the pattern ends is predominantly upward.
In the August pattern
example, the slight dip in
Additional research
Books by Thomas Bulkowski:
Encyclopedia of Chart Patterns (John Wiley & Sons, 2000)
Trading Classic Chart Patterns (John Wiley & Sons, 2002)
27
TRADING Strategies
BY THOMAS N. BULKOWSKI
28
Flag criteria
What should you look for when selecting HTFs? That depends on whom you
ask. William ONeil, who popularized
the pattern, has several selection criteria
(see Additional reading, p. 33). He has
written the rally preceding the pattern
should measure 100 to 120 percent and
take less than two months; the flag
should move sideways for three to five
weeks. Finally, the flag should retrace no
more than 20 percent of the preceding
rally.
Applying these rules to 252 patterns
found in price data of approximately 500
stocks between mid-1991 and early 2004
filtered out all of them! (An earlier study
found only six of 81 patterns met his criteria; these patterns did, however, produce
average gains of 69 percent.) The flag
shown in Figure 1 actually does not meet
ONeils criteria because it retraced 52
percent of the prior rise (most flags failed
ONeils filter because they retraced more
than 20 percent) and the flag duration
lasted more than seven weeks .
Ultimate high
HTF examples
Figure 2 shows two HTFs
identified in the study. The
trend start point was determined by finding a 20-percent reversal of the existing
trend, measured from a
prior low to the most recent
close. The ultimate high was
identified by finding a subsequent 20-percent trend
change, measured from a
prior high to the recent
close.
HTF 1 was preceded by a
156-percent rally that lasted
40 days. The flag retraced 38
percent of the rally and lasted 15 days. After the breakout, price climbed 54 percent
to the ultimate high, which
occurred at a resistance area
established by price peaks as
far back as mid-1995 (not
shown).
Price rose 121 percent
leading up to HTF 2, taking
51 days to make the climb.
12
11
10
9
8
7
6
Trend start
5
1998
Aug.
Sept.
Oct.
Nov.
Dec.
1999
Feb.
Mar.
Apr.
May
June
Ultimate high
84
76
68
62
56
50
44
40
36
32
28
HTF 2
Ultimate high
24
22
20
18
16
14
Trend start
HTF 1
12
10
Trend start
8
6
1999
May
June
July
Aug.
Sept.
Oct.
Source: Proprietary software (Thomas Bulkowski)
Nov.
Dec.
2000
Feb.
Mar.
29
93
85
77
71
65
59
53
49
45
41
37
33
Ultimate high
Ultimate high
HTF 2
29
HTF 1
25
23
21
19
17
Trend start
15
13
Trend start
11
1999
Dec.
2000
Feb.
Mar.
Apr.
Source: Proprietary software (Thomas Bulkowski)
May
June
July
Aug.
Sept.
44
42
40
38
36
34
32
30
Ultimate high
Resistance
HTF
Dead-cat bounce
28
26
24
23
22
21
20
19
18
17
16
15
14
Trend start
13
2000
Feb.
Mar.
Apr.
May
30
June
July
Aug.
Sept.
Oct.
12
Nov.
Pattern failures
Figure 4 illustrates two types of pattern
failures. The first is a rise blocked by
overhead resistance. Underlying support or overhead resistance (look for a
solid mass of horizontal price movement
or peaks and valleys stopping near the
same price area) spells death to most
chart-pattern breakout trades. In this
example, price climbed 31 percent (the
pre-pattern rally was 128 percent) after
the HTF breakout. That is a significant
rally by most standards, but it fails to
come close to the 64-percent gain using
the measure rule.
The second failure comes from the fundamentals. The company issued an earnings warning for the quarter and said fullyear earnings would suffer as well. The
stock tumbled 43 percent in one session.
Price bounced up during the next month
before rounding over and making a
lower low in a classic dead-cat bounce
(DCB) pattern. Three months later, the
stock dropped another 32 percent on a
warning about flat annual revenues.
Problems cannot always be fixed in
one quarter. Avoid a stock showing a
DCB for at least six months preferably
a year. That will give the company time
to get its act together.
close above the highest high in the pattern as the buy signal. This is important:
If you buy before the breakout, price
might drop instead. Only 10 percent of
the 252 patterns in the study failed to
climb at least 20 percent, and none failed
to climb less than 5 percent. Those are
very low failure rates.
For protection, use progressive stops.
For example, once price makes a new
Additional reading
Books:
How to Make Money in Stocks (McGraw-Hill, 1988) by William ONeil
Books by Thomas Bulkowski:
Encyclopedia of Chart Patterns (John Wiley & Sons, 2000)
Trading Classic Chart Patterns (John Wiley & Sons, 2002)
Active Trader articles:
Trading busted patterns, November 2004, p. 42
Half-staff patterns: Profiting from flags and pennants, September 2004, p. 48
Three falling peaks: Bearish trend change pattern, August 2004, p. 32
Chart patterns: Does size matter, June 2004, p. 44
Trading disaster: the dead-cat bounce, May 2004, p. 44
Broadening patterns: Clues to breakout direction, April 2004, p. 36
Technicals meet fundamentals in the earnings flag, February 2004, p. 30
31
TRADING Strategies
Mastering
TWO-MINUTE breakouts
How can you find consistent trade opportunities?
One way is to trade breakouts through yesterdays high and low
but only after the stock has shown its true colors.
The tools
BY KEN CALHOUN
The rules
The best time to use this method is the
profitable and volatile 9:40 a.m. to 11
a.m. (EST) time period. Trades typically
last several to 20 minutes. Here are stepby-step guidelines for applying this
Strategy snapshot
Strategy: Two-day breakout
Market: Stocks
Entry: Go long (short) on move
.3 to .5-points above (below) whole
number closest to previous days high
(low).
Exit: Exit with trailing stop or on close.
Risk control: Stop-loss of no more than
0.4 points. Trail stop at this interval
if market moves in direction of trade.
technique.
1. Define the days breakout and
breakdown entry levels before each market open. Set up one of your trading
screens to plot a single, large two-minute
candlestick chart covering two days
(today and the previous trading day) of
trading activity, as shown in Figure 1.
Make sure you start charting by 8:30
a.m. so you can spot any pre-market top
or bottom formations, price gaps and
trends. Identify the previous days high
and low.
2. Enter 0.3 to 0.5 points above the previous days high (for long trades) or low
(for short trades).
3. All intraday trades should have a
maximum stop-loss of 0.4 points.
Combined with entering 0.3 to 0.5 points
above the previous days high, this provides an excellent risk management tool.
In effect, we will exit if the reason for the
trade is negated, i.e., the stock moves
Trade examples
Figure 1 shows that on April 27, Ebay
(EBAY) made a high of 48 and a low of
45.5. Based on the guideline to place the
entry points 0.3 to 0.5 points above or
below the previous days high and low
prices, on April 30 we set long entry at
48.5 (0.5 points above the previous days
high of 48, which was a whole number).
51.50
51.00
50.50
50.00
49.50
Previous days
high: 48.00
49.00
48.50
48.00
47.50
47.00
46.50
46.00
45.50
Current day
Previous day
(compressed)
4/27/01
9:30
4/30/01
10:00
10:30
11:00
45.00
Glossary
Time and sales:
The real-time, official record of
executed trades (as opposed to
bids and offers) throughout the
day. Most trading platforms
include a time and sales window
to monitor this activity.
Noise:
Random, meaningless price fluctuations that can knock traders
out of the market.
Buy programs (program trading):
Computer-based trading
approach whereby institutions or
large trading operations execute
large volume in related markets
to take advantage of discrepancies between them (i.e., buying
S&P stocks and selling S&P
futures). See Program trading
and fair value, Active Trader,
Jan./Feb. 2001, p. 28, for more
information.
Uptick rule:
Securities and Exchange
Commission rule that requires
short sales to be executed when
the last recorded price in a stock
is higher than (or equal to,
depending on the circumstances)
the immediately preceding price.
(The rule varies slightly for NYSE
and Nasdaq stocks, although the
principle is the same.) See A
walk on the short side, Active
Trader, July 2000, p. 32, for
more information.
11:30 12:00
33
Short signal is
generated at
41.40.
Previous days
low: 42.20
Current day
Previous day
(compressed)
5/2/01
9:30
5/3/01
10:00
10:30
11:00
11:30 12:00
Bottom line
Successful trading is much more difficult
than it first appears. It requires a long
process of market watching and practicing chart pattern recognition. In time,
you can learn to avoid low-potential situations and focus on entries based on
specific chart pattern breakouts and
breakdowns.
Planning ahead to trade breakouts
should be done daily using the previous
days high and low to set trade alerts.
Trading with the trend on breakouts using
these criteria will help traders avoid overtrading and selectively trade the strongest
and most powerful chart patterns.
The only exceptions to trading breakouts of the previous days trading range
are those rare occasions when a stock
makes a rapid multi-point drop from the
previous days high and bounces off the
previous days low. But this is a trade for
experienced traders only, and you
should not expect to capture more than
50 percent of the retracements following
the bounce.
In fact, buying bottoms and shorting
tops is largely a failing method, despite the
amazing predisposition of most new
traders to attempt these types of trades.
Your trades should be at least 80 percent
breakouts and no more than 20 percent
bottom bounces, not the other way around.
Its a good idea to tape that to your
monitor, along with the words, Tight
stops no exceptions!
TRADING Strategies
CHANNEL BREAKOUTS
To trade breakouts successfully, you have to line up as many market factors
as possible. Incorporating volume and momentum into your trading plan can put
you on the inside track to breakout trades that wont break apart.
BY KEN CALHOUN
If a stock gaps
The tools
The rules
Strategy snapshot
Strategy: 10-day channel breakout
Markets: Nasdaq or NYSE stocks trading between $5-$60,
with average daily volume of at least 800,000 shares
and average daily range of 1 to 4 points.
Entry (for longs; Go long 50 to 60 cents above the nearest whole number
reverse for shorts): above the highest high of the past 10 days.
Confirmation: The best entries are those in which volume is higher than
in the previous session and/or when the stock is in
a strongly trading sector. Avoid highs that are reached on
lower-than-average volume or those reached by a stock in
a weak sector on the entry day.
Exit/risk control: The widest initial stop should be the closer of 1.5 points
or the previous days low. The most conservative initial
stop-loss is the previous days high. Once in a profitable
trade, trail the stop .5 points below the current trading
range.
Ascending
triangle
Support
55.50
55.00
54.50
54.00
53.50
53.00
52.50
52.00
51.50
51.00
50.50
50.00
49.50
49.00
48.50
48.00
Volume
6 million
4 million
2 million
12:00
12:00
12:00
12:00
12:00
12:00
12:00
12:00
12:00
12:00
11/16/01 11/19/01 11/20/01 11/21/01 11/23/01 11/26/01 11/27/01 11/28/01 11/29/01 11/30/01
Source: eSignal
44.00
43.50
Entry
43.00
42.50
Resistance
42.00
41.50
41.00
40.50
40.00
39.50
Support
39.00
Volume
600,000
400,000
200,000
12:00
12:00
12:00
12:00
12:00
12:00
12:00
12:00
12:00
12:00
11/16/01 11/19/01 11/20/01 11/21/01 11/23/01 11/26/01 11/27/01 11/28/01 11/29/01 11/30/01
Source: eSignal
37
After the stock fulfills the entry requirements and breaks out above
resistance, a trailing stop is used to lock in profits.
38.00
36.00
34.00
Breakout
entry
Resistance
32.00
Exit
30.00
28.00
26.00
24.00
Initial cup
Second cup
22.00
20.00
18.00
16.00
Volume
1 million
500,000
12:00
12:00
12:00
11/29/01 11/30/01 12/3/01
12:00
12/4/01
12:00
12:00
12:00
12:00
12:00
12:00
12/5/01 12/6/01 12/7/01 12/10/01 12/11/01 12/12/01
Source: eSignal
Trade examples
Figure 1 shows Nvidia (NVDA) trading
in a 10-day channel (between 48 to 55)
from Nov. 16, 2001, to Nov. 30,
2001. Based on the guideline to enter 50
cents over the nearest higher whole number above the highest high of the 10 days,
a long entry would be triggered at 55.5.
(If, however, the stock gaps up to, say,
55.8 in pre-market trading, the entry
would be reset over the next number up,
at 56.5 or higher).
The initial stop would be placed at 54,
1.5 points below the entry, because 1.5
points is a tighter stop than the previous
days low (see trade rule No. 5). The
alternate, more conservative stop-loss
level is the previous days high in this
case 54.60.
Notice this stock forms an ascending
triangle pattern following an initial
downturn earlier in the 10-day channel,
and is poised to break out to new highs
if it clears the 55 resistance area. If the
volume when the trade is entered (on
Dec. 1, not shown) is higher than it was
at the same time on the previous day,
this would provide additional confirmation for a long trade.
Bottom line
Swing trading provides traders with
opportunities to manage multiple positions and entries at a more leisurely trading pace than is possible in the hectic
world of day trading. However, every
trader should research and experiment
with different trading styles to help
determine his or her preference and level
of comfort.
Using 10-day trading channels to identify entries on volume breakouts can help
you better define support and resistance
levels and provide techniques you can
integrate with other technical indicators
to develop a swing-trading plan.
Using a comprehensive, measured and
specific strategy to trade breakouts continues to produce entries that are more
consistent than intra-range or bounce
trade approaches. Using volume and
price action filters will help you avoid
false breakouts in choppy markets.
38
EQUITY CURVE
3,000,000
2,500,000
2,000,000
54.00
Buy
Sell
52.00
50.00
Buy
48.00
46.00
ST = AC * PR / R
where
AC = Available capital
PR = Percent risked
R = Distance between entry
price and exit price (stop-loss).
Test period: November 1992 to
June 2002.
39
44.00
42.00
February
Source: Omega Research ProSuite
March
April
May
June
July
DRAWDOWN CURVE
12/7/92
0%
12/7/93
12/7/94
12/7/95
12/7/96
12/7/97
12/7/98
12/7/99
12/7/00
-5%
-10%
-15%
-20%
-25%
-30%
STRATEGY SUMMARY
Profitability
End. equity ($): 2,491,172
Total return (%):
149
Avg. annual ret. (%): 10.00
Profit factor:
1.34
Avg. tied cap (%):
73
Win. months (%):
53
Trade statistics
No. trades:
456
Avg. trade ($):
3,270
Avg. DIT:
35.0
Avg. win/loss ($): 31,090 (13,546)
Lrg. win/loss ($): 391,627(109,437)
Win. trades (%):
38.8
Drawdown
Max. DD (%):
Longest flat (m):
TIM (%):
Tr./Mark./Year:
Tr./Month:
25.8
41.5
100
57.7
4.3
4.0
LEGEND: End. equity ($) equity at the end of test period Total return
(%) total percentage return over test period Avg. annual ret. (%)
average continuously compounded annual return Profit factor gross
profit/gross loss Avg. tied cap (%) average percent of total available capital tied up in open positions Win. months (%) percentage profitable
months over test period Max. DD (%) maximum drop in equity
Longest flat longest period, in months, spent between two equity highs
No. trades number of trades Avg. trade ($) amount won or lost by
the average trade Avg. DIT average days in trade Avg. win/loss ($)
average wining and losing trade, respectively Lrg. win/loss ($)
largest wining and losing trade, respectively Win. trades (%) percent
winning trades TIM (%) amount of time there is at least one open position for entire portfolio, and each market, respectively Tr./Mark./Year
trades per market per year Tr./Month trades per month for all markets
12/7/01
12
months
24
months
36
months
48
months
Most recent:
Average:
Best:
Worst:
St. dev.:
16.70%
10.76%
58.88%
-15.08%
17.29%
-0.91%
-5.86% 15.22% 22.04%
24.50% 42.81% 64.40% 83.77%
87.95% 102.78% 162.29% 155.19%
-19.33% -16.50%
4.57% 16.53%
22.72% 30.43% 36.41% 42.26%
Annualized
12
months
24
months
36
48
months months
60
months
Most recent:
Average:
Best:
Worst:
St. dev:
16.70%
10.76%
58.88%
-15.08%
17.29%
-0.45%
11.58%
37.10%
-10.19%
10.78%
-1.99%
12.61%
26.57%
-5.83%
9.26%
4.06%
12.94%
20.61%
3.11%
7.30%
3.61%
13.23%
27.26%
1.12%
8.07%
60
months
LEGEND: Cumulative returns Most recent: most recent return from start to
end of the respective periods Average: the average of all cumulative returns
from start to end of the respective periods Best: the best of all cumulative returns
from start to end of the respective periods Worst: the worst of all cumulative
returns from start to end of the respective periods St. dev: the standard deviation of all cumulative returns from start to end of the respective periods
Annualized returns The ending equity as a result of the cumulative returns,
raised by 1/n, where n is the respective period in number of years
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
40
&
System Lab
OPTIONS
EQUITY CURVE
5,000,000
4,500,000
4,000,000
FUTURES
3,500,000
3,000,000
2,500,000
2,000,000
1,500,000
1,000,000
500,000
0
11/25/92 11/25/93 11/25/94 11/25/95 11/25/96 11/25/97 11/25/98 11/25/99 11/25/00 11/25/01
The risk for this system was 2 or 4 percent per trade, which resulted in both a drawdown and flat time that would be deemed unacceptable by most professional money managers. These numbers
should stay under 30 percent and 18 months, respectively.
The major disadvantage of a trend-following system is most markets that work well with this type of a system are usually correlated.
In other words, they will either all work well or perform poorly
simultaneously. This is reflected in the erratic look of the systems
equity curve. Because of this, the drawdowns can be both deep and
long, and it usually requires a couple of very good trades to get the
system profitable again. Research has shown that a trend-following
system will work best when traded on 15 to 20 select markets from
various sectors of the economy.
The system ties up an average of 11 percent of capital. This means
there is plenty of room to add markets, and even trade the system
more aggressively, without extending ourselves too much. This is
because futures have much smaller margin requirements than
stocks. Theoretically, as many as 40 to 50 different futures contracts
could be traded before reaching the same level of margin fewer than
20 stocks would require.
Finally, the most recent drawdown of approximately 30 percent is
the only one over the last 10 years of such magnitude. Most of the
previous drawdowns bottomed between 10 to 20 percent. Therefore,
the latest drawdown is quite possibly an anomaly. That said, however, there are no guarantees in the market, and your worst drawdown is always still to come.
The system also has a relatively low trade frequency. To make it
more aggressive, the lookback period can be shortened and/or the
standard deviation boundaries tightened.
STRATEGY SUMMARY
Profitability
End. equity ($): 4,550,290
Total return (%):
355
Avg. annual ret. (%): 17.13
Profit factor:
1.32
Avg. tied cap (%):
11
Win. months (%):
51
Drawdown
Max. DD (%):
31.6
Longest flat (m):
19.7
Trade statistics
No. trades:
303
Avg. trade ($):
11,717
Avg. DIT:
35.8
Avg. win/loss ($): 53,057 (29,536)
Lrg. win/loss ($): 345,600 (131,350)
Win. trades (%):
42.1
TIM (%):
97
54.1
Tr./Mark./Year:
4.0
Tr./Month:
2.6
LEGEND: End. equity ($) equity at the end of test period Total return (%) total
percentage return over test period Avg. annual ret. (%) average continuously compounded annual return Profit factor gross profit/gross loss Avg. tied cap (%)
average percent of total available capital tied up in open positions Win. months (%)
percentage profitable months over test period Max. DD (%) maximum drop in equity Longest flat longest period, in months, spent between two equity highs No.
trades number of trades Avg. trade ($) amount won or lost by the average trade
Avg. DIT average days in trade Avg. win/loss ($) average wining and losing
trade, respectively Lrg. win/loss ($) largest wining and losing trade, respectively
Win. trades (%) percent winning trades TIM (%) amount of time there is at least
one open position for entire portfolio, and each market, respectively Tr./Mark./Year
trades per market per year Tr./Month trades per month for all markets
41
TRADING Strategies
End date
nhi
nlo
2/21/01
3/23/01
2/28/01
3/30/01
All trades
13,890
39,260
48
26
0
-25,370
54
22
5,940
-2,060
1,510
-1,153.18
1.309
289.38
39
21
-8,470
Profit factor:
1.547
43
Performance summary:
All trades
10,490
35,500
0
-25,010
47
47
22
25
5,940
-1,840
1,613.64
-1,000.40
1.613
223.191
39
26
-9,660
Profit factor:
1.419
Test results
Table 1 shows the optimum parameter
values for the test window described in
Proper system testing. The nhi was
eight bars, the nlo was four bars and f
was 1 point. Tables 2a and 2b show test
results using these parameters.
Table 3 summarizes the combined
performance of the two out-of-sample
data segments from March 26 to April 6.
This performance represents what
would have happened in real time if you
used the system parameters found in the
test section (not including slippage and
commissions). By comparison, the same
nhi and nlo values tested without any
filter resulted in a loss of $1,150.
Table 4 is a trade-by-trade summary
All trades
8,390
14,460
16
0
-6,070
50
4,000
-1,350
1,807.50
-758.75
524.38
2.382
54
37
-4,480
Profit factor:
2.382
Entry
time
Buy
or
sell
Entry
price
Exit
date
Exit
time
Exit
price
# bars
in
trade
P&L ($)
P&L (%)
Max.
profit
Time
Max.
drawdown
($)
Time
3/26/01 10:20
Sell
93.75
3/26/01
15:55
94.52
67
(770)
-0.82%
10:20
(1,620)
10:35
3/27/01 10:15
Buy
95.59
3/27/01
15:55
99.59
68
4,000
4.18%
4,300
15:50
10:15
3/28/01
9:40
Sell
97.92
3/28/01
15:55
94.50
75
3,420
3.49%
3,420
12:00
(380)
9:40
3/29/01 10:05
Buy
96.05
3/29/01
15:05
94.90
60
(1,150)
-1.20%
950
10:30
(1,160)
11:20
3/29/01 15:05
Sell
94.90
3/29/01
15:55
94.88
10
20
0.02%
390
15:15
(500)
15:45
3/30/01
9:40
Buy
96.70
3/30/01
13:05
96.20
41
(500)
-0.52%
800
11:55
(1,190)
10:00
3/30/01 13:05
Sell
96.20
3/30/01
15:55
96.25
34
(50)
-0.05%
220
13:15
(840)
14:35
4/2/01
9:40
Buy
97.75
4/2/01
10:55
96.40
15
(1,350)
-1.38%
350
10:05
(1,350)
10:55
4/2/01
10:55
Sell
96.40
4/2/01
15:55
94.50
60
1,900
1.97%
2,600
15:40
(1,300)
11:40
4/3/01
10:00
Sell
93.00
4/3/01
15:55
90.50
71
2,500
2.69%
2,740
15:40
10:00
4/4/01
9:45
Buy
92.00
4/4/01
13:50
92.00
49
0.00%
1,900
11:20
(1,890)
10:30
4/4/01
13:50
Sell
92.00
4/4/01
15:55
91.85
25
150
0.16%
380
14:00
(500)
14:20
4/5/01
9:40
Buy
95.68
4/5/01
15:55
98.15
75
2,470
2.58%
3,040
15:25
(10)
9:40
4/6/01
9:40
Sell
97.30
4/6/01
11:55
98.24
27
(940)
-0.97%
550
11:15
(940)
11:55
4/6/01
11:55
Buy
98.24
4/6/01
12:35
97.30
(940)
-0.96%
1,660
12:05
(940)
12:35
4/6/01
12:35
Sell
97.30
4/6/01
15:55
97.67
40
(370)
-0.38%
300
12:35
(1,960)
13:55
44
45
These parameter values were then applied to an out-ofsample data period following the test segment (March 26 to
March 30). This walk-forward process was repeated by moving
the test data window forward one week, to Feb. 28 to March
30, and again finding the parameters values through optimization on this new data. These optimized parameter values are
then applied to the next out-of-sample five-minute intraday
data window (April 2 to April 6). An important (but unspoken)
point in walk-forward testing is that if you cannot get good
results in the out-of-sample data segments, real-time system
performance will be random.
Almost any period of historical prices can be curve fitted
easily to give the false illusion of future profitability.
However, these performance measures in no way reflect how
a system will perform on price data it has not been optimized
on. Only out-of-sample testing that is, testing on price data
the system parameters were not originally derived from can
determine if a system is robust and has a chance of performing well in real trading.
Despite these facts, many market pundits still make the
unproven claim that statistics generated solely from optimized
buy and sell trades in the test section (the initial period of
price data)have value in predicting whether or not the system
will perform well in the future. Nothing could be further from
the truth. The only thing the statistics from the test section
tell you is how well you have curve-fitted the data in the test
section. As a matter of fact, using optimization, its almost
impossible not to get an excellent fit with great statistical
results.
100
99
-1
98
97
96
95
1
94
93
3/26
3/27
3/28
46
TRADING Strategies
47
Here we will use the NCBS, again applied to IBM fiveminute price bars, to see if some improvement can be made by
using different filters for long and short trades, respectively. To
compare the new version of the system to the previous one, the
following tests will use the same five-minute bar prices of IBM
from Feb. 21, 2001, to April 6, 2001.
First, well review the basics of breakout systems in general
and the NCBS in particular.
NCBS refresher
The basic channel breakout system goes long on a move above
the highest high of the last n bars and goes short on a move
below the lowest low of the last n bars. For example, a 40-day
channel breakout goes long when price moves above the highest high of the last 40 days and goes short when price falls
below the lowest low of the last 40 days.
Breakout systems can be used on intraday price data, as well
as daily or weekly data. The NCBS is an intraday breakout system based on five-minute bars. Because intraday price action
can be very volatile, without some kind of filter the losses generated by the random price movement (that is, whipsaws) can
completely overwhelm a trading system. To help eliminate
www.activetradermag.com October 2001 ACTIVE TRADER
such random movement, the NCBS adds a noise filter, designated by the symbol f, to the basic channel breakout system. The three
system parameters for the NCBS are:
nhi, which is the number of bars in the lookback period
used to determine the highest high price (hhp).
nlo, which is the number of bars in the lookback period
used to determine the lowest low price (llp).
f, which is the amount price must exceed the hhp or llp
to trigger a buy or sell.
WALK-FORWARD:
Proper system testing
48
39,260
-25,370
48
54
26
22
5,940
-2,060
1,510
-1,153.18
1.309
289.38
39
21
-8,470
Profit factor:
1.547
9,640
34,460
38
52.63
20
18
5,350
-3,400
1,723
-1,378.89
1.25
253.68
48
28
-10,030
1.39
44
0
-24,820
Improved performance?
The optimum parameters in Table 1 show the first test data section produced the same optimum parameters as the original
NCBS. This can been seen by observing that both xoU and xoD
are exactly the same and are equal to f of the original NCBS.
The sample performance summaries in Figures 1a and 1b,
and the out-of-sample performance summary of Figure 2a,
show the out-of-sample performance was better than the test
sample performance with respect to average winning and losing trades, drawdowns and profit factor. This improved performance in the out-of-sample section could have been due to
Results
Table 1 shows the optimum parameters
for the IBM five-minute data series. The
lookback periods refer to number of bars
and the filters values are given as dollar
amounts.
Figures 1a and 1b) show the performance summary of the test windows using
the optimum parameters shown in Table 1.
Figure 2a shows the combined performance summary of the two out-ofsample data segments from March 26 to
April 6 for NCBS-2. This performance
represents what would have happened
in real time if the parameters found in
the test sections (Table 1) were used.
Slippage and commissions are not
included. For comparison, Figure 2b
(bottom, right) shows the combined performance summary of the two out-ofsample data segments from March 26 to
April 6 for the original NCBS.
Figure 3 shows a specialized percentage trade-by-trade summary from March
26 to April 6. Note that the trades from
March 26 to April 6 are the out-of-sample
trades generated from the optimized
parameters from the two test sections of
Feb. 21 to March 23 and Feb. 28 to March
30. The in-sample trades are, by definition, curve-fit and are not of interest here.
In addition, for comparison with
Figure 3, Figure 4 contains the specialized trade-by-trade summary from the
original NCBS for the same out-of-sample dates.
Figure 5 is a five-minute chart of IBM
with the NCBS-2 channels superimposed
and some of the buy and sell signals
from the Figure 3 trade-by trade summary indicated on the charts. (All the signals, as well as expanded performance
statistics, can be found at www.activetradermag.com.) Also included at the bottom of the chart is the bar-by-bar profit
or loss of each trade.
All trades
8,650
15,390
0
-6,740
15
0.47
4,000
-1,730
2,198.57
-842.50
576.67
2.61
2
57
38
-5,660
2.28
All trades
8,390
14,460
16
8
0
-6,070
50
8
4,000
1,807.50
-758.75
524.375
2.382
-1,350
54
37
-4,480
Profit factor:
2.382
50
Entry
time
Entry
price
Exit
date
Exit
time
Exit
Bars
Trade
price in trade
$
P&L
Trade
%
P&L
Trade
Max
$Pft
Time
Sell
93.75
3/26/01
15:55
94.52
67
(770)
(0.82)
10:20
3/27/01 10:15
Buy
95.59
3/27/01
15:55
99.59
68
4,000
4.18
4,300
15:50
10:15
3/28/01
Sell
97.92
3/28/01
15:55
94.50
75
3,420
3.49
3,420
12:00
(380)
9:40
3/29/01 10:05
Buy
96.05
3/29/01
15:05
94.90
60
(1,150)
(1.20)
950
10:30
3/29/01 15:05
Sell
94.90
3/29/01
15:55
94.88
10
20
0.02
390
15:15
3/26/01 10:20
3/30/01
9:40
Trade
Max
$DD
Time
(1,620) 10:35
(1,160) 11:20
(500)
15:45
9:40
Buy
96.70
3/30/01
13:05
96.20
41
(500)
(0.52)
800
11:55
3/30/01 13:05
Sell
96.20
3/30/01
15:55
96.25
34
(50)
(0.05)
220
13:15
4/2/01
10:55
Sell
96.45
4/2/01
15:55
94.50
60
1,950
2.02
2,650
15:40
4/3/01
9:40
Sell
93.33
4/3/01
15:55
90.50
75
2,830
3.03
3,070
15:40
(670)
9:45
4/4/01
10:55
Buy
92.99
4/4/01
12:55
92.55
24
(440)
(0.47)
910
11:20
(660)
11:00
4/4/01
12:55
Sell
92.55
4/4/01
15:55
91.85
36
700
0.76
930
14:00
(520)
13:20
4/5/01
9:40
Buy
95.68
4/5/01
15:55
98.15
75
2,470
2.58
3,040
15:25
(10)
9:40
4/6/01
9:40
Sell
97.30
4/6/01
12:00
98.75
28
(1,450)
(1.49)
550
11:15
4/6/01
12:00
Buy
98.75
4/6/01
12:35
97.02
(1,730)
(1.75)
1,150
12:05
(1,730) 12:35
4/6/01
12:35
Sell
97.02
4/6/01
15:55
97.67
40
(650)
(0.67)
20
12:35
(2,240) 13:55
(1,190) 10:00
(840)
14:35
(1,250) 11:40
(1,450) 12:00
Average
(948)
Entry
time
Entry
price
Exit
date
Exit
time
Exit
Bars
Trade
price in trade
$
P&L
Trade
%
P&L
Trade
Max
$Pft
Time
3/26/01
10:20 Sell
93.75
3/26/01
15:55
94.52
67
(770)
(0.82)
10:20
3/27/01
10:15 Buy
95.59
3/27/01
15:55
99.59
68
4,000
4.18
4,300
15:50
3,420
3.49
3,420
12:00
950
10:30
Trade
Max
$DD
Time
(1,620) 10:35
0
10:15
(380)
9:40
3/28/01
9:40
Sell
97.92
3/28/01
15:55
94.50
75
3/29/01
10:05 Buy
96.05
3/29/01
15:05
94.90
60
3/29/01
15:05 Sell
94.90
3/29/01
15:55
94.88
10
20
0.02
390
15:15
3/30/01
9:40
Buy
96.70
3/30/01
13:05
96.20
41
(500)
(0.52)
800
11:55
3/30/01
13:05 Sell
96.20
3/30/01
15:55
96.25
34
(50)
-0.05)
220
13:15
9:40
97.75
4/2/01
10:55
96.40
15
(1,350)
-1.38)
350
10:05
(1,350) 10:55
(1,300) 11:40
4/2/01
Buy
(1,150) (1.20)
(1,160) 11:20
(500)
15:45
(1,190) 10:00
(840)
14:35
4/2/01
10:55 Sell
96.40
4/2/01
15:55
94.50
60
1,900
1.97
2,600
15:40
4/3/01
10:00 Sell
93.00
4/3/01
15:55
90.50
71
2,500
2.69
2,740
15:40
4/4/01
9:45
Buy
92.00
4/4/01
13:50
92.00
49
0.00
1,900
11:20
4/4/01
13:50 Sell
92.00
4/4/01
15:55
91.85
25
150
0.16
380
14:00
4/5/01
9:40
Buy
95.68
4/5/01
15:55
98.15
75
2,470
2.58
3,040
15:25
(10)
9:40
4/6/01
9:40
Sell
97.30
4/6/01
11:55
98.24
27
(940)
(0.97)
550
11:15
(940)
11:55
4/6/01
11:55 Buy
98.24
4/6/01
12:35
97.30
(940)
(0.96)
1,660
12:05
(940)
12:35
4/6/01
12:35 Sell
97.30
4/6/01
15:55
97.67
40
(370)
(0.38)
300
12:35
10:00
(1,890) 10:30
(500)
14:20
(1,960) 13:55
Average
(911)
101
0
100
-1
99
98
97
96
95
-1
1
0
94
93
4,000
2,500
1,000
500
chance but does indicate that four weeks of test data were
enough to capture the intraday price dynamics of IBM.
The performance summaries in Figures 2a and 2b show
there is very little difference between the NCBS and NCBS-2.
The less-complicated NCBS, while having a slightly lower net
profit and average win/average loss ratio, has a smaller drawdown and a smaller largest losing trade. Comparison of
Figures 2a and 2b favors the simpler NCBS.
The out-of-sample trade-by-trade summary of Figure 3
shows the system did better on short trades than on long
trades. This could indicate a negative bias for the system, or
perhaps, given the current bear market, this could be normal.
Whatever the reason, this bias warrants further investigation.
There were no big winners or big losers, indicating steady
returns. Average wins were 2.6 times average losses in the out-ofsample section. Average trade run-ups were $1,493, average trade
drawdowns were -$948 and the average trade net profit was $576.
Its also instructive to compare Figure 3 with Figure 4 to
ACTIVE TRADER October 2001 www.activetradermag.com
determine if the more complicated NCBS-2 offers any advantage in the trade-by-trade figures. There seems to be little
advantage: Both systems totals and averages are nearly the
same. The NCBS-2 had one less trade and slightly better numbers. However, the difference wasnt enough to claim any
superiority or to justify the added complication of another
optimization parameter.
The NCBS-2 did very well in catching every major intraday
trend of IBM. The charts show the system constraint of not carrying positions overnight eliminated many negative opening
surprises. Overall, the system did a good job in minimizing the
losses resulting from the inevitable whipsaws that will occur in
any trading system and maximizing the profits from the major
intraday trend moves of IBM.
To use NCBS-2 in real time trading, the results from at least
10 to 20 more tests and out-of-sample periods would have to be
examined to make sure that the results above were not due to
pure chance.
52
ADVANCED Strategies
53
Long trades
Short trades
$4,912.50
$1,450.00
$3,462.50
Gross profit
$6,637.50
$1,912.50
$4,725.00
($1,725.00)
($462.50)
($1,262.50)
3.85
4.14
3.74
$0.00
$0.00
$0.00
Gross loss
Profit factor
Open position P/L
Total number of trades
55
20
35
58.18%
55.00%
60.00%
Winning trades
32
11
21
Losing trades
22
13
Even trades
$89.32
$72.50
$98.93
Percent profitable
ES = E-Mini price;
BRange = the price range over the last n bars;
SRange = the price range over the last m bars;
bx = the percentage multiplier of the BRange for buy
signals;
sx = the percentage multiplier of the SRange for sell
signals;
c = the current price;
buyCh = c + bx*BRange;
sellCh = c - sx*SRange
where
n = The number of lookback bars (including the current bar) for buy signals.
m = The number of lookback bars (including the
current bar) for sell signals.
$207.42
$173.86
$225.00
($78.41)
($51.39)
($97.12)
2.65
3.38
2.32
$700.00
$362.50
$700.00
($300.00)
($125.00)
($300.00)
Largest winner as
% of gross profit
10.55%
18.95%
14.81%
Largest loser as
% of gross loss
17.39%
27.03%
23.76%
Net profit as
% of largest loss
1,637.50%
1,160.00%
1,154.17%
Max. consecutive
winning trades
Max. consecutive
losing trades
Avg. bars in
total trades
134.96
45.8
185.91
Avg. bars in
winning trades
166.88
69.18
218.05
91.95
17.22
143.69
Max. drawdown
(intraday peak to valley)
($887.50)
($862.50)
($975.00)
Max. drawdown
(trade close to trade close)
($300.00)
($175.00)
($400.00)
Although it may not be immediately obvious, this system avoids the opening gap whipsaw problem
trades being triggered because of large gap openings
($475.00)
($475.00)
($362.50)
Avg. bars in
losing trades
Source: TradeStation
54
Entry
time
10:36 Sell
12:35 Buy
12:52 Sell
13:01 Buy
13:24 Sell
9:51 Sell
14:09 Buy
9:33 Sell
8:58 Sell
9:05 Sell
9:54 Sell
9:05 Sell
8:48 Sell
12:10 Buy
12:22 Sell
9:04 Sell
11:01 Buy
11:02 Sell
8:49 Sell
11:27 Buy
12:02 Sell
13:01 Buy
14:35 Sell
8:32 Sell
9:20 Sell
10:01 Buy
11:37 Sell
14:37 Buy
8:35 Sell
12:51 Buy
13:38 Sell
14:27 Buy
9:21 Sell
12:45 Buy
13:10 Sell
8:43 Buy
9:01 Sell
13:01 Buy
15:08 Sell
8:33 Sell
12:37 Buy
12:57 Sell
9:01 Sell
10:34 Buy
11:28 Sell
8:34 Sell
11:38 Buy
11:56 Sell
13:02 Buy
13:04 Sell
9:00 Buy
11:20 Sell
13:07 Buy
13:22 Sell
8:46 Sell
Entry
price ($)
1,003.75
1,002.50
1,001.50
1,002.75
1,002.50
1,002.00
1,004.25
1,007.75
992.50
993.25
1,012.25
1,002.75
1,000.50
993.25
992.25
988.25
986.25
983.75
986.00
985.25
985.50
985.50
991.50
988.00
976.75
978.50
985.75
987.25
986.25
984.75
986.50
986.75
995.50
993.75
994.25
982.50
983.25
989.25
996.00
995.50
996.50
996.25
991.25
986.75
992.00
990.00
989.25
988.00
988.75
987.00
995.75
1,001.25
1,003.00
1,002.25
983.50
Exit
date
7/7/03
7/7/03
7/7/03
7/7/03
7/7/03
7/8/03
7/8/03
7/9/03
7/10/03
7/11/03
7/14/03
7/15/03
7/16/03
7/16/03
7/16/03
7/17/03
7/17/03
7/17/03
7/18/03
7/18/03
7/18/03
7/18/03
7/18/03
7/21/03
7/22/03
7/22/03
7/22/03
7/22/03
7/23/03
7/23/03
7/23/03
7/23/03
7/24/03
7/24/03
7/24/03
7/25/03
7/25/03
7/25/03
7/25/03
7/28/03
7/28/03
7/28/03
7/29/03
7/29/03
7/29/03
7/30/03
7/30/03
7/30/03
7/30/03
7/30/03
7/31/03
7/31/03
7/31/03
7/31/03
8/1/03
Exit
time
12:35
12:52
13:01
13:24
15:15
14:09
15:15
15:15
15:15
15:15
15:15
15:15
12:10
12:22
15:15
11:01
11:02
15:15
11:27
12:02
13:01
14:35
15:15
15:15
10:01
11:37
14:37
15:15
12:51
13:38
14:27
15:15
12:45
13:10
15:15
9:01
13:01
15:08
15:15
12:37
12:57
15:15
10:34
11:28
15:15
11:38
11:56
13:02
13:04
15:15
11:20
13:07
13:22
15:15
15:15
Exit
Bars
price ($) in trade
1,002.50
119
1,001.50
17
1,002.75
9
1,002.50
23
1,002.75
111
1,004.25
258
1,007.50
66
1,001.00
342
988.75
377
997.75
370
1,002.75
317
1,000.75
370
993.25
202
992.25
12
995.25
173
986.25
117
983.75
1
980.50
253
985.25
158
985.50
35
985.50
59
991.50
94
990.00
40
978.25
403
978.50
41
985.75
96
987.25
180
986.75
38
984.75
256
986.50
47
986.75
49
987.75
48
993.75
204
994.25
25
980.25
125
983.25
18
989.25
240
996.00
127
997.00
7
996.50
244
996.25
20
993.50
138
986.75
93
992.00
54
989.00
227
989.25
184
988.00
18
988.75
66
987.00
2
986.25
131
1,001.25
140
1,003.00
107
1,002.25
15
988.50
113
979.50
389
Trade
$P&L
$62.50
($50.00)
($62.50)
($12.50)
($12.50)
($112.50)
$162.50
$337.50
$187.50
($225.00)
$475.00
$100.00
$362.50
($50.00)
($150.00)
$100.00
($125.00)
$162.50
$37.50
$12.50
$0.00
$300.00
$75.00
$487.50
($87.50)
$362.50
($75.00)
($25.00)
$75.00
$87.50
($12.50)
$50.00
$87.50
$25.00
$700.00
$37.50
($300.00)
$337.50
($50.00)
($50.00)
($12.50)
$137.50
$225.00
$262.50
$150.00
$37.50
($62.50)
($37.50)
($87.50)
$37.50
$275.00
($87.50)
($37.50)
$687.50
$200.00
Trade
max$Pft
$175.00
$0.00
$25.00
$37.50
$87.50
$62.50
$187.50
$525.00
$512.50
$62.50
$575.00
$362.50
$625.00
$0.00
$187.50
$275.00
$0.00
$337.50
$287.50
$62.50
$50.00
$375.00
$75.00
$700.00
$112.50
$500.00
$237.50
$25.00
$412.50
$187.50
$100.00
$62.50
$162.50
$62.50
$762.50
$150.00
$375.00
$412.50
$0.00
$175.00
$100.00
$187.50
$450.00
$450.00
$300.00
$275.00
$0.00
$62.50
$0.00
$125.00
$387.50
$37.50
$12.50
$725.00
$300.00
Time
12:06
12:35
12:55
13:23
14:22
11:21
14:48
11:03
13:48
9:08
14:46
14:05
10:12
12:10
14:30
9:39
11:01
14:01
9:20
11:31
12:19
14:11
14:53
14:10
9:50
11:10
12:37
14:38
11:16
13:35
14:14
15:13
9:50
12:57
14:57
9:00
9:52
14:54
15:08
8:52
12:55
14:42
9:34
10:58
14:17
10:32
11:38
12:19
13:02
13:14
10:14
11:40
13:19
14:56
9:35
Trade
max$DD
($12.50)
($50.00)
($62.50)
($25.00)
($112.50)
($175.00)
($62.50)
$0.00
($62.50)
($337.50)
($112.50)
($275.00)
$0.00
($50.00)
($150.00)
$0.00
($125.00)
($25.00)
($25.00)
($12.50)
($25.00)
$0.00
($87.50)
($12.50)
($87.50)
($75.00)
($150.00)
($87.50)
$0.00
($37.50)
($50.00)
($62.50)
($50.00)
$0.00
($25.00)
($37.50)
($337.50)
($87.50)
($62.50)
($187.50)
($12.50)
($87.50)
$0.00
($12.50)
($250.00)
($37.50)
($62.50)
($50.00)
($87.50)
($25.00)
($400.00)
($112.50)
($50.00)
($12.50)
($125.00)
Time
10:36
12:38
13:01
13:08
13:47
10:19
14:11
9:33
9:04
11:23
10:01
9:46
8:48
12:18
15:10
9:04
11:02
11:06
9:02
11:27
12:03
13:01
14:41
8:32
10:01
10:18
14:02
14:49
8:35
12:55
13:39
14:35
10:27
12:45
13:11
8:45
12:33
13:25
15:12
10:29
12:37
14:04
9:01
10:34
12:33
9:56
11:52
12:01
13:04
14:21
9:08
12:14
13:16
13:22
8:51
55
1,005
Short
1,000
Buy
995
990
Short
Buy
End
of day
exit
End
of day
exit
985
980
600
400
200
0
-200
7/30
9:11
9:33
9:55
10:17 10:39 11:01 11:23 11:45 12:07 12:29 12:51 13:13 13:35 13:57 14:19 14:41
8/1
Source: TradeStation
that quickly reverse and stop out the position. With this system, if there is a gap on the opening bar, the buy and sell ranges
are expanded and no trades are made until the buy and sell
ranges contract or the price breaks the expanded ranges.
Breaking the expanded ranges takes time and avoids the opening gap whipsaw.
Testing
The system was tested from July 7 through Aug. 1, 2003, using
September 2003 E-Mini futures (ESU03) one-minute bars. A
wide range of parameter values was tested to find the optimal
ones for the system. The parameter ranges tested for the initial
optimization test were:
n =10 to 50 in steps of 5;
bx = 0.4 to 1 in steps of 0.05;
m = 10 to 50 in steps of 5;
sx = 0.4 to 1 in steps of 0.05;
After the initial test, we had to choose one set of parameters
that produced the most realistic results. To avoid curve fitting,
we eliminated all results that had profit factors (gross profit
divided by gross loss) greater than 4.0, since such performance
was unlikely to be duplicated in the future. Also, because it is
ACTIVE TRADER January 2004 www.activetradermag.com
1,002
1,000
998
996
994
992
990
988
Sell
986
End of
day exit
984
982
980
978
End of 976
day exit
600
400
200
0
14:19 14:41
8/1
9:02
9:24
9:46 10:08 10:30 10:52 11:14 11:36 11:58 12:20 12:42 13:04 13:26 13:48 14:10 14:32 14:54
Source: TradeStation
57
1,015
1.010
1,005
1,000
995
990
985
980
975
7
Source: TradeStation
14
21
28
DeMark variation
500,000
System logic:
400,000
Sell
62.00
Sell
Buy
SX
60.00
58.00
Buy
56.00
55.00
Buy
SX#3
53.00
51.00
2
9
16
23
30
April
May
Source: TradeStation by TradeStation Group Inc.
58
14
21
28
4
June
11
DRAWDOWN CURVE
11/12/91
0.00%
11/12/92
11/12/93
11/12/94
11/12/95
11/12/96
11/12/97
11/12/98
11/12/99
-5.00%
-10.00%
-15.00%
-20.00%
-25.00%
-30.00%
-35.00%
-40.00%
System analysis
In DeMarks original work, the amount by which the price had to
clear the breakout level was set to the smallest price increment for
the market in question. In this version, this is changed to one-tenth
of a percent to make the system consistent across all markets. This
means that for a stock that trades around $50, this amount is about
five cents; for a stock that trades around $100, it comes out to
approximately 10 cents.
DeMark did not suggest any exit strategies or stop-loss levels to
STRATEGY SUMMARY
Profitability
End. equity ($): 415,573
Total return (%):
316
Avg. annual ret. (%): 16.03
Profit factor:
1.13
Avg. tied cap (%):
58
Win. months (%):
53
Trade statistics
No. trades:
3,529
Avg. trade ($):
158
Avg. DIT:
3.0
Avg. win/loss ($): 1,150 (1,393)
Lrg. win/loss ($): 12,674 (8,131)
Win. trades (%):
39.4
Drawdown
Max DD (%):
Longest flat (m):
TIM (%):
Tr./Mark./Year:
Tr./Month:
37.5
57.2
97 /15.1
12.3
30.7
LEGEND: End. equity ($) equity at the end of test period Total return
(%) total percentage return over test period Avg. annual ret. (%)
average continuously compounded annual return Profit factor gross
profit/gross loss Avg. tied cap (%) average percent of total available capital tied up in open positions Win. months (%) percentage profitable
months over test period Max DD (%) maximum drop in equity
Longest flat longest period, in months, spent between two equity highs
No. trades number of trades Avg. trade ($) amount won or lost by
the average trade Avg. DIT average days in trade Avg. win/loss ($)
average wining and losing trade, respectively Lrg. win/loss ($)
largest wining and losing trade, respectively Win. trades (%) percent
winning trades TIM (%) amount of time there is at least one open position for entire portfolio, and each market, respectively Tr./Mark./Year
trades per market per year Tr./Month trades per month for all markets
11/12/00
12
months
24
months
Most recent:
Average:
Best:
Worst:
St. dev.:
4.27%
21.73%
87.23%
-26.11%
29.26%
Annualized
12
months
48
months
60
months
336.03%
254.23%
494.23%
12.15%
137.24%
Most recent:
Average:
Best:
Worst:
St. dev:
4.27% 16.05%
21.73% 26.43%
87.23% 74.94%
-26.11% -13.75%
28.26% 26.94%
24
months
36
months
36
48
months months
60
months
21.94%
29.18%
58.07%
-7.70%
24.99%
34.25%
28.78%
42.82%
2.32%
18.86%
26.68%
29.95%
49.01%
-4.14%
22.48%
LEGEND: Cumulative returns Most recent: most recent return from start to
end of the respective periods Average: the average of all cumulative returns from
start to end of the respective periods Best: the best of all cumulative returns from
start to end of the respective periods Worst: the worst of all cumulative returns
from start to end of the respective periods St. dev: the standard deviation of all
cumulative returns from start to end of the respective periods
Annualized returns The ending equity as a result of the cumulative returns,
raised by 1/n, where n is the respective period in number of years
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
59
EQUITY CURVE
Dynamic
breakout system
$300,000
$200,000
$250,000
$150,000
3/26/94
3/26/95
3/26/96
3/26/97
3/26/98
3/26/99
3/26/00
SAMPLE TRADES
Buy
146%
100%
180%
Maximum
drawdown
Longest
flat period
39% (current)
51% (current)
83% (current)
33 months (current)
30 months (current)
30 months (current)
Money management:
1. Risk 2 percent of available
equity per market traded.
2. The number of shares to trade
was calculated with the following
formula:
17.00
16.00
15.00
Sell
Buy
14.00
13.00
Sell
12.00
ST = AC * PR / Dist
where
ST = Shares to trade
AC = Available capital
PR = Percent risked
Dist = Distance between the entry
price and the exit price on the day
of entry.
60
3/26/02
Rules:
1. Go long on the open if yesterdays close is higher than the highest high of the lookback period.
2. Exit by reversing the position.
Test period:
April 1993 to October 2002.
3/26/01
11.00
10.00
9.00
May
June
Source: Omega Research ProSuite
July
August
September
October
DRAWDOWN CURVE
3/26/93
3/26/94
3/26/95
3/26/96
3/26/97
3/26/98
3/26/99
3/26/00
3/26/01
3/26/02
0%
-5%
-10%
-15%
-20%
-25%
-30%
-35%
-40%
-45%
-50%
Trade statistics
No. trades:
1,133
57
Avg. DIT:
63.3
(435)
TIM (%):
43.1
Tr./Mark./Year:
31.3
Tr./Month:
34.1
100
92.8
3.9
9.9
12
months
24
months
36
months
48
months
60
months
Most recent:
8.69%
-19.18%
15.28%
63.22%
26.23%
Average:
8.77%
20.27%
34.69%
46.45%
58.78%
Best:
Worst:
-27.93%
-38.42%
-14.94%
5.25%
4.40%
St. dev.:
27.06%
30.46%
28.77%
33.48%
40.51%
Annualized
12
months
24
months
36
48
months months
60
months
Most recent:
8.69%
-10.10%
4.85%
13.03%
Average:
8.77%
9.67%
10.44%
10.01%
9.69%
Best:
104.96%
43.54%
32.24%
25.49%
23.42%
Worst:
-27.93%
-21.53%
-5.25%
1.29%
0.86%
27.06%
14.22%
8.79%
7.49%
7.04%
St. dev.:
4.77%
LEGEND: Cumulative returns Most recent: most recent return from start to
end of the respective periods Average: the average of all cumulative returns
from start to end of the respective periods Best: the best of all cumulative
returns from start to end of the respective periods Worst: the worst of all cumulative returns from start to end of the respective periods St. dev.: the standard
deviation of all cumulative returns from start to end of the respective periods
Annualized returns The ending equity as a result of the cumulative returns,
raised by 1/n, where n is the respective period in number of years
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
61
&
OPTIONS
EQUITY CURVE
Dynamic
breakout system
$160,000
$140,000
FUTURES
$120,000
$100,000
$80,000
210.00
Sell 200.00
190.00
180.00
170.00
160.00
150.00
140.00
130.00
Buy
120.00
110.00
May
June
62
July
August
September
October
CT = AC * PR / Dist
where
CT = Contracts to trade
AC = Available capital
PR = Percent risked
Dist = Distance between the
entry price and the exit price on the
day of entry.
Test period: April 1993 to October
2002.
Test data: Daily prices for 15 commodity futures markets: cocoa, coffee, corn, cotton, feeder cattle, lumber, oats, orange juice, pork bellies,
soybeans, soy meal, soy oil, rough
rice, sugar and wheat.
Starting equity: $100,000 (nominal); $50 deducted for slippage and
commission per contract traded.
Test results: It is fair to say this system did not work very well from
1996 to 1999. However, since 1999 it
DRAWDOWN CURVE
3/26/93
0%
3/26/94
3/26/95
3/26/96
3/26/97
3/26/98
3/26/99
3/26/00
3/26/01
-5%
-10%
-15%
-20%
-25%
-30%
-35%
Trade statistics
No. trades:
199
Avg. trade ($):
117
Avg. DIT:
90.1
Avg. win/loss ($): 2,028 (1,045)
Lrg. win/loss ($): 21,163 (2,832)
Win. trades (%):
32.2
Drawdown
Max. DD (%):
Longest flat (m):
TIM (%):
Tr./Mark./Year:
Tr./Month:
32.9
82.6
100
51.2
1.4
1.7
3/26/02
12
months
24
months
36
months
48
months
60
months
Most recent:
Average:
Best:
Worst:
St. dev.:
9.97%
2.53%
44.61%
-20.11%
11.36%
17.00%
4.64%
47.38%
-19.85%
17.85%
20.46%
4.24%
47.95%
-25.71%
21.91%
0.25%
2.94%
50.34%
-28.62%
22.75%
2.89%
2.18%
49.68%
-24.67%
21.23%
Annualized
12
months
24
months
36
48
months months
60
months
Most recent:
Average:
Best:
Worst:
St. dev.:
9.97%
2.53%
44.61%
-20.11%
11.36%
8.17%
2.30%
21.40%
-10.48%
8.56%
6.40%
1.40%
13.95%
-9.43%
6.83%
0.06%
0.73%
10.73%
-8.08%
5.26%
0.57%
0.43%
8.40%
-5.51%
3.93%
LEGEND: Cumulative returns Most recent: most recent return from start to
end of the respective periods Average: the average of all cumulative returns
from start to end of the respective periods Best: the best of all cumulative returns
from start to end of the respective periods Worst: the worst of all cumulative
returns from start to end of the respective periods St. dev.: the standard deviation of all cumulative returns from start to end of the respective periods
Annualized returns The ending equity as a result of the cumulative returns,
raised by 1/n, where n is the respective period in number of years
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
63
FUTURES
900.00
880.00
Market: Futures.
860.00
840.00
1,000,000
950,000
900,000
850,000
800,000
750,000
700,000
650,000
600,000
550,000
500,000
450,000
400,000
350,000
300,000
250,000
200,000
150,000
100,000
50,000
0
600,000
550,000
500,000
450,000
400,000
350,000
300,000
250,000
200,000
150,000
100,000
50,000
0
3/22/94 5/1/95
Equity
64
Linear Reg.
Short
Cash
Short
FIGURE 4 DRAWDOWN
The modified exit rule succeeded in reducing the systems risk (28 percent
compared to 36 percent).
0.00%
-2.00%
-4.00%
-6.00%
Drawdown
Money management: Risk a maximum 3 percent of total account equity per trade (stopbased risk %). Setting the maximum risk
percent to 3 means at any given time we
should not lose more than 3 percent of the total
account equity. Of course, overnight gaps and
limit down moves could lead to higher losses.
-8.00%
-10.00%
-12.00%
-14.00%
-16.00%
-18.00%
-20.00%
-22.00%
-24.00%
Test data: The system was tested on the Active
-26.00%
Trader Standard Futures Portfolio, which contains the following 19 futures: DAX30 (AX),
-28.00%
corn (C), crude oil (CL), German bund (DT),
3/22/94
5/1/95
6/3/96
7/1/97
8/3/98
9/1/99
11/1/00
1/2/02
2/3/03
euro dollar (ED), euro forex (FX), gold (GC),
copper (HG), Japanese yen (JY), coffee (KC),
uses the simple 55-day low exit rule. This version had fewer trades
live cattle (LC), lean hogs (LH), Nasdaq 100 (ND), natural gas
(208) than the modified system because the stop maintains a con(NG), soybeans (S), sugar (SB), silver (SI), S&P 500 (SP) and Tstant distance from price action regardless of volatility changes
Notes 10 year (TA). The test used ratio adjusted data from Pinnacle
and how long the trade has been open. The average profit per trade
Data Corp.
increased to $3,073 and the average holding time increased from 40
days to 95 days. The simple systems net profit was much higher
System results: Figure 2 shows the equity curve when risking 3
($639,204 compared to $338,282), although its drawdown was also
percent of the total portfolio equity per trade. The system returned
markedly higher (36.65 percent compared to 28.7 percent).
a total profit of 135.31 percent over approximately 10 years and
9.54 percent annually, with the worst year being a loss of 8.3 perBottom line: The trailing exit strategy enabled the system to
cent in 1999. The single largest annual drawdown of 19.99 percent
reduce drawdown, but it also reduced profits. Comparison to the
occurred in 1996. The system produced 351 trades with an average
simple stop approach suggests the modified version exited trades
profit of $963.77 per trade.
too quickly and did not give the system enough time to ride the
Figure 3 shows the equity curve of the comparison system that
trend.
STRATEGY SUMMARY
However, the concept behind this exit idea is worthy of experimentation and could prove to be a more effective exit strategy
Profitability
Trade statistics
when combined with other trading methods.
Net profit ($):
338,282.00 No. trades:
351
135.31
33.88
1.32
1.70
2.56
-28.70
760
Win/loss (%):
Avg. gain/loss (%):
Avg. hold time:
Avg. profit (winners) %:
Avg. hold time (winners):
Avg. loss (losers) %:
Avg. hold time (losers):
Max. consec. win/loss:
42.17
0.65
40.03
7.97
58.09
-4.69
26.87
6/9
PERIODIC RETURNS
Avg. Sharpe Best
Worst Percentage Max.
Max.
return ratio return return profitable consec.
consec.
periods profitable unprofitable
Weekly
0.21% 0.59 11.95% -9.16% 55.19%
9
8
Monthly 0.88% 0.59 16.74% -9.95% 52.63%
6
4
Quarterly 2.60% 0.57 22.78% -10.91% 56.41%
4
3
Annually 9.86% 0.63 40.57% -8.30% 70.00%
7
1
LEGEND: Avg. return The average percentage for the period Sharpe
ratio Average return divided by standard deviation of returns (annualized) Best return Best return for the period Worst return Worst
return for the period Percentage profitable periods The percentage of
periods that were profitable Max. consec. profitable The largest number of consecutive profitable periods Max. consec. unprofitable The
largest number of consecutive unprofitable periods
Trading System Lab strategies are tested on a portfolio basis (unless
otherwise noted) using Wealth-Lab Inc.s testing platform.
If you have a system youd like to see tested, please send the trading and money-management rules to editorial@activetradermag.com.
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
65
FUTURES
Monthly breakout
Market: Futures.
Test data: Daily continuous T-Bond futures (US). No commissions or slippage were deducted.
Test periods: Initial in-sample period: Jan. 1, 1985, through
Dec. 31, 1995. Second out-of-sample period: Jan. 1, 1996, to
Dec. 31, 2002.
Rules:
1. Entry: Buy at the highest high of the last x
months.
2. Exit: Sell at the lowest low of the last y months.
20,000
15,000
10,000
5,000
0
1/2/85 12/2/85 1/2/87 1/4/88 1/3/89 1/2/90 1/2/91 1/2/92 1/4/93 1/3/94 1/3/95
Total profit
Buy & hold
Linear reg
Risk control: The system does not use a fixed dollar,
point or percentage stop. Instead, a reversal below the
Source for all figures: Wealth-Lab Inc. (www.wealth-lab.com)
y-month low is used to indicate the market is no
longer in an uptrend, at which point all positions are liquidated,
For the 10 years covered in the test, the best parameters
win or lose.
would be to buy at the highest high of the past month and
sell at the lowest low of the past two months. As expected,
Money management: Each position will consist of one T-bond
the shorter the breakout length, the higher the number of
contract.
trades. However, the optimal settings did not produce many
trades (19) over the test period.
66
Sell
Buy
Volume
August 2001
September 2001
October 2001
November 2001
106.00
105.50
105.00
104.50
104.00
103.50
103.00
102.50
102.00
101.50
101.00
100.50
100.00
99.50
99.00
98.50
98.00
97.50
97.00
96.50
96.00
95.50
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
67
Entry rules:
Long trades: Buy if the closing price of the third 30-minute
bar is above the high of the first 60 minutes of the day.
Short trades: Sell short if the closing price of the third 30minute bar is below the low of the first 60 minutes of the day.
Exit: Exit all positions on signals in the opposite direction or
at the end of the day.
11/25/02
1/14/03
Cash
2/28/03
4/14/03
Linear reg
5/29/03
Long
7/14/03
Short
8/26/03
10/8/03
68
0.80%
0.70%
0.60%
0.50%
0.40%
0.30%
0.20%
-80.00
-60.00
-40.00
-20.00
0.00
20.00
40.00
60.00
80.00
CMOlevel
Drawdown
Max. DD (%):
Longest flat days:
-3,247.41
-3.25
-3.26
0.96
0.98
0.42
Trade statistics
No. trades:
Win/loss (%):
Avg. gain/loss (%):
Avg. hold time:
Avg. profit (winners) (%):
Avg. hold time (winners):
3,546
49.55
-0.02
6.46
0.85
6.71
-0.87
21.50
21.40
21.30
21.20
21.10
21.00
20.90
20.80
20.70
20.60
20.50
20.40
20.30
20.20
20.10
20.00
19.90
Short 240
@20.87
Cover 240
@20.34
9/24/03
Buy 246
@20.34
9/25/03
STRATEGY SUMMARY
Profitability
Net profit ($):
Net profit (%):
Exposure (%):
Profit factor:
Payoff ratio:
Recovery factor:
6.22
18/23
LEGEND: Net profit Profit at end of test period, less commission Exposure
The area of the equity curve exposed to long or short positions, as opposed to cash
Profit factor Gross profit divided by gross loss Payoff ratio Average
profit of winning trades divided by average loss of losing trades Recovery factor
Net profit divided by max. drawdown Max. DD (%) Largest percentage
decline in equity Longest flat days Longest period, in days, the system is
between two equity highs No. trades Number of trades generated by the sys tem Win/Loss (%) the percentage of trades that were profitable Avg. profit The average profit for all trades Avg. hold time The average holding peri od for all trades Avg. profit (winners) The average profit for winning trades
Avg. hold time (winners) The average holding time for winning trades
Avg. loss (losers) The average loss for losing trades Avg. hold time (losers)
The average holding time for losing trades Max. consec. win/loss The
maximum number of consecutive winning and losing trades
-0.06% -0.56
1.70%
-2.11%
47.17%
Monthly
-0.24% -0.60
2.48%
-2.57%
38.46%
1.99%
-4.47%
60.00%
LEGEND: Avg. return The average percentage for the period Sharpe ratio
Average return divided by standard deviation of returns (annualized) Best return
Best return for the period Worst return Worst return for the period
Percentage profitable periods The percentage of periods that were profitable
Max. consec. profitable The largest number of consecutive profitable periods
Max. consec. unprofitable The largest number of consecutive unprofitable peri ods
Trading System Lab strategies are tested on a portfolio basis (unless
otherwise noted) using Wealth-Lab Inc.s testing platform.
If you have a system youd like to see tested, please send the
trading and money-management rules to editorial@activetradermag.com.
Disclaimer: The Trading System Lab is intended for educational purposes only to provide a perspective on different market concepts. It is not meant to recommend or
promote any trading system or approach. Traders are advised to do their own research and testing to determine the validity of a trading idea. Past performance does not
guarantee future results; historical testing may not reflect a systems behavior in real-time trading.
69