Break Out Strategy

January 7, 2017 | Author: mirov | Category: N/A
Share Embed Donate


Short Description

Download Break Out Strategy...

Description

Breakout Trading Technique article collections: BASIC and ADVANCED

" Technical tool insight: Price breakout" BY ACTIVE TRADER STAFF (Active Trader, March 2001)

2

..............................

"More bang for your buck: Patterns within patterns" BY ACTIVE TRADER STAFF (Active Trader, October 2000) "Anticipating breakouts and beating slippage" BY STEVE WENDLANDT (Active Trader, August 2000)

5

.............................

9

...............................

"Trading System Lab: 100-20 channel breakout system" BY DION KURCZEK (Active Trader, June 2003) . . . . . . .

13

..........................

"Futures Trading System Lab: 100-20 channel breakout system" BY DION KURCZEK (Active Trader, June 2003) . . . . . . . . . . . "Futures Trading System Lab: 60-minute breakout system" BY VOLKER KNAPP (Active Trader, January 2004) . . . . . . .

"Swing trading 10-day channel breakouts" BY KEN CALHOUN (Active Trader, March 2002)

20

.......................

23

.............................

"High, tight flag helps squeeze out profits" BY THOMAS N. BULKOWSKI (Active Trader, December 2004) "Mastering two-minute breakouts" BY KEN CALHOUN (Active Trader, September 2001)

18

.........................

"Futures Trading System Lab: Four-percent breakout system" BY VOLKER KNAPP (Active Trader, September 2004) . . . . . . . "Broadening patterns: Clues to breakout direction" BY THOMAS N. BULKOWSKI (Active Trader, April 2004)

16

......................

28

..........................

32

..............................

35

.................................

"Trading System Lab: Volatility breakout system" BY THOMAS STRIDSMAN (Active Trader, October 2002)

39

.............................

"Futures Trading System Lab: Futures volatility breakout system" BY THOMAS STRIDSMAN (Active Trader, October 2002) . . . . . . . . "Better breakout trading: The noise channel system" BY DENNIS MEYERS, PH.D. (Active Trader, September 2001)

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

............................

"Trading System Lab: DeMark variation" BY THOMAS STRIDSMAN (Active Trader, September 2001) "Trading System Lab: Dynamic breakout system" BY THOMAS STRIDSMAN (Active Trader, February 2003)

41

.....................

58

...........................

60

............................

"Futures Trading System Lab: Dynamic breakout system" BY THOMAS STRIDSMAN (Active Trader, February 2003) . . "Futures Trading System Lab: Experimenting with exits" By VOLKER KNAPP (Active Trader, June 2004) . . . . . .

62

..........................

64

...........................

"Futures Trading System Lab: Monthly breakout" BY DION KURCZEK AND VOLKER KNAPP (Active Trader, March 2004) . . . . . . . . . . . . . . . . . . . . . . . . . .

66

"Trading System Lab: 60-minute breakout system" BY VOLKER KNAPP (Active Trader, January 2004) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ACTIVE TRADER • www.activetradermag.com

68 1

TRADING Basics

Technical tool insight:

Price breakout

Price breakouts are the basis of many of the most successful trading approaches. We explain the basics of this trading technique.

T

he price “breakout” is one of the simplest — and most powerful — concepts in trading. It occurs when price moves forcefully out of a consolidation or trading range (a period of relatively narrow, sideways price movement) or pushes above or below an established price level (support or resistance), initiating either temporary followthrough or a sustained trend. The act of pushing to new highs or lows (especially if the price level in question has been repeatedly tested in the past) is evidence of strong momentum and suggests the market has the potential to continue in that direction. In other words, the basic logic behind price breakouts is that a market making new highs (and with potential for further price gain) is exhibiting strength and should be bought, while a market making new lows (and with potential for further price decline) is exhibiting weakness and should be sold. For example, the reason new 52-week highs or lows in stocks are so commonly referenced is because of the implied significance of price breaking through these levels. This concept of price movement is valid on intraday time frames as well as daily or monthly ones.

The four-week highs or lows simply represent natural resistance and support levels. This kind of trading system is often referred to as stop-and-reverse (SAR), because when a trade signal is generated, the existing position is liquidated (stopped out) and a new position (a reverse of the previous one) is established. This basic trading rule — which gained widespread popularity as the “20-day breakout” — was integral to many popular mechanized trading strategies, most famously those of futures trader Richard Dennis group of trend-followers known as the “Turtles.” Trend-following traders (especially in the futures markets) used this simple technique, or a variation of it, to exploit strong trends in the 1970s and ’80s. However, the widespread popularity of the 20-day breakout level has dimin-

ished its effectiveness to the point that many traders look for false breakouts (when price pushes through a breakout level, only to reverse back through it) at these levels, to take positions against the direction of the initial breakout (referred to as “fading” the breakout). Breakouts are not limited strictly to moves to new highs of a certain number of bars (i.e., 10-bar, 20-bar or 40-bar breakouts). As mentioned, price can also “break out” through the support and resistance levels of trading ranges, or other past technical milestones such as long-standing highs or lows. Figure 1 shows 40-day breakout levels on a daily chart. Figure 2 shows 20-bar breakout levels on a 10-minute chart. Figure 3 shows a breakout above the resistance level defined by a past significant high.

FIGURE 1 DONCHIAN BREAKOUT CHANNELS, DAILY 40-day Donchian breakout levels, both high and low. A basic breakout approach is to buy when price exceeds the n-bar (in this case, the 40-day) high and sell when it falls below the n-bar low. Highest price of last 40 bars

Oracle Corporation (ORCL), daily 45

40

Donchian breakout levels The term “breakout” is often associated with Richard Donchian, the first person to popularize the systematic use of breakout levels. His basic approach was called the Donchian “four-week rule,” which consisted of the following: 1. Go long (and cover short positions) when the market makes a new fourweek high (that is, when price exceeds the highest price of the previous four weeks). 2. Go short (and cover long positions) when the market makes a new fourweek low (that is, when price drops below the lowest price of the previous four weeks). 2

37.00 35

30 26 9⁄16 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.

Source: QCharts by Quote.com

www.activetradermag.com • March 2001 • ACTIVE TRADER

Glossary FIGURE 2 DONCHIAN BREAKOUT CHANNELS, INTRADAY

A false breakout occurs when price pushes through a support or resistance level in the anticipated direction, suggesting a new price thrust or trend, only to (relatively) quickly reverse direction when no real followthrough materializes. Because traders who bought or sold on the initial breakout may all scramble at once to get out of their trades when the market fails to follow through, the reversal can be quite forceful. For this reason, contrarian traders sometimes fade initial breakouts to capitalize on these short-term reversals.

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 9⁄16 26

25

Highest price of last 20 bars

24 23.81

Stop-and-reverse (SAR) refers to a trading approach that is always in the market, long or short. The existing position is liquidated (stopped out) and a new position (a reverse of the previous one) is established, using the same signal in the opposite direction. For example, a simple 40-day SAR breakout system would buy when price exceeds the highest high of the last 40 days and sell when price falls below the lowest low of the last 40 days.

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

Source: QCharts by Quote.com

The Donchian-type breakout is also commonly referred to as a “price channel” breakout.

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.

ing range, traders who go long on the breakout can place protective stops in a number of technically logical places, in relation to the range. First, the stop could be placed below the low of the trading range. Second, a more conservative stop placement would be in the middle of the trading range (or in the upper 25 percent of the trading range, etc.). Finally, the most conservative alternative is a stop just below the original breakout level, which might be used by

Support and resistance. Support is a price level that acts as a “floor,” preventing prices from dropping below that level. Resistance is the opposite: a price level that acts as a “ceiling;” a barrier that prevents prices from rising higher.

FIGURE 3 BREAKOUT ABOVE PRIOR HIGH A prior high creates a resistance level that is tested multiple times before price breaks out to the upside. A significant trending move follows. Sun Microsystems Inc. (SUNW), Weekly 28

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 59⁄64 24

20

Breakout above previously tested high

16

12

8

Jan. 1997

Apr.

July

Oct.

Jan. 1998

Apr.

July

Oct.

Jan. 1999

Source: QCharts by Quote.com

ACTIVE TRADER • March 2001 • www.activetradermag.com

3

FIGURE 4 TRADING RANGE BREAKOUT WITH STOP LEVELS The boundaries of a trading range provide logical stop levels for a breakout trade. After a downside breakout of the range, a trader, depending on how conservative he was, could place a stop-loss order at the original breakout level, the midpoint of the range (or some other point within the range) or the upper level of the range. American Express Inc. (AXP), 2-minute

55

Far side of trading range (stop 1) 54

Midpoint (stop 2)

53

Breakout level (stop 3)

Trading range

51 15⁄16

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

9:30 10:00 10:30 11:00 11/21 Tuesday

Bottom line

Source: QCharts by Quote.com

a very short-term trader. All these choices have one thing in common: The placement of the stop corresponds to a price move that negates the validity (to varying degrees) of the original breakout. Whenever the original

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

FIGURE 5 FALSE BREAKOUT AND REVERSAL In this case, the stock first breaks out below the bottom of the trading range, only to reverse back into the trading range and eventually break out through the top of the range. In either case, the stop-loss levels are again easily identified. 38

Microsoft Corporation (MSFT), daily

36 35 23⁄64 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

Source: QCharts by Quote.com 4

trading range and possible stop points. Figure 5 shows the reverse situation. The stock first breaks out to the downside of the trading range, but this turns out to be a false breakout. The stock reverses back into the trading range and eventually breaks out through the upside of the trading range. Again, the boundaries (and the midpoint) of the trading range provide logical stop levels — both for the initial downside breakout and the subsequent upside breakout. Because of the possibility of false moves at popular breakout levels, traders looking to capture trending moves sometimes use confirming signals to improve the likelihood of success. For example, after an initial upside breakout, the trader may wait for the market to stay above the breakout level (or close above it) for a certain number of bars, or penetrate it by a certain percentage. Such techniques delay entry and limit profit potential (and will result in some missed trades), but they can also cut down on false signals.

The breakout concept is one of the most important in technical trading. Buying markets showing strength (upside breakouts) with further potential for upside movement, and selling markets showing weakness (downside breakouts) with further potential for downside movement is the basis of many trading plans and systems on many time frames. Similarly, false breakouts are the foundation of some counter-trend trading techniques. The breakout concept is also easily mechanized for traders interested in a systematic approach. 

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

www.activetradermag.com • March 2001 • ACTIVE TRADER

TRADING Strategies

More bang for your buck:

PATTERNS WITHIN PATTERNS

W

hat makes a good trade? Well, in retrospect, most traders would say a nice profit makes a good trade. But when you’re putting a position on, the outcome is unpredictable. We’d all like to know a trade will be good in advance, but alas, the markets are not so accommodating. What you look for when you’re getting in a trade is an entry point where the odds of a move in your favor are better than average. Then, by having a plan FIGURE 1 FALSE BREAKOUT A trading range develops in the aftermath of a sharp rally. After an initial upside breakout, the stock reverses to the downside, stopping out the long position. Microsoft Corporation (MSFT), daily 82

Upside breakout

80 78 76

Stopped out

Support level used as initial stop

74 72 5⁄8 72 70 68

12

19

26

3 July

Source: Qcharts by Quote.com

5

10

17

24

31

7 Aug.

that determines when and where you’ll exit with either a loss or a profit, you try to structure a trade where the potential reward is greater than the known risk. 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. For example, if a stock moves into a trading range after a rally, you may look to buy an upside breakout of the range in anticipation of a continuation of the uptrend. The logical place to put an initial protective stop is below the low of the trading range, because a downside reversal through the support of the range would be a bearish development. Figure 1 provides an example. In late June, Microsoft (MSFT) established a relatively narrow trading range after approximately a 16-point rally. The stock broke out of the upside of the range (around 80 1⁄8) on July 6. The initial protective stop would have been placed just below the support level of the trading range, around 76 1⁄2. A move back below this level would suggest the upside thrust was actually a false breakout and that the trade should be exited. That’s exactly what happened. Two days after entry the stock had pulled back into the trading range. It moved sideways to lower over the next several days before, on July 19, penetrating the downside of the range and stopping out the long trade. The risk on this trade was a moderate 3 5⁄8 points. But what do you do when a trading range is much wider and a stop based on either the support or resistance level represents too large a risk? Figure 2

www.activetradermag.com • October 2000 • ACTIVE TRADER

How to create trade opportunities with increased reward

FIGURE 2 RANGE RISK

and decreased risk by trading patterns within

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

International Business Machine Corp. (IBM), daily

patterns.

125 120 15⁄16 120 115

shows a much more volatile trading range than that in Figure 1. Using the same approach as in the previous example — buying on an upside breakout of the trading range and placing an initial protective stop below the low of the range — would represent considerable risk. As a result, some traders place the initial stop in the middle of the trading range. This more conservative method is based on the idea that a strong breakout move should follow through immediately and not reverse back into the trading

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.

Dec. Jan. 2000 Feb. Mar.

FIGURE 3 CONGESTION WITHIN CONGESTION A shorter, narrower trading range forms just at the resistance level of a larger range. Using the support level of the smaller range as a protective level for an upside breakout substantially reduces the trade’s initial risk. Oracle Corporation (ORCL), daily

90

80 77

Wider trading range 70

{

{

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.

Source: Qcharts by Quote.com

Feb.

Mar.

Source: Qcharts by Quote.com

ACTIVE TRADER • October 2000 • www.activetradermag.com

Apr.

May

range. Another way to reduce risk on breakout trades is to look for shorterterm patterns within larger patterns that allow you to place your initial stop-loss closer to your entry point.

Patterns within patterns When the risk implied by a particular trading range is exceptionally large, you can look for smaller congestion patterns near the support or resistance levels of the range. Basing entry and stop points on the levels defined by the smaller pattern can reduce the risk on the trade as well as provide the opportunity for early entry into the position. Figure 3 shows the formation of a wide trading range in Oracle (ORCL) at the beginning of this year. A trader looking to enter long on an upside breakout of this range would have to accept a risk of more than 16 points, assuming the bottom of the range was used for the initial stop-loss. However, a much narrower trading range developed in February. Using this range as the basis of an upside breakout trade would have offered the same entry 6

FIGURE 4 FLAG NEAR RESISTANCE A small flag forms just below a well-defined resistance level, offering early entry into the upside thrust move. EMC Corporation (EMC), daily 90 1⁄2

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.

FIGURE 5 NARROW FLAG A narrow flag consolidation forms near the resistance level of an intraday head-and-shoulders bottom pattern. The low of the flag provides a lower-risk stop level than the most recent swing low. Nasdaq 100 Index (QQQ), 15-minute

93 3⁄8 92

Resistance 88

84

Narrow flag

80

76

S

S H 19 May

22

23

24

Source: Qcharts by Quote.com

7

25

26

30

31

1 June

2

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 3⁄4 points. For a short-term trader, this represents a large stop, but it’s still a dramatic improvement and the profit potential for the move out of the larger trading range is still intact. (Later, we’ll 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 1⁄2. 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 7⁄8 (the highs of the bars in the flags were within 1⁄16 of each other) and a low around 66 13⁄16. The upside breakout of this flag provided an early entry to the subsequent surge that pushed the stock past the 72 1⁄2 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-

www.activetradermag.com • October 2000 • ACTIVE TRADER

FIGURE 6 EARLY ENTRY tern (a head-and-shoulders bottom pattern; the preceding sell-off is not shown) with resistance around 82 5⁄8. As the stock approached the resistance level for the second time, on May 30, it consolidated in a narrow flag pattern with resistance around 82 7⁄32 and support around 81 5⁄8. Playing an upside breakout of this pattern and using its support level for the initial stop (rather than the most recent swing low around 76) reduced the risk on a long trade to less than a point. A final example is shown in Figure 6. Here, in the middle of a larger trading range with resistance around 32 3⁄8, Motorola (MOT) formed a flag consolidation in late-October 1999 that offered the opportunity to trade an upside move with lower risk. The stock gapped out of the flag (a bullish sign) above 31 1⁄2 and continued to run past the resistance of the larger trading range. Placing a stop just below the flag support at 29 15⁄16 would have reduced the initial risk on the trade to less than two points. As was the case with Figure 4, the smaller pattern allowed you to both use a tighter stop and get in earlier on an upside breakout.

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

Motorola, Inc. (MOT), daily

49 171⁄256 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

Source: Qcharts by Quote.com

Using the measured move approach on the smaller price swing from Jan. 28 low of 46 5⁄8 to the Feb. 14 high of 64 3⁄4 (18 1⁄8 points) sets up a shorter-term price target of 77 7⁄16. This level would mark a good spot to take at least partial profits on the position and raise the stop on the balance of the position. The stock actually formed

When the risk implied by a particular trading range is exceptionally large, you can look for smaller congestion patterns near the support or resistance levels of the range. January 2000 high was 41 7⁄32. The stock then moved sideways, forming the larger trading range. A trader looking to buy on an upside breakout of the range could use the measured move approach, whereby the size of the previous price move is added to the current price, to project a price target. Adding the size of the price move preceding the trading range to the low of the larger trading range (around 46 5⁄8) results in an upside target of 87 27⁄32.

Oct.

another flag after hitting a high of 76 1⁄2 on Feb. 28. This consolidation marked an opportunity to exit part of the position with a profit; the stop on the remainder of the position could then be moved up to the breakeven point, locking in a profit on the trade. (For more information on taking profits and moving stops, see “Opening day opportunities,” p. 42.) The bottom line: The development of the smaller trading range allowed the estab-

ACTIVE TRADER • October 2000 • www.activetradermag.com

lishment of a trade with a price target based on the larger, longer-term price pattern with a risk based on the smaller, shorter-term price pattern. Another general advantage of this approach is that it increases your flexibility. Even if you are stopped out on a move through the support of the smaller congestion pattern, you can still re-enter a long position if the market reverses again and breaks out above resistance a second time. For example, a trader who went long on the intraday upside thrust above resistance (say, at 62 5⁄8) on Feb. 14 and used the low of the smaller trading range (around 58 5⁄8) as the stop level, would have been stopped out on the intraday downside thrust on Feb. 22. However, as mentioned earlier, this loss is much smaller than the one that would have occurred had the stop been placed below the low of the larger trading range, which was nearly 12 points lower. These patterns may develop relatively infrequently, but they fulfill the primary goals of smart trading: They allow you to establish trades with shorter-term risk and longer-term profit potential. In future articles we’ll expand on these ideas by looking at additional measuring objectives and ways to put breakouts into context in relation to underlying trends of different magnitudes.  8

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.

Here’s one trader’s take on finding setups that allow you to enter early and beat the breakout crowd.

9

www.activetradermag.com • August 2000 • ACTIVE TRADER

BY STEVE WENDLANDT

O

ne of the most important aspects of short-term stock trading is something you almost never hear about: Slippage. Slippage is the difference between where you expect, or want, to be filled on a trade and where your order is actually executed. If you don’t understand this concept, try to enter a market order with a browser-based online broker the first day of a hot IPO and see what happens. That’s slippage! Slippage can be caused by a number of factors: Poor execution by a broker, communication failure or other technical problems, or fast market conditions. While it’s true that we all try to keep our costs down to the bare minimum without sacrificing service or technology, slippage is probably the most overlooked and significant cost in trading. But through a little-known tendency, you can make slippage work for you instead of bleeding you dry. In fact, if most of your trading techniques are breakout related, you can use this trick on almost every trade you enter. But first, let’s look at why it works.

One tick at a time Tom DeMark, a highly regarded trading system developer who has worked with such top traders as George Soros, Paul Tudor Jones and Steve Cohen, wrote a book (his second) called New Market Timing Techniques: Innovative Studies in Market Rhythm and Price Exhaustion (1997, John Wiley & Sons, New York). In it, he explained what probably is one of the most significant discoveries in the markets: the TD One-Tick, One-Time Rule. This rule states if a market makes a new high or low just once (a single print) and backs off from that point, that new high or low should hold for a significant period of time. In fact, most significant highs and lows only print one time at the extreme price. It makes sense that the opposite also is true: If a price prints more than once at a certain high or low, then that high or low will be broken in short order almost every time. From that, it follows the

more a particular level is tested, the weaker it becomes. In layman’s terms, if a stock continually prints or finds support or resistance at a certain price, the odds are extremely good that price level will be broken shortly. That is invaluable information for any trader who uses breakouts as part of his or her strategy. Figure 1 is a five-minute chart of CMGI. The stock bounced off support at 50 six times (and who knows how many prints actually occurred at that level). Every time a stock tests a support or resistance level, that level gets weaker and weaker, as if a hammer and chisel were chipping away at it. Fortunately, most people view support levels as opportunities to go long, while breakout traders view tests of support as fuel to propel an eventual breakout. In this example, not only are traders establishing new long positions with their stops just below the support level at 50, there are also many traders waiting to short the stock once it does break down. Don’t forget that all the people

who bought the stock around $50 will either be stopped out or will wait for an opportunity to breakeven on their trades. The bottom line is that when support at 50 is penetrated it quickly turns into significant resistance. Here’s the question: If, because of repeated tests of the support level, the odds are very good the 50 level will be broken (and the broader market indices support this view), why wait for the breakout? Doing so increases the odds of having to chase the market or missing the trade. In this case, if you wait for the stock to trade at 49 15⁄16 and then try to establish a short position, you’ll probably end up missing the trade waiting for an uptick. Let’s look at a second example. In Figure 2, Netro Corp. (NTRO) was bouncing off the 82 1⁄2 level for about two weeks. The day it finally broke that support level (March 30, 2000) was a very weak day in the broader market indices, which helped the stock to finally break down. A good opportunity to short NTRO came at the prior day’s close when NTRO closed right at the support

FIGURE 1 CHISELING AT SUPPORT Repeated tests of a support level increase the odds of a downside breakout. A short position can be established in anticipation, with a stop just above the most recent swing high to protect against an upside reversal. CMGI (CMGI), 5-minute 10:00 11:00 12:00

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 3⁄4)

57 55 53

CMGI repeatedly tests support at 50 in a weak market

51 1⁄8 51 49 47

350,500

Source: CyberTrader by CyberCorp.

ACTIVE TRADER • August 2000 • www.activetradermag.com

10

FIGURE 2 EARLY OPPORTUNITIES A close at the low of the bar preceding the downside breakout, just at the support level, offers an early entry opportunity for a short position. Netro Corp. (NTRO), daily Jan.

Feb.

Mar.

Apr.

May

122 109 1⁄2

Stock tests support in weak market. Short trade entered at 82 9⁄16

97 841⁄2 72 591⁄2 47 341⁄2 25 11⁄16 5,820,000

Source: CyberTrader by CyberCorp.

level for the second day in a row. The next morning NTRO gapped lower and continued to drop dramatically. It would have been difficult to get short after the

market opened for trading on the day of the breakdown (although, there were some upticks in the pre-market). All breakout traders know it’s very

FIGURE 3 GOING WITH THE MARKET Pre-breakout entry should be confirmed by the broader market indices. In this case, establishing a position in advance of a breakout above the trendline was supported by strength in the S&P 500 and Nasdaq indices. Warner Lambert (WLA), daily Jan.

Feb.

Mar.

Apr.

May

130 125 9⁄64 1231⁄2

Stock tests trendline resistance in strong overall market. Entered long at 122 1⁄4 (before the breakout).

117 1101⁄2 104 971⁄2 91 841⁄2

8,434,900

Source: CyberTrader by CyberCorp.

11

difficult to get short once a stock breaks through support, if the trade is any good. You must either wait for an uptick (which may not happen) or offer it short 1 ⁄16 higher than the inside bid (for Nasdaq stocks). But if the stock is dropping like a rock, who is going to hit your offer? The bottom line is that if you want to trade a stock when the overall market is trending in the direction of your potential trade, and the stock repeatedly tests a support or resistance level, you should enter before the breakout. Most times, you even can avoid paying the spread because the stock will be whipsawing back and forth between the bid and offer. If you wait until the stock breaks out you are almost always forced to pay the spread — if you can get it at all. But, you may ask, what if the stock never breaks out? Should you hold the position until it does, or should you exit the position on the close? One approach to reduce risk is to use the last swing low or high as your initial stop-loss point. In the CMGI example, you could have placed an initial stop loss at 50 3⁄4 which was the last swing high on the fiveminute chart. With a stop in place, you can simply wait for the breakout to materialize. The only reason not to hold the position is if the overall market begins to move counter to the trade (i.e., you’re long, waiting for the breakout, and the market begins to drop precipitously). But you must use caution when entering breakout trades early; you never want to enter a trade that is counter to the overall market momentum. For example, before entering the CMGI trade on the short side, you should have checked to make sure the Nasdaq and S&P 500 were both weak on the day and trending lower. The weakness of these indices would help pull the stock below the support level. Figure 3 shows one last example. On May 25, Warner Lambert (WLA) opened for trading at 121 1⁄2, just under the down trendline of a nice triangle pattern. The pre-opening call was for the Nasdaq and S&P 500 to go higher that morning, and they both began to rally from the open. This created a setup to go long before the actual breakout above the trendline. As soon as WLA began to move toward the trendline, a buy order was entered at

www.activetradermag.com • August 2000 • ACTIVE TRADER

FIGURE 4 BREAKOUT PATTERNS A sampling of the breakout patterns short-term traders can use on any time frame. They provide well-defined support or resistance levels you can use to anticipate breakouts.

Cup and handle breakout

Spike and ledge breakout

122 1⁄4, well before the 123 1⁄16 breakout point. Not long after, the overall market strength helped pull WLA through the trendline; it continued to rally for the rest of the day. Had you waited for WLA to print at 123 1⁄16, you would have been filled at a minimum of 13⁄16 worse than the early entry price. Those extra fractions add up quickly. You can usually gain an extra 1⁄8 (sometimes as much as a point) simply by realizing that support and resistance almost always get broken. Try the following experiment: Multiply 50 percent of all the shares you have traded over a given time period by 1⁄8 and see what you come up with. That’s being conservative. You can use this entry technique on any breakout-related trade in any timeframe, including breakouts from daily and intraday cup-and-handle patterns, triangles, trendline breakouts and spike and ledge patterns (see Figure 4). Very rarely should you wait for the actual

Trendline breakout

Triangle breakout

breakouts to materialize on any of these patterns. Remember, slippage affects you whether or not you make a profit on the trade. Most traders don’t even think about the effect of slippage on their winning trades; they only think about the losers. And don’t forget about the trades you missed completely because the stock just ripped through the support or resistance level and you couldn’t even get a partial fill. We tend to forget about those missed opportunities completely, but those are usually the most potentially profitable trades because the stock is moving so forcefully. This approach will also help you on the breakout trades that don’t materialize because you’ll have a better entry price and may even be able to still garner a small profit or, at worst, scratch a trade from these false breakouts. No approach is without risk, but in certain situations entering early can yield excellent trading results. 

ACTIVE TRADER • August 2000 • www.activetradermag.com

12

100-20 channel breakout system

FIGURE 1 EQUITY CURVE

System concept: This is a classic trend-following system that buys when price moves above the highest high of the last x days and sells when price falls below the lowest low of the last y days. The number of days used to calculate the breakout level is called the “channel length.” Breakout systems are based on the logic that by making a new price high (or low), a market is demonstrating it has the momentum to establish a trend, and price will likely continue in that direction. In this test, one long channel length (100 days) was used for entries, and a short channel length (20 days) was used for exits. The exit strategy allows the system to follow large moves until price makes a significant reversal. We will also examine the results of using a range of channel lengths and how a “walk-forward optimization” could improve the results of the system for the most recent year. 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.

Account balance ($)

The long- and short-only equity curves, along with the overall equity curve, are shown here. The long side of the system substantially outperformed the short side during the 10-year test period 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/3/93 3/2/94 Equity

3/1/95 2/6/96 Cash

2/3/97

2/2/98 1/7/99 1/3/00 Linear reg Long

1/2/01

1/2/02 Short

1/2/03

4. Exit short on the next bar at the highest 20-day high.

FIGURE 2 SAMPLE TRADES This short trade was triggered when price crossed below the 100-day low. The exit occurred when price crossed above the 20-bar high. The 100- and 20-day high/low channels are plotted as gray lines. 50.00

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.

Boeing (BA), daily 48.00 46.00

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

Starting equity: $100,000. Deduct $10 slippage and commission per trade. Test data: The system was tested on the Active Trader Standard Stock Portfolio, which contains the following 18 stocks: Apple Computer (AAPL), Boeing (BA), Citibank (C), Caterpillar (CAT), Cisco (CSCO), Disney (DIS), General Motors (GM), Hewlett Packard (HPQ), International Business Machines (IBM), Intel (INTC), International Paper (IP), JP Morgan Chase (JPM), Coke (KO), Microsoft (MSFT), Sears (S), Starbucks (SBUX), AT&T (T) and Wal-Mart (WMT). Test period: January 1993 through February 2003. System results: The system’s performance was mediocre, at best: It returned only 12.61 percent over 10 years, while buy and hold would have returned more than 253 percent. Furthermore, the system was exposed to the market nearly 75 perwww.activetradermag.com • June 2003 • ACTIVE TRADER

cent of the time, which means we are squeezing just about as much performance out of this system as possible, short of using margin or some other form of leverage. It is interesting to note, however, that the long side of the system performed much better than the short side. The net return for long trades was 56 percent, with only 38-percent market exposure. Maximum drawdown for the long side of the system was only 18 percent, while buy and hold experienced a devastating 66 percent maximum drawdown. These results confirm short trading in equities can be tricky. We measured the results of the short side of the system after the broad mar-

TABLE 1 BEST PARAMETER VALUES FOR EACH STOCK Symbol AAPL BA C CAT CSCO DIS GM HPQ IBM INTC IP JPM KO MSFT S SBUX T WMT

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

Avg. loss (losers) %:

-7.88

Avg. hold time (losers): Max. consec. win/loss:

21.91 6/14

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. profit — the average profit for all trades • Avg. hold time — the average holding period 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

FIGURE 3 DRAWDOWN CURVE 0%

The system was never able to overcome the drawdown that began in mid-1995.

-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 you’d like to see tested, please send the trading and money-management rules to [email protected].

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 system’s behavior in real-time trading.

ACTIVE TRADER • June 2003 • www.activetradermag.com

14

15

FIGURE 4 WALK-FORWARD OPTIMIZATION RESULTS After finding the optimal long and short channel lengths for each stock over the first nine years of historical data, we tested the parameters on the most recent year of data. The system outperformed buy and hold (as well as the un-optimized parameters).

Account balance ($)

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 system’s 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

Buy & holds

with caution. The walk-forward technique described here can help you find more realistic optimized parameters that have a better chance of performing well in real trading. — Compiled by Dion Kurczek of Wealth-Lab Inc.

www.activetradermag.com • June 2003 • ACTIVE TRADER

FUTURES

Trading System Lab FIGURE 1 EQUITY CURVE: 2 PERCENT MAXIMUM RISK

100-20 channel breakout system

The system equity curve with the 2-percent maximum loss setting has a relatively stable uptrend. 220,000

System concept: The channel breakout is probably one of the oldest trend-following systems around (see the stock Trading System Lab on p. 46), and one that has been especially popular in futures markets over the years, for better or worse. The system results published here are based on a 100-day channel length for trade entries and a 20day channel length for exits. The channel lengths are relatively long, because the system is intended to catch long-term moves. This system goes long and short. The stop levels for both long trades and short trades play an important role, because they are used to calculate the position sizes in the different contracts.

210,000 200,000 190,000 180,000 170,000 160,000

Account balance ($)

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

Source for all figures: Wealth-Lab Inc. (www.wealth-lab.com)

Money management 1. Risk a maximum of 2 percent of account equity

FIGURE 2 EQUITY CURVE: 6 PERCENT MAXIMUM RISK The equity curve using a 6-percent maximum per-trade loss highlights large returns accompanied by high volatility and large drawdowns. 3,400,000 3,200,000 3,000,000 2,800,000 2,600,000 2,400,000 Account balance ($)

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 contract’s 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

ACTIVE TRADER • June 2003 • www.activetradermag.com

1/3/00

1/2/01

1/2/02

Short

Test data: The system was tested on the Active Trader standard futures portfolio, which contains the following 20 futures: DAX30 (AX), corn (C), crude oil (CL), German bund (DT), Eurodollar (ED), Euro Forex (FX), gold (GC), copper (HG), Japanese yen (JY), coffee (KC), live cattle (LC), lean hogs (LH), Nasdaq 100 (ND), natural gas (NG), soybeans (S), sugar (SB), silver (SI), S&P 500 16

FIGURE 3 DRAWDOWN CURVE: 2 PERCENT MAXIMUM RISK The maximum drawdown was about 18 percent. 0.00% -2.00%

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 system’s 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

(SP) and10 year T-Notes (TY). The test used Ratio Adjusted data from Pinnacle Data Corp

1/2/02

FIGURE 4 DRAWDOWN CURVE: 6 PERCENT MAXIMUM RISK The drawdown increased both in depth and length in this version of the system. 0.00%

Test period: August 1993 to November 2002. -5.00% System results: Both the long and short sides of the sys-10.00% tem were profitable, and the ratio of winning to losing -15.00% trades was fairly balanced. The equity curve (Figure 1) using the 2-percent maximum loss setting shows a rela-20.00% tively smooth, steady uptrend. The 6-percent maximum -25.00% loss version (Figure 2) posts a much larger gain, with -30.00% much higher volatility. -35.00% The position-sizing method keeps the system out of -40.00% many risky positions, although it resulted in no trade sig-45.00% nals in some markets because the risk was too high throughout the entire test period. -50.00% To show the effect of the amount of risk taken, compare 3/25/93 the drawdown curves in Figures 3 and 4. Figure 3 is the drawdown curve using a maximum risk of 2 percent. The maximum drawdown during this period was approximately 18 percent. Figure 4 shows the result of increasing the maximum per-trade risk to 6 percent. The effect is dramatic: The drawdown increased to 50 per-

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

Avg. loss (losers) %:

-3.80

Weekly

0.15%

0.64

7.29% -6.14%

52.07%

6

9

Avg. hold time (losers): Max. consec. win/loss:

22.17 5/7

Monthly

0.66%

0.61

12.32% -9.25%

55.08%

6

6

Max. DD (%): Longest flat days:

19.59 685

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. gain — the average profit for all trades • Avg. hold time — the average holding period for all trades • Avg. gain (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

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%

4

6

Annually

0.58

29.99% -8.91%

66.67%

3

2

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 you’d like to see tested, please send the trading and money-management rules to [email protected].

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 system’s behavior in real-time trading.

17

www.activetradermag.com • June 2003 • ACTIVE TRADER

FUTURES

Trading System Lab

60-minute breakout system System concept: This is an intraday system that trades on breakouts of the range established in the first hour of trading. For a detailed explanation of the strategy please read the stock Trading System Lab on p. 50. The intention was to see how the system performed on stock index futures as opposed to individual stocks. In this test the S&P 500 (SPY) and Nasdaq 100 (QQQ) index-tracking stocks were used as proxies for the S&P 500 and Nasdaq 100 futures. 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 30-minute bar is below the low of the first 60 minutes of the day.

FIGURE 1 EQUITY CURVE The system produced a modest profit, with long trades outperforming shorts. 24,000 22,000 20,000 18,000 Account balance ($)

Market: Futures (indices).

16,000 14,000 12,000 10,000 8,000 6,000 4,000 2,000 0 10/15/01

Exit: Exit all positions on signals in the opposite direction or at the end of the day. Money management: To equalize the weight of both markets, 49 percent of the current portfolio capital is allocated for every trade. For example, if the total equity moves up to $22,000 and our strategy generates a new signal, we would invest $10,780 for the next signal. We use 49 percent to give us some leeway for commission. Please keep in mind that we use the portfolio result and not the individual result. This is very important and should always be used since only this method reflects what you would actually experience later in your trading. Starting equity: $20,000 (nominal). Deduct $0.01 per share slippage and commissions. Test period: October 2001 until October 2003.

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

Buy & hold

Source for all figures: Wealth-Lab Inc. (www.wealth-lab.com)

FIGURE 2 DRAWDOWN CURVE The largest drawdown occurred early in the test period. The system’s biggest string of losing trades was seven. 0% -1% -2% -3% -4% -5% -6% -7% -8% -9% -10% -11% -12% -13%

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

close all positions not triggered by an opposite signal at the close of the day. Test results: The results for the two years are very encouraging: a profit of 19.88 percent on the starting capital in two years, compared to an unchanged result for the combined equities of the two indices (see Figure 1). The system generated its largest drawdown (-13.52 percent) on Feb. 21, 2002 (see Figure 2). Buy and hold’s largest drawdown (on Oct. 9, 2002) was -44.87 percent. www.activetradermag.com • January 2004 • ACTIVE TRADER

FIGURE 3 SAMPLE TRADES The average hold time for both winning and losing trades was around seven days.

On the downside, the average profit per trade was just 0.05 percent, or $4.46. This may be too little to really trade the system. Looking at the statistics it is interesting to note that out of the 892 trades over the last two years, only 102 were stopped out by the opposite signal while the rest stayed with the initial direction. It seems that in most cases, once the market begins an intraday trend, it continues in that direction throughout the day. Figure 3 shows a short trade on Sept. 10, 2003, that was exited at the close of the day. On the following day it appeared the market was continuing its down move. We received a short signal but got stopped out after the market bounced back.

34.10

Nasdaq 100 index-tracking stock (QQQ), 30-minute

34.00 33.90 33.80 Sell

33.70 33.60 33.50 Buy

33.40 33.30

Sell 33.20

Bottom line: There is a big difference between indices and stocks in regard to this system. Individual stocks tend to be much more volatile than an index; also, 9/10/03 with an index you hardly see large overnight gaps. This might be one reason the 60-minute breakout system performs much better on the ETFs than it does on the individual stocks.

33.10 Buy

33.00

9/11/03

Because of the low average profit per trade, the system requires more fine tuning. Nevertheless, the ratio of trades that kept their original position for the whole day makes this strategy worthy of further investigation.

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) %:

— Volker Knapp of Wealth-Lab Inc. 892 54.60 0.05 7.21 0.80 7.35 -0.86

Avg. hold time (losers): Max. consec. win/loss:

7.04 10/7

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. gain — The average profit for all trades • Avg. hold time — The average holding period for all trades • Avg. gain (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

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%

7

8

Monthly

0.77%

0.88

6.97% -3.17%

52.00%

2

4

Quarterly 2.07%

1.39

6.19% -2.19%

66.67%

6

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 • 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 you’d like to see tested, please send the trading and money-management rules to [email protected].

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 system’s behavior in real-time trading.

ACTIVE TRADER • January 2004 • www.activetradermag.com

19

Four-percent breakout system Market: Nasdaq 100 index-tracking stock (QQQ). System concept: This system is from the book Trade like a Hedge Fund (John Wiley & Sons, 2004) by James Altucher. Both day traders and hedge-fund managers love to “fade” (i.e., trade in the opposite direction of) sharp intraday moves. The thought behind this type of trading is price is unlikely to go much higher after an extreme up move. Traders take short positions anticipating a reversal. In some situations, however, the market ignores the contrarians and continues to rise. Traders who fade the up move must cover their short positions, which leads to panic buying and further upward momentum. The four-percent breakout system is an attempt to quantify and profit from this market scenario. The system goes long when price rises four percent from the previous close — in this case, assumed to be the point at which short sellers must concede they were wrong and cover their positions, driving prices even higher during the trading day. The system is long only; no short trades are made. Rules: Entry — Buy today if price gains four percent from the previous trading day’s closing price. Exit — Exit on the open of the next trading day. Figure 1 shows sample trades in QQQ from March and April 2003.

FIGURE 1 SAMPLE TRADES March and April 2003 were very active months for the four-percent breakout system. There was one large winner, two mid-size winners and one large losing trade. Nasdaq 100 index-tracking stock (QQQ), daily Sell Sell Sell Sell Buy

Buy

Buy

Volume

April 2003 Source for all figures: Wealth-Lab Inc. (www.wealth-lab.com)

FIGURE 2 EQUITY CURVE The equity grew steadily from 2000 through 2002, but the system has been stagnating since mid-2002.

Test period: March 1999 through June 2004 for the QQQ test; July 1994 to June 2004 for the Active Trader portfolio. 20

Account balance ($)

Test data: The system was initially tested only on the QQQ. It was also tested on the Active Trader Standard Stock Portfolio, which contains the following 18 stocks: Apple Computers (AAPL), Boeing (BA), Citigroup (C), Caterpillar (CAT), Cisco Systems (CSCO), Disney (DIS), General Motors (GM), HewlettPackard (HPQ), International Business Machines (IBM), Intel (INTC), International Paper (IP), J.P. Morgan Chase (JPM), Coca-Cola (KO), Microsoft (MSFT), Sears (S), Starbucks (SBUX), AT&T (T) and Wal-Mart (WMT).

100M 50M

Risk control and money management: This system tests only one market, and enters only one position at a time, so 100 percent of equity should be tied up on each trade. Starting equity: $100,000. Deduct $20 per round-turn trade for slippage and commissions.

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

www.activetradermag.com • September 2004 • ACTIVE TRADER

FIGURE 3 DRAWDOWN CURVE The drawdown phase from mid-2002 to the present dominates the drawdown curve.

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 system’s 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 it’s 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

the designers knew of previous QQQ price movement), it was tested on other markets in an attempt to determine its validity. Our starting equity for the Active Trader portfolio test was also $100,000, although only 10 percent of equity was committed per trade. This equity curve (Figure 4, p. 60) shows fairly steady growth from the beginning of the test period through mid2002. From that point, there is a slight decline in capital and a general stagnation as fewer trades take place. This equity curve mirrors the QQQ equity curve. However, the fact that the system was profitable on a portfolio of stocks (8.95 percent annualized gain) and not just one stock is evidence the system is based on a valid core assumption. System variation: James Altucher publishes a variation of the system that adds one additional entry rule: Price must be down two percent on the day before entering a trade. This rule is intended to avoid entering when a price move is nearly exhausted, and allows the system to capture solid rebound PERIODIC RETURNS

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

Avg. Sharpe Best return ratio return Weekly

0.30%

1.18

11.89%

Worst Percentage Max. Max. return profitable consec. consec. periods* profitable unprofitable -9.23% 22.10% 4 63

Monthly

1.30%

1.35

13.34%

-6.40%

50.00%

10

15

Quarterly 3.93%

1.03

25.74%

-6.98%

59.09%

8

5

Annually 16.71%

0.56

75.51%

-2.52%

66.67%

4

2

*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

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 you’d like to see tested, please send the trading and money-management rules to [email protected].

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 system’s behavior in real-time trading.

ACTIVE TRADER • September 2004 • www.activetradermag.com

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 Altucher’s Trade like a Hedge Fund.

FIGURE 4 EQUITY CURVE: ACTIVE TRADER PORTFOLIO The upper equity curve shows the results of the four-percent breakout system on the Active Trader standard stock portfolio using 10 percent of equity per trade. The lower equity curve is a system variation that enters after a down move and uses 25 percent of equity per trade. 200,000

A

150,000 100,000 Account balance ($)

moves. This generally increases the efficiency of the system while reducing the number of actual trades. The bottom equity curve in Figure 4 shows the results of the system variation on the Active Trader portfolio. Since the new filter reduces the number of trades, the position size was changed to 25 percent for each trade. The shape of the equity curve is similar to the previous run, but actual profit is higher and the system does not enter as many losing trades during the stagnation period of mid2002 to present.

50,000 0 250,000 200,000

B

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

— Compiled by Volker Knapp of Wealth-Lab

22

www.activetradermag.com • September 2004 • ACTIVE TRADER

TRADING Strategies

BROADENING PATTERNS:

Clues to breakout direction A partial rise or decline can predict the direction of a breakout. Learn to use these signals to increase profits when trading broadening patterns. BY THOMAS N. BULKOWSKI

T

rying to determine when a breakout will occur in broadening chart patterns, which are expanding rather than contracting price formations, can be difficult. However, partial rises (PRs) or

partial declines (PDs) can improve the odds of making a correct decision. These signals predict immediate breakouts and indicate their direction, too, allowing you to increase your profits and reduce your losses. However,

because a PR or PD often slows overall momentum, the size of the eventual breakout is not as large as when a PR or PD does not appear.

Broadening tops and bottoms

FIGURE 1 PARTIAL RISE The July broadening bottom pattern appeared midway through the down move. A partial rise accurately signaled a downside breakout from the pattern. Milacron Inc. (MZ), daily

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.

ACTIVE TRADER • April 2004 • www.activetradermag.com

Sept.

Oct.

Nov.

Dec.

Figure 1 shows two broadening bottom patterns. These are different from broadening tops because price enters the pattern from the top. In both patterns, price touches each trendline at least two times and swings in a progressively wider range. That is, the minor highs get higher and the minor lows get lower. The July pattern shows a PR, which occurs after the pattern is established — that is, there were at least two touches of each trendline before the PR. Price makes a partial rise when it leaves the bottom trendline and works its way higher but fails to touch or come too close to the top trendline before turning away. How close is “close”? Use the figures in this article and your common sense as guides. For example, the July broadening bottom has three top trendline “touch-

23

TABLE 1 PARTIAL RISES AND DECLINES: SUCCESS RATES

even better — 80 percent (see Table 1, top right, for more statistics). The percentages reflect how often partial rises and partial declines predicted Notice how the July pattern is midbreakout direction. way between the price at the start of the downtrend (around 32) and its low Chart pattern Partial decline Partial rise (around 14). The middle of the pattern is Broadening bottom 80% 67% around 23, the center of the 32-14 range. Although broadening patterns someBroadening top 65% 86% times act as “half-staff patterns” that Broadening wedge, ascending Not measured 84% form in the middle of moves, broadenBroadening wedge, descending 76% Not measured ing bottoms usually function as reversals in a downtrend, not as continuation patRight-angled and ascending Not measured Not measured terns within those trends, as they do in Right-angled and descending 78% 58% Figure 1. Figure 2 includes two broadening tops with PDs. In a partial decline, price es,” not two or four: The second minor 500 stocks from mid-1991 to mid-1996, a leaves the top trendline and descends high (point 2) comes close enough to call bull market, showed that a PR correctly but does not come close to or touch the it a touch, but the third (point 3) does predicted a downward breakout 67 per- bottom trendline. An upward breakout cent of the time. The accuracy rate of usually follows immediately. Again, the not. Analysis of 77 broadening bottoms on PDs predicting upside breakouts was broadening top pattern must touch each trendline at least two times before a PD signal can occur. FIGURE 2 BROADENING TOPS Table 1 shows PDs in broadening tops correctly Both of these broadening tops included partial declines, which predicts an upward breakpredicted an upward breakout of the pattern. out 65 percent of the time, Newport Corporation (NEWP), daily while partial rises were 86percent accurate in predict7 ing downside breakouts. In a larger combined study of broadening tops 6 and bottoms, PDs worked 77 percent of the time. When a 5 PD occurred, the post-breakPartial decline out up move was 32 percent; without a PD, the rise measured 36 percent. Thus, the 4 PD affected momentum by reducing the eventual rally. PDs not resulting in breakouts occurred just nine perPartial decline cent of the time, which 3 means false signals are comparatively rare. For PRs, the post-breakout decline measured 15 percent; without a PR, the declines averaged 17 percent, indicat2 ing a partial rise steals ener1997 June July Aug. Sept. Oct. Nov. Dec. 1998 Feb. Mar. Apr. May June gy from the resulting down Source: Proprietary software (Thomas Bulkowski) move. 24

www.activetradermag.com • April 2004 • ACTIVE TRADER

FIGURE 3 TRENDLINE TOUCHES Look for a partial rise or decline only after price touches each trendline of the broadening pattern at least twice. Here, a partial rise formed in this ascending, right-angled broadening formation. Tommy Hilfiger (TOM), daily

37 Partial rise

35 33

False breakout signals for PRs (i.e., when a partial rise occurred inside a broadening top pattern after price touched each trendline twice without triggering a breakout) occurred just 11 percent of the time in the 350 patterns examined. A broadening top usually acts as a continuation pattern within the prevailing price trend, as shown in Figure 2.

1

2

31 30 29 28 27 26 25 24 23 22 21 20

3

Not a partial decline

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.

FIGURE 4 REVERSAL PATTERN Although broadening formations are often continuation patterns, descending, right-angled broadening formations like the one shown here usually act as reversal patterns. CDI Corp. (CDI), daily

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)

ACTIVE TRADER • April 2004 • www.activetradermag.com

Apr.

May

June

July

Aug.

12 Sept.

25

FIGURE 5 DESCENDING BROADENING WEDGE The August pattern did not produce a valid partial decline because price must drop from the top trendline and curl around. Here, price rose from the bottom trendline. The first partial decline in the October pattern fails to predict an immediate upward breakout, but is correct in the longer term. Transocean Inc. (RIG), daily 52 50 48 46 44 42 40 38 36 34 32 31 30 29 28 27 26 25 24 23 22 21

Not a partial decline

Partial declines

1999 June July Aug. Sept. Oct. Source: Proprietary software (Thomas Bulkowski)

Nov.

Dec.

2000

Feb.

Mar.

20

FIGURE 6 ASCENDING BROADENING WEDGE After the pattern is established, a partial decline fails to correctly predict an upward breakout. Later, a partial rise precedes a downside breakout. WPS Resources Corp. (WPS), daily

32 31 30

Partial rise

29 28 27 26 25 24 23

Failed partial decline

22 21

1999 Aug. Sept. Oct. Nov. Dec. Source: Proprietary software (Thomas Bulkowski)

26

2002

Feb.

Mar.

Apr.

May

20 June

pattern. The top trendline is horizontal and the bottom one slopes down. Price touches the bottom trendline, bounces up but does not come close to or touch the top trendline before retracing its gains. This PR predicted a downward breakout. As is the case with this example, the descending, right-angled broadening pattern usually acts as a price reversal. In the descending pattern, partial rises worked just 58 percent of the time and partial declines worked 78 percent of the time in descending, right-angled broadening patterns.

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

www.activetradermag.com • April 2004 • ACTIVE TRADER

early September was not a partial decline. Price in a PD must start from the top trendline, bow downward (without coming close to or touching the bottom trendline) and rejoin the top trendline. In this case, price leaves the bottom trendline, not the top one. In the October pattern, the first partial decline is a failure because price does not breakout upward immediately after touching the top trendline. Instead, price drops down again and finally shoots out the top. A partial decline correctly predicts an upward breakout 76 percent of the time. Not enough samples were found for partial rises in descending broadening wedges. Figure 6 (p. 28) shows an ascending broadening wedge. Both trendlines slope upward and minor highs and minor lows touch each trendline at least twice. The January partial decline failed because price did not break out to the upside — it touched the top trendline, then reversed. The partial rise does better when it leaves the bottom trendline, bounces up and then plunges through the bottom trendline. A PR correctly predicts a downward breakout 84 percent of the time.

Additional research Books by Thomas Bulkowski: Encyclopedia of Chart Patterns (John Wiley & Sons, 2000) Trading Classic Chart Patterns (John Wiley & Sons, 2002)

Active Trader articles: “Technicals meet fundamentals in the earnings flag,” February 2004, p. 30 “A different breed of scallop,” January 2004, p. 32 “The three rising valleys pattern,” December 2003, p. 28 “Pipe bottom reversals,” November 2003, p. 28 “Grabbing the bull by the horns,” September 2003, p. 46 “Head-and-shoulders bottoms: More than meets the eye,” August 2003, p. 32 “The high-low game,” July 2003, p. 28 “Tom Bulkowski’s scientific approach,” September 2002, p. 32

ACTIVE TRADER • April 2004 • www.activetradermag.com

27

TRADING Strategies

HIGH, TIGHT FLAG helps squeeze out profits This bullish formation boasts excellent post-breakout performance and a low failure rate — exactly the type of pattern traders should look for in bull markets.

BY THOMAS N. BULKOWSKI

A

high, tight flag (HTF) is a consolidation pattern that forms after a stock’s price doubles. When price breaks out above the pattern, it signals the rise is not over. Figure 1 shows an example of an HTF that formed in January-February 2000. The uptrend started in October at a low of 5.50 and reached a high of 11.35 at the HTF’s starting point — a doubling of price in less than a month. Although many HTFs have irregular shapes, you can usually draw a trendline along the top of the pattern to signal a breakout. In this example, parallel trendlines mark the flag’s upper and lower boundaries. Volume slopes downward over the course of the flag, as it did in 90 percent of HTFs in a recent study. The basic HTF trade strategy is to buy at the close of the day after price breaks out above the pattern’s upper trendline. In Figure 1, the stock rallied 52 percent from the closing price the day after price pierced the HTF’s upper trendline to the ultimate high. Although it is sometimes difficult to buy high and sell higher, the price

28

moves following HTFs show how such an approach can work.

Flag criteria What should you look for when selecting HTFs? That depends on whom you ask. William O’Neil, 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 O’Neil’s criteria because it retraced 52 percent of the prior rise (most flags failed O’Neil’s filter because they retraced more than 20 percent) and the flag duration lasted more than seven weeks .

www.activetradermag.com • December 2004 • ACTIVE TRADER

FIGURE 1 A LARGE HIGH, TIGHT FLAG This pattern does not meet William O’Neil’s HTF criteria, but the post-breakout rise was 52 percent. Such a well-defined flag shape is unusual. Alkermes (ALKS), daily 17 16 15 14 13

Ultimate high

Another study that used different selection criteria for HTFs also showed an average post-breakout gain of 69 percent. The criteria for this study was simply a near doubling (a rise of 90 percent or more in less than two months) of the stock price, which is easy to find by looking for stocks that have moved up sharply in less than two months, then searching for a nearby consolidation region. The study placed no limit on flag length, although HTFs equal to or shorter than the 14-day median length performed better (71 percent) than those that were longer (66 percent). The study also ignored the size of the retracement.

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

High, tight flag

8 7 6 Trend start 5

1998

Aug.

Sept.

Oct.

Nov.

Dec.

1999

Feb.

Mar.

Apr.

May

June

4

Source: Proprietary software (Thomas Bulkowski)

FIGURE 2 TWO HTFS The first flag looks like a descending, broadening wedge and the second like a falling wedge. Both HTFs show good gains after the breakout with the first pattern hitting overhead resistance at the ultimate high. National Semiconductor Corp. (NSM), daily

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)

ACTIVE TRADER • December 2004 • www.activetradermag.com

Nov.

Dec.

2000

Feb.

Mar.

29

FIGURE 3 TWO MORE HTFS The first HTF launches from a flat base and price soars to the ultimate high. The second trade is more typical with the rise to the ultimate high about half the distance, on a percentage basis, from the trend start to the flag. Vertex Pharmaceuticals (VRTX), daily

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.

9

FIGURE 4 HTF FAILURE This HTF fails to travel far due to overhead resistance and a change in company fundamentals. The stock tumbles on an earnings warning. Noven Pharmaceuticals (NOVN), daily

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

Source: Proprietary software (Thomas Bulkowski)

30

June

July

Aug.

Sept.

Oct.

12 Nov.

The flag retraced 45 percent of the rally and was 29 days long. After the breakout, price rallied 92 percent. This pattern did not have overhead resistance to overcome on its way to the ultimate high. That may explain why price nearly doubled before trending downward. Notice the irregular shapes of these two HTFs. The first looks like a small broadening wedge and the second looks like a regular falling wedge. Volume trends downward in both. Figure 3 shows two more examples. Starting from a flat base in late 1999, price climbs 116 percent leading to HTF 1 and soars 129 percent afterward. The stock did not perform as well after HTF 2 because the market changed from bull to bear between the two patterns (the bear market started in March 2000, near HTF 1’s ultimate high). The second HTF pattern was preceded by a 136-percent price rise and followed by a 61-percent rally after the breakout.

The measure rule The second pattern in Figure 3 is typical of the rise you can expect after an HTF in a bull market. For all 252 patterns in the study, the climb leading to the pattern averaged 124 percent, but the post-breakout gain was just 69 percent. To determine an approximate target, compute the percentage change from the low of the trend start point to the high at the top of the flag. After the breakout, the move from the flag’s lowest low should measure approximately half this

www.activetradermag.com • December 2004 • ACTIVE TRADER

An HTF triggers a buy signal after a stock has made a significant up move and, thus, will appear overbought to many traders. amount. This “measure rule” works 90 percent of the time in a bull market.

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

high, raise the stop to just below the prior minor low, provided it is not too far away; otherwise use 1.5 times the daily volatility, which is 1.5 times the average intraday trading range over the prior month. Keep raising the stop as price climbs. Use the measure rule to find a target price (half the price rise leading to the HTF, projected upward from the flag low). Most of the gains (35 percent, on average) will come in the first week, so enter as soon as you get the signal. Also, the time from the trend start to the flag start will be slightly less (by six days on average) than the time from the flag’s end to the ultimate high. 

Additional reading Books: How to Make Money in Stocks (McGraw-Hill, 1988) by William O’Neil 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

Trading the pattern

“A different breed of scallop,” January 2004, p. 32

An HTF triggers a buy signal after a stock has made a significant up move and, thus, will appear “overbought” to many traders. This is a momentum play, buying high and selling higher. Trading an HTF is like standing on the edge of the cliff and jumping off, hoping the water at the bottom is deep enough. You need a good dose of courage to take the plunge. To trade the pattern, wait for price to either close above the flag trendline or, if the HTF has an irregular shape, use a

“The three rising valleys pattern,” December 2003, p. 28 “Pipe bottom reversals,” November 2003, p. 28 “Grabbing the bull by the horns,” September 2003, p. 46 “Head-and-shoulders bottoms: More than meets the eye,” August 2003, p. 32 “Tom Bulkowski’s scientific approach,” September 2002, p. 32 You can purchase past articles at www.activetradermag.com/purchase_articles.htm and download them to your computer.

ACTIVE TRADER • December 2004 • www.activetradermag.com

31

TRADING Strategies

Mastering

TWO-MINUTE breakouts How can you find consistent trade opportunities? One way is to trade breakouts through yesterday’s high and low — but only after the stock has shown its true colors.

trade is to buy upside or downside breakouts of the previous day’s high or low, respectively, avoiding trades in the middle of the day’s range. We’ll show how to apply this technique using twominute charts.

The tools

BY KEN CALHOUN

I

t is often a struggle to find the most appropriate indicator for a given trading situation. A tool that works in one environment may not be appropriate in another. Momentum oscillators or the Nasdaq and S&P 500 futures may provide early signals of shifts in the stock market, but these tools also are often unreliable. Moving average crossovers provide trend confirmation but generally lag price action, and you cannot count on sustained trends in consolidating markets. Further, market makers frequently disguise their intentions via Electronic Communications Networks (ECNs) or Level II head fakes, which render the Level II screen more or less useless. So, what’s a trader to do? Watch price action. Trading breakouts and breakdowns of chart patterns is a reliable and simple trading technique that can help you limit risk. A relatively consistent short-term, pattern-based 32

For this approach, use a two-minute candlestick chart encompassing a two-day time horizon (today and yesterday). For a long trade, buy the stock once it has cleared the whole number closest to the previous day’s high. For example, assume a stock made a high of 47.9 yesterday. In this case, you would enter a buy order when the stock hits 48.5 (having cleared 48, the nearest whole number) and when time and sales shows that most trades are being executed at the ask price, which would suggest strong demand for the stock. Reverse the logic for short trades. The reason for placing the entry a certain amount above the previous day’s high — in this case, 48.5 — is to make sure the trade safely “clears the hurdle” of the previous day’s trading range, accounting for any market noise that may be present. We don’t want to buy a double top, we want to buy a breakout above the previous day’s high. Entering 0.3 to 0.5 above the whole number helps avoid false breakouts. This approach works because many professional traders and institutional buyers buy such breakouts. In addition, some institutional buy programs also factor in the open, high, low and closing prices. When such programs trigger buy signals and money starts flowing into a

stock, you can ride the coattails of the large money on the way up. To make sure, however, don’t enter the trade until the stock also has cleared the required noise level. We also use the time and sales window to confirm that any large block trades are going our way and that most trades are executed at the ask price for long trades, or the bid price for short sales. It also is good if a directional chart pattern — i.e., one that implies a move either up or down — confirms the breakout. A simple example is successive closes at the high (or low) of the price bars leading up to, or coinciding with, the breakout. Also, many traders use specific candlestick chart patterns to indicate likely price direction.

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 day’s 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.

www.activetradermag.com • September 2001 • ACTIVE TRADER

technique. 1. Define the day’s 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 day’s high and low. 2. Enter 0.3 to 0.5 points above the previous day’s 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 day’s 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

back into the trading range near the whole number and the entry price level is violated. 4. Trail the stop to protect profits. 5. Because the market often reverses around 10 a.m. each day, it is useful to tighten the stop during this time to three or four “spreads” (the colored bands of bid and ask levels on the Level II screen) behind the current inside bid. With decimal trading, this allows active traders to keep even tighter stops than was previously possible.

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 day’s high and low prices, on April 30 we set long entry at 48.5 (0.5 points above the previous day’s high of 48, which was a whole number).

FIGURE 1 BUY SIGNAL A buy signal occurs in EBAY when the stock moves .5 points above the whole number nearest to yesterday’s high. EBay Corp. (EBAY), two-minute 52.00 Buy signal is generated when price exceeds previous day’s high +.5 points.

51.50 51.00 50.50

0

50.00 49.50

Previous day’s 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

Source: Data Broadcasting Corp.

ACTIVE TRADER • September 2001 • www.activetradermag.com

33

We trailed a stop no more than 0.4 points behind the current price level. In this trade, the trailing stop was triggered at 49.375, yielding a net profit of 0.875 points in less than 20 minutes. Figure 2 (left) is an example on the short side of the market. Adobe (ADBE) traded between 42.4 and 45.4 on May 2. The next day (May 3) we therefore looked to go short if the market fell to 41.6, 0.4 points below the whole number (42) closest to the previous day’s low. However, ADBE gapped down to 41.6 in pre-market trading. When this happens, it’s a good idea to move the initial entry point farther away from the price action to avoid being caught on the

wrong side when the market opens. Therefore, we adjusted the entry to 41.4 to clear the gap with as small a distance as possible. This is not an exact science. Sometimes you will jump into a trade too soon despite this step; other times this precaution will save you from taking an unnecessary loss. Because of the uptick rule, it may take several attempts to execute a short trade. Don’t be afraid to hit the short button on your trading platform software several times (assuming you are using a directaccess broker) so you can get in on an uptick. Check your trade confirmation window to make sure you are executing a single short trade, and not mistakenly

FIGURE 2 SELL SIGNAL ADBE had already reached the pre-determined entry price in pre-market trading. The stock kicked off the official trading session with a two-minute rally. Had we sold immediately on the open without adjusting the entry price to take this price action into account, we would have been stopped out with a loss. Adobe Systems Inc. (ADBE), two-minute 45.60 45.40 45.20 45.00 44.80 44.60 44.40 44.20 44.00 43.80 43.60 43.40 43.20 43.00 42.80 42.60 42.40 42.20 42.00 41.80 41.60 41.40 41.20 41.00 40.80 40.60 40.40 40.20 40.00 39.80

Short signal is generated at 41.40.

Previous day’s low: 42.20

Current day

Previous day (compressed)

5/2/01

9:30 5/3/01

Source: Data Broadcasting Corp. 34

10:00

10:30

11:00

11:30 12:00

entering multiple trades. Because the stock already has traded at or close to this price in the pre-market, it also is important that the time and sales window confirms large block trades are going our way and that most trades are being executed at the bid price (indicating selling pressure). After the entry at 41.4, we trailed a stop a few spreads behind the open trade, without exceeding the 0.3-point stop we’ve set for this trade. Note that the stop is slightly tighter in this trade than in the first example. Because of the support-resistance level created by the pre-market gap to 41.6, this trade will be invalidated as soon as the market trades above this level, which will happen at 41.7 — 0.3 points away from the entry price. Most trades entered before 10 a.m. should not last any longer than five to eight minutes. Trades entered after 10 a.m. can last a little longer, but never more than 20 minutes. This trade was covered at 40.75 for a .65-point profit.

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 day’s 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 day’s trading range are those rare occasions when a stock makes a rapid multi-point drop from the previous day’s high and bounces off the previous day’s 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. It’s a good idea to tape that to your monitor, along with the words, “Tight stops — no exceptions!” 

www.activetradermag.com • September 2001 • ACTIVE TRADER

TRADING Strategies

Swing trading 10-day

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 won’t break apart.

BY KEN CALHOUN

T

rying to outguess the market by picking bottoms and tops is usually unsuccessful, and more often than not results in a large numbers of whipsaw trades. By contrast, professional traders and institutions favor breakout trading. Combining 10-day support and resistance lines with confirming signals such as volume breakouts and reversals is a practical approach to identifying swing trade opportunities. These 10-day “channels“ provide clear criteria for entering breakout trades once these price levels are triggered.

Why swing trading? Swing trading is a shorter-term trading style in which positions are held anywhere from one to 10 days. Swing trading has been increasingly popular ever since 35

the Securities and Exchange Commission (SEC) raised the minimum margin requirement for pattern day traders (PDTs) to $25,000 on Sept. 28, 2001 (see “New rules for the intraday trader,” Active Trader, October 2001). Traders with less than the $25,000 can make no more than four intraday trades in a five-day period; those who exceed this limit must meet the new day trading margin requirements or face potential position liquidation or account closure. Day trading, in which trades often are entered and exited in a matter of seconds, can be highly stressful and requires a significant initial investment — not just in trading funds, but in computer hardware and software, and training in directaccess trading methods as well. Swing trading, by contrast, is generally less stressful and does not require as

large an upfront investment in capital, software or equipment. Because it does not require a trader to watch the market all day, swing trading can be done on a part-time basis using online discount brokers. Professional day trading requires a full-time commitment and a fast direct-access broker. This makes swing trading a viable alternative for active traders who are unwilling to meet the new margin requirements and/or uncomfortable with the technology and capital demands of day trading. Swing trading is also an effective way to learn many of the “classic” technical indicators and limit risk with small-share or paper trades. The following strategy uses simple volume and sector-strength filters to determine when to trade breakouts of 10-day price channels.

www.activetradermag.com • March 2002 • ACTIVE TRADER

If a stock gaps The tools

The rules

For this approach, use a 15-minute chart encompassing the most recent 10 days (i.e., today and the previous nine trading sessions). The following rules are given in terms of upside breakouts and long trades; reverse the rules for short trades. However, this strategy is better for long swing entries. For a breakout swing trade, buy when a stock breaks out at least 50 cents over the whole number above the 10-day high, accompanied by volume that is higher than the previous day’s volume at the same time. For example, assume that during the previous nine trading sessions plus today, the highest price a stock traded at was 37.8, which was set on the previous trading day. The trigger for a 10-day breakout long trade would be 38.5, as long as the volume in the current session is higher than it was at the same time in the previous session. If the stock opened today at 37.6 and traded up to 38.5, this would trigger a long trade. The only exception is when the entry price would contain a “9” — e.g., 19.5, 29.5, 39.5, and so on; in such cases, wait until the stock clears the nearest multiple of 10, which would result in long trade triggers at 20.5, 30.5, 40.5, etc. The rationale is prices with a “9” tend to look expensive and often meet resistance, choppy price action, or both near multiples of 10.

The best types of stocks to trade with this approach are Nasdaq or NYSE stocks priced between $5 and $60, with average daily volume of at least 800,000 shares, and average intraday trading ranges of 1 to 4 points. Here are the rules: 1. Define the 10-day high and low for the stock using a 15-minute candlestick or bar chart. Be sure to include volume bars on the chart. 2. Enter 50 to 60 cents above the nearest whole number above the highest high of the past 10 days, including today. 3. Look for volume breakouts on the 10-day chart. Compare volume bars on the current trading day to previous trading days. The best entries are those for which volume is higher than in the previous session. 4. Confirm entries using market indicators such as the Arms Index (TRIN) as well as the time of day. The TRIN measures the net buying pressure vs. selling pressure in the market at a given point in the trading day. The formula is: {number of advancing issues/number of declining issues}/{volume of advancing issues/volume of declining issues}

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 day’s low. The most conservative initial stop-loss is the previous day’s high. Once in a profitable trade, trail the stop .5 points below the current trading range.

ACTIVE TRADER • March 2002 • www.activetradermag.com

open more than 10 to 15 percent from its previous close, it will often reverse and fill the gap, in which case it’s necessary to take your profit before the market does. The TRIN, versions of which are available for both NYSE and Nasdaq stocks, can help determine whether a trade is advisable by highlighting whether momentum is bullish or bearish at a given time. A TRIN reading of 1 means buying/selling volume and the number of advancers/decliners are equally matched; a TRIN reading above 1 is bearish; a TRIN under 1 is bullish. See Indicator Insight, Active Trader, December 2000, for more information on this indicator. It’s also helpful to enter at times of the day when the market is the strongest and most volatile. It’s usually best to enter 10-day channel long trades in the early morning, from 9:45 until 11 a.m. EST, or during late-afternoon rallies — between 2:30 and 3:30 p.m., for example. Certain cautionary indicators (“red flags”) can be used to eliminate poor trades. For long entries, avoid highs reached on lower-than-average volume or those reached by a stock in a weak sector that day. Compare sector indices such as the SOX, NBI, GHA and GSO to determine which are strongest, and give preference to entries in the strongest sectors 36

FIGURE 1 POISED TO BREAK OUT NVDA traded in a channel from 48 to 55 for 10 days, forming an ascending triangle toward the end of the period as it challenged the resistance level another time. Entry would occur at 55.50, 50 cents above the highest high of the past 10 days. Nvidia (NVDA), 15-minute Resistance

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

FIGURE 2 AFTER THE BREAKOUT

Intuit Inc. (INTU), 15-minute

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

6. Trail a stop to protect open profits at 2 percent (generally from .5 to 1.5 points) below the current level of the open trade, or use a time stop of no longer than 10 days (i.e., exit all remaining open positions after 10 days). Whenever one of the exit signals appears, the position should be closed with a profit. Re-enter on subsequent breakouts after retracements have occurred.

How to handle gaps

After the stock fulfills the entry requirements and breaks out above resistance, a trailing stop is used to lock in profits.

— e.g., those up 1.5 to 3 percent or so on the day at the time of the trade entry. Also check to see if sectors are convergent (all green or red — i.e., moving up or down) or divergent (mixed). It’s best to enter swing trades on days where all sectors are convergent and the broad market has strength in a single direction.

your risk tolerance. A good initial stop-loss is the previous day’s low or 1.5 points, whichever is smaller. For example, let’s say the 10-day channel range for EBAY is bounded by a low (support level) of 61.8 and a high (resistance level) of 66.8. If the previous day’s range was 65.5 to 66.8, we would enter EBAY on a breakout above 67.5. The initial maximum stop-loss for this trade would be at 66, 1.5 points below entry (roughly 2 percent). If you trade on a shorter time frame, say three- or five-minute charts, you might consider setting a tighter stop at the previous day’s high.

Mixed, choppy days are poor days for swing trade entries. 5. Stop-loss values are determined by the previous day’s high and low. Either of these price points can provide you with an initial stop-loss value, depending on the intraday market trend and

Managing gap opens on swing trades is always a challenge. When a stock gaps open significantly above the previous day’s high (in your favor for a long swing trade), trail a stop no more than 50 cents below the current pre-market trading range to lock in your profit. However, if a stock gaps open more than 10 to 15 percent from its previous close, it will frequently reverse and fill the gap, in which case it’s necessary to take your profit before the market does. This is especially true if the stock gaps up above the previous day’s high. Conversely, when a stock gaps down significantly against you, it’s often best to wait until 15 to 20 minutes after the open to exit the position, because down gaps frequently attract buyers who can bring the price back up. Again, use a stop-loss of no more than 50 cents below the current pre-market trading range. It is sometimes helpful to wait until approximately 9:45 a.m. EST to see where the stock trades before exiting a position. It is frustrating to panic out of a gap-down swing trade only to see the stock turn around and fill the gap in the first few minutes of the trading day. Calmly give it a few minutes to establish a trend and see if it consolidates and

www.activetradermag.com • March 2002 • ACTIVE TRADER

FIGURE 3 OVERFLOWING CUP Like channels and ascending triangles, cup patterns also provide well-defined resistance levels for breakout trades. The stock broke out above a second cup pattern on Dec. 7, and was stopped out with a 3.6 point profit on Dec. 11. 40.00

Invision Technologies (INVN), 15-minute

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

reverses this initial gap move.

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 day’s low (see trade rule No. 5). The alternate, more conservative stop-loss level is the previous day’s 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.

Figure 2 provides an example of how to manage a profitable long swing trade. On the afternoon of Nov. 29, 2001, the stock cleared the 10-day high and a long trade was entered at 42.50. The initial stop loss was set at 41 (42.5-1.5). On Nov. 30, the stock continued to rally throughout the session to a high of 44, at which point it consolidated. Using a trailing stop approach raises the stop to 43.5 (44-.5), which was not triggered. The “time stop” is 10 days from Nov. 29. In this case the stock is up more than a point on an overnight hold. We continue to trail a stop .5 behind the current trading range until the stop is taken out.

Dynamic position sizing using cup breakouts Dynamic position sizing is the process of adding to an initial position once a stock has broken out and is continuing to attract buyers. For example, a trader may buy 200 shares initially and add another 100 shares on a subsequent breakout as the stock continues to climb. The key to using dynamic position sizing is to add no more than half the number of the initial trade size on subsequent 10-day high cup-pattern breakouts. When adding to an initial position,

ACTIVE TRADER • March 2002 • www.activetradermag.com

it is sound risk management to “extend yourself” only on the strongest of patterns. This keeps the average entry price toward the low end of the total position. Cup-pattern breakouts, like ascending-triangle and consolidation breakouts, are much stronger than cases where a stock simply trades to a new high without penetrating any kind of resistance level. The test of sellers that occurs at a resistance level prior to a long cup-pattern breakout validates the entry and provides a support level after the trade. Cup patterns, which are extended, saucer-shaped retracements, appear fairly frequently. The key to trading them is to apply volume and other filters to avoid false breakouts that turn out to be double tops (i.e., when price falls back from the right side of the cup instead of breaking out above the resistance level of the cup). Figure 3 shows a cup pattern that started on Dec. 3, pulled back from the resistance level of 28.59 on Dec. 5 (forming a short-lived double top), formed another cup and finally broke out above the resistance on the afternoon of Dec. 7. A long trade was triggered at 30.5 (because the entry price would have been 29.5, and in such cases entry is made above the nearest multiple of 10). The stock gapped open higher on Dec. 10 and the trade was exited on Dec. 11 (when the trailing stop was hit) at 34.1 for a 3.6-point profit.

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

Account balance ($)

Volatility breakout system

2,000,000

System logic: The volatility breakout system is a classic trading strategy based on identifying situations when a 1,500,000 market is about to burst out of a congestion area and potentially establish a new long-term trend. It also can signal a 1,000,000 trade if the market is already trending in one direction but quickly reverses to establish a new trend in the opposite 500,000 direction. This system uses Bollinger Bands (complemented by 0 moving averages), which are lines typically plotted two 12/7/92 12/7/93 12/7/94 12/7/95 12/7/96 12/7/97 12/7/98 12/7/99 12/7/00 12/7/01 standard deviations above and below a moving average. Bollinger Bands expand during high-volatility periods and contract during low-volatility periods. Test data: Daily prices for 14 Dow Jones Industrial Average stocks When volatility is high, the system is designed to stay out of the (AXP, C, CAT, DIS, GM, HWP, IBM, INTC, JPM, KO, MO, MRK, market to avoid taking any unnecessary risk, but if an entry is trig- MSFT, T), with $10 deducted per trade for slippage and commisgered anyway, the system will work to keep you in the trade to sions. avoid being stopped out prematurely with a loss. A long entry is triggered when price moves above its 60-day moving average and Starting equity: $1 million (nominal). breaks the upper Bollinger Band. To exit, price must move below its 30-day moving average and break a lower Bollinger Band that is set Buy-and-hold stats: one standard deviation away (instead of the usual two). Because the Total Maximum Longest next entry cannot occur until price moves back above the lower Index return drawdown flat period band, above its moving average and above the upper band, there DJIA 175% 31.5% (current) 29 months (current) will be times when the system is out of the market completely. S&P 500 120% 40% (current) 26 months (current) Nasdaq 182% 80.5% (current) 26 months (current) Markets: This system will be tested on stocks and also on futures (p. 70). Test results: The system was originally tested on all 30 stocks in the DJIA; the 14 in this test were selected because they were the Rules: ones that showed a profit. Singling out these stocks, though, 1. Go long tomorrow if price moves above its average price for the last 60 days and breaks the SAMPLE SIGNALS upper Bollinger Band. 2. Exit with a profit or loss if 58.00 Philip Morris (MO), daily price moves below its 30-day moving average and penetrates LX = Long exit 56.00 LX a lower Bollinger Band set one standard deviation away. LX

54.00

Buy Sell

Reverse the rules for short trades. Money management: 1. Risk 4 percent of available equity per stock traded. 2. The number of shares to trade (ST) is calculated using the following formula:

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

www.activetradermag.com • October 2002 • ACTIVE TRADER

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%

failed to create results as good as the ones produced by the test on currency futures (see Futures System Lab, p. 44). One thing to keep in mind is that portfolio composition is more complex than simply eliminating instruments that don’t perform well. In a dynamic portfolio such as this one, where a group of stocks interacts within a single trading account, the ability of an individual stock to turn a profit or loss also depends on the behavior of all the other stocks. As proof of this, three stocks that were profitable when all 30 stocks were tested showed a loss when the field was pared to 14. If we were to test only the remaining 11 that showed a profit, it’s likely a few more would turn into losers. This correlation also makes it extremely difficult to trade a longterm system on the stock market. The individual stocks either trend well, almost all at once, or they don’t, which results in a large amount of whipsaw losing trades and rather severe drawdowns. The way to overcome this is to diversify by trading as many stocks from different sectors and groups as possible.

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

In this system, though, the large distance between the entry and exit prices requires trading rather small positions. Doing otherwise would run the risk of using all the capital on only a few positions. This in turn will result in relatively small dollar gains despite large price swings. Even though the system trades only 14 stocks, close to 75 percent of available capital is tied up. Also, the current drawdown has gone on for 42 months. This is likely a reflection of the disappearance of the stock market’s pre-2000 trending characteristics, and it is not very likely that a system like this will start producing a profit anytime soon. This system is also a bit passive in its trade frequency. To make it more aggressive, the lookback period can be shortened and/or the standard deviation boundaries tightened.

ROLLING TIME WINDOW RETURN ANALYSIS Cumulative

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

Send Active Trader your systems If you have a trading system or idea you’d like tested, send it to us at the Trading System Lab. We’ll test it on a portfolio of stocks or futures (for now, maximum 60 markets, using the last 2,500 trading days), using true portfolio analysis/optimization. Most system-testing software only allows you to test one market at a time. Our system-testing technique lets all markets share the same account and is based on the interaction within the portfolio as a whole. Start by e-mailing system logic (in TradeStation’s EasyLanguage or in an Excel spreadsheet) and a short description to [email protected], and we’ll get back to you. Note: Each system must have a clearly defined stop-loss level and a suggested optimal amount to risk per trade.

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 system’s behavior in real-time trading.

ACTIVE TRADER • October 2002 • www.activetradermag.com

40

&

System Lab

OPTIONS

Futures volatility breakout system System logic: The system uses Bollinger Bands and a moving average to trade volatility breakouts. The logic and tools for this system are described in the Trading System Lab on p. 56. Markets: Most trending futures markets, such as currencies, energies and interest rates. This system was also tested on stocks (see Trading System Lab). Rules: 1. Go long tomorrow if price moves above the 60-day moving average and breaks the upper Bollinger Band. 2. Exit with a profit or loss if price moves below its 30-day moving average and penetrates a lower Bollinger Band set one standard deviation away (instead of the usual two). Reverse the rules for short trades. Money management 1. Risk the following percentages of available equity per market: 2 percent for Australian dollar, British pound, Canadian dollar, Dollar index and Swiss franc, and 4 percent for Japanese yen, D-mark and Euro. (The yen and the Euro are traded with twice the risk because they are the most liquid currencies.) 2. The number of contracts to trade (CT) is calculated with the following formula: CT = (AC * PR) / (R * PV) where AC = Available capital PR = Percent risked R = Distance between entry price and exit price (stop-loss). PV = Dollar value of a one-point move. Test period: November 1992 to June 2002 Test data: Daily futures prices for eight currency futures: Japanese yen, Australian dollar, Canada dollar, British pound, Dollar index, Swiss franc, and D-mark (until Dec. 31, 1999)/Euro (after Dec. 31, 1999). Starting equity: $1 million (nominal). Test results: If there ever was a system built for the currency markets, this is it. The reason is the smooth, long-term trends currencies sometimes exhibit, probably because they are mostly influenced by the global, long-term economical and political climate. In contrast, the stock market is very sensitive to all other markets; while the stock market cares a great deal about the currency market, the currency market doesn’t care all that much about the stock market.

EQUITY CURVE 5,000,000 4,500,000 4,000,000

Account balance ($)

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 system’s 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

ROLLING TIME WINDOW RETURN ANALYSIS Cumulative 12 24 36 48 60 months months months months months Most recent: 34.31% 58.39% 65.73% 114.82% 138.14% Average: 15.07% 34.15% 55.68% 80.53% 109.16% Best: 74.75% 76.50% 108.66% 137.94% 202.94% Worst: -28.10% -1.33% 4.12% 28.76% 38.77% St. dev.: 18.17% 16.26% 23.27% 22.74% 37.29% Annualized 12 24 36 48 60 months months months months months Most recent: 34.31% 25.85% 18.34% 21.06% 18.95% Average: 15.07% 15.82% 15.90% 15.91% 15.90% Best: 74.75% 32.86% 27.78% 24.20% 24.82% Worst: -28.10% -0.67% 1.36% 6.52% 6.77% St. dev: 18.17% 7.82% 7.22% 5.26% 6.54% 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

www.activetradermag.com • October 2002 • ACTIVE TRADER

TRADING Strategies

Better breakout trading: THE NOISE CHANNEL SYSTEM

All breakout traders have to deal with the reality of false moves BY DENNIS MEYERS, PH.D.

and whipsaws. The noise channel breakout system shows how a filter

P

rice trends begin with a breakout of a previous high or previous low. Unfortunately, many breakouts are random — mere market noise. False moves and reversals can repeatedly whipsaw traders who act immediately on typical breakout signals. As a result, traders sometimes attempt to use filters to improve the odds of catching a successful breakout trend. One example of a simple filter is to wait for consecutive closes above or below a breakout level. Another example is waiting for price to penetrate a breakout level by x percent or points before acting on the signal. The following discussion will analyze a variation on the simple channel breakout system that uses the latter type of filter to minimize whipsaws on an intraday basis. The strategy will be tested on International Business Machines (IBM). The discussion is broken into two parts, covering 1) the system rules and data selection and 2) testing procedures. This will give you the necessary tools for performing similar research and tests on other markets.

The noise channel breakout system The basic system we will use here is a fairly simple and effective breakout system that has been in the public domain for many years: the channel breakout system, which 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.

can improve the performance of intraday breakout trading. In the tests that illustrate this strategy, we’ll use five-minute bars of IBM from Feb. 21 to April 6. (For an important point on testing stock trading strategies, see “A note on price data and dividends,” p. 75). Intraday data has a high noise level, meaning it contains a great deal of random price movement that looks significant but turns out to be meaningless. 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 such random movement, we will add a noise filter, designated by the symbol f, to the basic channel breakout system. There are three system parameters to find: • 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. The rules for the resulting noise channel breakout system (NCBS) are: Buy rule: If price crosses above the highest high of the last n

bars (nhi) by an amount greater than or equal to f, buy at market. For example, if n = 20 and f = 2 (points), you would go long when price moved 2 points above the highest high of the last 20 bars. In addition, when short, and when calculating the highest high price (hhp), it cannot be higher than the previously calculated hhp as previous highs are dropped out of the lookback window. Otherwise, a situation can occur where there is a higher hhp without the price filter f being hit. Therefore, when short the stock, the hhp can only stay the same or go lower. It cannot go higher. Sell rule: If price crosses below the lowest low price of last n bars (nlo) minus an amount greater than or equal to f, sell at market. In addition, when long and when calculating the lowest low price (llp), it cannot be lower than the previous calculated llp as previous lows are dropped out of the lookback window. Again, to avoid the situation where a lower llp occurs without the price filter f being hit, when long the stock, the llp can only stay the same or go higher. It cannot go lower. Exit rule: Close the position five minutes before the NYSE close (no trades are carried overnight).

stable — i.e., the profits, wins and drawdowns should not change much as the parameters move by a small amount away from their optimum values. In other words, the system

TABLE 1 OPTIMUM PARAMETER VALUES FOR TEST DATA Start date

End date

nhi

nlo

f

2/21/01

3/23/01

8

4

1

2/28/01

3/30/01

8

4

1

TABLE 2A TEST PERIOD 1 Performance summary for noise channel breakout system: IBM, five-minute bars from Feb. 21 to March 23. Statistics based upon trading 1,000 shares of IBM. Performance summary:

All trades

Total net profit ($):

13,890

Open position P/L ($):

Gross profit ($):

39,260

Gross loss ($):

Total no. of trades:

48

Number winning trades:

26

Percent profitable (%): Number losing trades:

0 -25,370 54 22

Largest winning trade ($):

5,940

Largest losing trade ($):

-2,060

Average winning trade ($):

1,510

Average losing trade ($):

-1,153.18

Ratio avg. win/avg. loss:

1.309

Avg. trade(win & loss) ($):

289.38

Max. consec. winners:

4

Max. consec. losers:

3

Avg. no. bars in winners:

39

Avg. no. bars in losers:

21

Max. no. contracts held:

1

Max intraday drawdown ($):

-8,470

Profit factor:

1.547

Testing the strategy

TABLE 2B TEST PERIOD 2

The “walk-forward testing” approach will be used to test this strategy because of the volatile nature of intraday stock prices. Intraday price dynamics are constantly changing because of economic surprises, events and trader sentiment. Also, the time of year — such as the season, holidays, vacation time, etc. — affects the character of intraday markets. As a result, tests performed on intraday data three months ago may no longer be representative of today’s intraday price action. For more information on walkforward testing and how it was used for this strategy, see “Proper system testing,.” The best parameters will be defined as those values that generate the best net profits combined with the minimum drawdown and minimum largest losing trades. In addition, the results should be

Performance summary for noise channel breakout system: IBM, five-minute bars from Feb. 28 to March 30. Statistics based upon trading 1,000 shares of IBM.

43

Performance summary:

All trades

Total net profit ($):

10,490

Open position P/L ($):

Gross profit ($):

35,500

Gross loss ($):

0 -25,010

Total no. of trades:

47

Percent profitable (%):

47

Number winning trades:

22

Number losing trades:

25

Largest winning trade ($):

5,940

Largest losing trade ($):

-1,840

Average winning trade ($):

1,613.64

Average losing trade ($):

-1,000.40

Ratio avg. win/avg. loss: Max. consec. winners: Avg. no. bars in winners:

1.613

Avg. trade(win & loss) ($):

223.191

3

Max. consec. losers:

3

39

Avg. no. bars in losers:

26

Max. no. contracts held:

1

Max. intraday drawdown ($):

-9,660

Profit factor:

1.419

Source: TradeStation by TradeStation Group Inc.

www.activetradermag.com • September 2001 • ACTIVE TRADER

performance using an nhi of 10 bars should be similar to that using nine bars or 11 bars. Also, in choosing the “best” parameters, we considered only those results with four or less maximum consecutive losses.

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

from March 26 to April 6. The trades in this time period are the out-of-sample trades

generated from the optimized parameters from the two test sections of Feb 21 to

TABLE 3 OUT-OF-SAMPLE RESULTS Combined walk-forward out-of-sample performance summary for the noise channel breakout system: IBM five-minute bars from March 26 to April 6. Statistics based upon trading 1,000 shares of IBM. Performance summary:

All trades

Total net profit ($):

8,390

Open position P/L ($):

Gross profit ($):

14,460

Gross loss ($):

Total no. of trades:

16

Number winning trades:

8

0 -6,070

Percent profitable (%):

50

Number losing trades:

8

Largest winning trade ($):

4,000

Largest losing trade ($):

-1,350

Average winning trade ($):

1,807.50

Average losing trade ($):

-758.75

Avg. trade(win & loss) ($):

524.38

Ratio avg. win/avg. loss:

2.382

Max. consec. winners:

5

Max. consec. losers:

3

Avg. no. bars in winners:

54

Avg. no. bars in losers:

37

Max. no. contracts held:

1

Max. intraday drawdown ($):

-4,480

Profit factor:

2.382

Source: TradeStation by TradeStation Group Inc.

TABLE 4 TRADE-BY-TRADE SUMMARY This trade summary for the out-of-sample test (five-minute bars, March 26 to April 6) of the noise channel breakout system shows the strategy actually worked better on the short side than the long side. Entry Date

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%

0

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

0

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

0

10:00

4/4/01

9:45

Buy

92.00

4/4/01

13:50

92.00

49

0

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

8

(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

ACTIVE TRADER • September 2001 • www.activetradermag.com

44

A note on price data and dividends

A

n overlooked aspect of testing a stock trading strategy is the effect of dividends. For example, IBM pays dividends on a quarterly basis, usually on the “dividend payable dates” of March 10, June 10, Sept. 10 and Dec. 10. On the “Ex-dividend dates” (approximately one month before the payable date), the price of the stock is adjusted down by the value of the dividend. Thus, over the course of a year, IBM has a small downward price bias equal to the amount of the yearly dividend. If you were an owner of IBM, you would receive those dividends in cash, making up for the small downward bias. However, when developing and testing a system using historical stock data, prices are not adjusted for dividend payments. This creates a small distortion in parameter selection and forward-adjusted results. Because no dividends were paid in the data sample used for the test in this article, no adjustment needs to be made. However, if the intraday time period fell on an ex-dividend date, an adjustment would have to be made to avoid distortion.

March 23 and Feb. 28 to March 30. Figure 1 is a five-minute chart with the noise channel superimposed, as well as some of the buy and sell signals from the Table 4 trade-by-trade summary.

Breaking down the numbers With respect to average winning and losing trades, drawdowns and profit factor, the out-of-sample performance (Table 3) was better than the test sample performance (Tables 2a and 2b) The better performance of the out-of-sample section could have been coincidental, but it does indicate that four weeks of test data was enough to capture the intraday price dynamics of this stock.

Proper system testing

W

hen testing any trading strategy, the important point is how well it will perform on price data it has not been optimized on — that is, out-of-sample data. In short, without out-of-sample testing, it’s nothing more than a hope and a prayer to believe that system performance in the future will be anywhere near the optimized performance. For example, it’s possible to take a trading strategy with four independent variables, or parameters, and with hindsight, find the values for each of them that give the best (optimized) results on a specific historical period — say, the last three years (using daily price data). However, these optimized parameter values have, in essence, been cherry-picked for this particular data period (a process known as “curve-fitting”), and are unlikely to perform as well on other historical test periods, or in actual trading in the future. A walk-forward testing procedure was applied to the noise channel breakout system as follows: Five-minute bars from a period of four weeks from the start of the test period — Feb. 21 to March 23 — were chosen and system parameter values were found through optimization on this intraday data segment. In other words, the “best-performing” system parameters (e.g., number of days in lookback period, noise filter value) were determined by testing a range of values for each. At this stage of system development, the only thing indicated by the optimum values in the test portion is that the data has been “curve-fitted” as best it can with this system. Without further testing on out-of-sample data, there is no way to tell if the system will work in the future.

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, it’s almost impossible not to get an excellent fit with great statistical results.

www.activetradermag.com • September 2001 • ACTIVE TRADER

opening surprises. Overall, traded on IBM, the NCBS did a good job of minimizing the whipsaw losses prevalent in breakout trading systems and maximizing the profits from major intraday trend moves.

The out-of-sample trade summary (Table 4) shows the system did better on short trades than it did on long trades. On one hand, this could indicate a “negative” bias for the system. On the other hand, given the current bear market environment, the ability to cash in on the short side has value. There were no big winners or big losers, indicating steady returns. Average wins were 2.4 times average losses in the out-of-sample section. Figure 1 shows how the system was able to efficiently capture intraday trends in IBM. Also, the system constraint of not carrying positions overnight eliminated many negative

dures and determine the appropriate parameters for each. Every market has subtle differences because the participants vary from market to market. Also, market activity can change over time. Consequently, you should continue to perform walk-forward testing to determine if there is a shift in the system’s effectiveness and whether better parameters have emerged. Any trading method should be tested before you risk capital on the technique. Granted, there is a considerable amount of work involved, but without taking the time to adequately research a technique, the chances of success are low. 

Building on the results To use this system in real-time trading, at least 10 additional test and out-of-sample windows should be examined to ensure the performance summarized here was not the result of chance. To determine if this approach can be used on other stocks or markets it would be necessary to follow the same proce-

FIGURE 1 NOISE CHANNEL AND TRADE SIGNALS A few of the buy and sell signals generated by the noise channel breakout system are shown. The system successfully captured intraday trends. International Business Machine (IBM), five-minute 101

100

99

-1

98

97

96

95 1 94

93 3/26

11:20 12:15 1:10 2:05 3:00

3/27

11:15 12:10 1:05 2:00 2:55

3/28

11:10 12:05 1:00 1:55 2:50

Source: TradeStation by TradeStation Group

ACTIVE TRADER • September 2001 • www.activetradermag.com

46

TRADING Strategies

The long and short of it: The Noise Channel Breakout SYSTEM 2

BY DENNIS MEYERS, PH.D.

A

lthough price breakouts are the basis for many trading approaches, breakout systems are plagued by false signals — when price initially breaks out, triggering a buy or sell, but quickly retraces, resulting in a losing trade. To combat this problem, traders often apply filters to breakout systems, delaying trade entry until the initial breakout has been confirmed by a price move of a certain size or duration in the direction of the breakout. “Better breakout trading: The noise channel breakout system“ (Active Trader, September 2001, p. 70) showed how a simple channel breakout system, with an additional noise filter to minimize whipsaws, could be developed to trade IBM on an intraday basis using five-minute bars. The noise filter delays taking a breakout signal until the market provides some confirmation the breakout is sustainable, thus avoiding false breakouts. One aspect the original noise channel breakout system (NCBS) did not address is whether to treat the long and short sides of the market the same — that is, whether the filter should be different for long and short trades, since uptrends and downtrends have different characteristics.

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, we’ll 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

Traders often use additional rules or filters to prevent being whipsawed by breakout trading strategies. Find out if using different filters for long and short trades improves the performance of an intraday breakout strategy.

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.

The Noise Channel Breakout System 2 The Noise Channel Breakout System 2 (NCBS-2) uses different filter values (f, from the original system) for the long and short sides of the market. As a result, there are four system parameters for the NCBS-2: • 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).

ACTIVE TRADER • October 2001 • www.activetradermag.com

WALK-FORWARD: Proper system testing

W

hen testing any trading strategy, the important point is how well it will perform on data on which it has not been optimized — that is, out-of-sample data. If a certain system is first tested on a “sample” piece of historical price data (say, daily bars from 1993 up to 1998), the system’s performance results have no implication outside this sample data set; all you know is how well your system parameters performed during this particular period. To get an idea of how the system might actually perform, the system parameters used for the sample data should be applied to different “out-of-sample” price data (say, daily bars from 1998 to the present). This “walk-forward process” simulates the application of a system to future data, as would occur in actual trading. In short, without out-of-sample testing, it’s nothing more than hope to believe that system performance in the future will be anywhere near the optimized performance. For example, it’s possible to take a trading strategy with four independent variables, or parameters, and with hindsight, find the values for each of them that give the best (optimized) results on a specific historical period — say, the last three years (using daily price data). However, these optimized parameter values have been, in essence, cherry-picked for this particular data period (a process known as “curve-fitting”), and are unlikely to perform as well on other historical test periods, or in actual trading in the future. An important (but unspoken) point in walk-forward testing is that if you cannot get good results in the out-ofsample data segments, real-time system performance will be random.

48

• xoU, which is the amount price must exceed the hhp to trigger a buy signal. • xoD, which is the amount price must fall below the llp to trigger a sell signal.

Think of the symbols xoU and xoD as the “crossover Up” and “crossover Down” values. The logic behind modifying the filter values is because market behavior associated with buys and sells is quite different, TABLE 1 OPTIMUM PARAMETER VALUES FOR TEST DATA the noise channels associated with buys and sells should be independent of each other. The NCBS-2 rules are: Buy rule: If price crosses above the highest high price of the Start date End date nhi xoU nlo xoD last nhi bars by an amount greater then or equal to xoU, then buy at the market. In addition, when short, and when calculat2/21/01 3/23/01 8 1 4 1 ing the highest high price (hhp), the hhp can only stay the same or go lower than its most recent value, it cannot go higher. 2/28/01 3/30/01 18 1.25 12 0.25 Sell rule: If price crosses below the lowest low price of last nlo days by an amount of greater than or equal to xoD, then sell at the market. In FIGURE 1A TEST PERIOD 1 addition, when long and when calculating the lowest low price (llp), the llp can Performance summary for NCBS-2, IBM five-min. bars, Feb. 21 to March 23. only stay the same or go higher than its Statistics based upon buying and selling 1,000 shares of IBM. most recent value, it cannot go lower. Exit rule: Close any position five minPerformance summary: All trades utes before the New York Stock Exchange Total net profit ($): 13,890 Open position P/L ($): 0 close (no trades are carried overnight). Gross profit ($):

39,260

Gross loss ($):

-25,370

Total no. of trades:

48

Percent profitable (%):

54

Testing the strategy

Number winning trades:

26

Number losing trades:

22

As in last month’s article, “walk-forward” optimization will be used here. The same data will also be used so we can judge whether this new modification can improve performance. The walk-forward testing procedure was applied as follows: A four-week period from the start of the IBM five-minute bar data from Feb. 21 through March 23 was chosen and system parameter values were found through optimization on this intraday data segment. (Optimization refers to the search for the parameter values that give the best results.) It should be noted that in this stage of system development, the only thing indicated by the optimum values that are found in the test portion is that the data has been curve fitted as best it can with this system. Without further testing on out-of-sample data, there is no way to tell if the system will work in the future. The parameter values found were then applied to an out-of-sample period, in this case March 26 to March 30. This process was repeated by moving the test data window forward one week to Feb. 28 through March 30 and again finding the parameters values through optimization on this new data test window. The parameter values found were then applied to the next out-of-sample data set, which in this case was April 2 to April 6. See “Walkforward: Proper system testing” for addi-

Largest winning trade ($):

5,940

Largest losing trade ($):

-2,060

Average winning trade ($):

1,510

Average losing trade ($):

-1,153.18

Ratio avg. win/avg. loss:

1.309

Avg. trade(win & loss) ($):

289.38

Max. consec. winners:

4

Max. consec. losers:

3

Avg. no. bars in winners:

39

Avg. no. bars in losers:

21

Max. no. contracts held:

1

Max intraday drawdown ($):

-8,470

Profit factor:

1.547

FIGURE 1B TEST PERIOD 2 Performance summary for NCBS-2, IBM five-min. bars. Feb. 28 to March 30. Statistics based upon buying and selling 1,000 shares of IBM. Performance summary: All trades Total net profit ($):

9,640

Open position P/L ($):

Gross profit ($):

34,460

Gross loss ($):

Total no. of trades:

38

Percent profitable (%):

52.63

Number winning trades:

20

Number losing trades:

18

Largest winning trade ($):

5,350

Largest losing trade ($):

-3,400

Average winning trade ($):

1,723

Average losing trade ($):

-1,378.89

Ratio avg. win/avg. loss:

1.25

Avg. trade(win & loss) ($):

Max. consec. winners: Avg. no. bars in winners: Max. intraday drawdown ($): Profit factor:

253.68

3

Max. consec. losers:

2

48

Avg. no. bars in losers:

28

Max. no. contracts held:

1

-10,030 1.39

Source: TradeStation by TradeStation Group Inc.

44

0 -24,820

www.activetradermag.com • October 2001 • ACTIVE TRADER

tional information on optimization and walk-forward testing. Of the four system parameters to find (nhi, nlo, xoU and xoD), the “best” parameters are defined as those values that give the best net profits and best total winning bars/total losing bars ratio with the minimum drawdown and minimum largest losing trades. In addition, the results should be stable — e.g. the profits, wins and drawdowns should not change by much as the parameters move by a small amount away from their optimum values. Also, in choosing the best parameters, we considered only those parameter sets with maximum consecutive losses of four or less.

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.

FIGURE 2A TEST PERIOD 1 Combined walk-forward out-of-sample performance summary for NCBS-2, IBM five-min. bars, March 26 to April 6. Statistics based upon buying and selling 1,000 shares of IBM. Performance summary:

All trades

Total net profit ($):

8,650

Open position P/L ($):

Gross profit ($):

15,390

Gross loss ($):

0 -6,740

Total no. of trades:

15

Percent profitable (%):

0.47

Number winning trades:

7

Number losing trades:

8

Largest winning trade ($):

4,000

Largest losing trade ($):

-1,730

Average winning trade ($):

2,198.57

Average losing trade ($):

-842.50

Avg. trade(win & loss) ($):

576.67

Ratio avg. win/avg. loss: Max. consec. winners: Avg. no. bars in winners: Max intraday drawdown ($): Profit factor:

2.61 2

Max. consec. losers:

3

57

Avg. no. bars in losers:

38

Max. no. contracts held:

1

-5,660 2.28

FIGURE 2B TEST PERIOD 2 Combined walk-forward out-of-sample performance summary for NCBS, IBM five-min. bars, March 26 to April 6. Statistics based upon buying and selling 1,000 shares of IBM. Performance summary:

All trades

Total net profit ($):

8,390

Open position P/L ($):

Gross profit ($):

14,460

Gross loss ($):

Total no. of trades: Number winning trades:

16 8

Percent profitable (%): Number losing trades:

0 -6,070 50 8

Largest winning trade ($):

4,000

Largest losing trade ($):

Average winning trade ($):

1,807.50

Average losing trade ($):

-758.75

Avg. trade(win & loss) ($):

524.375

Ratio avg. win/avg. loss:

2.382

-1,350

Max. consec. winners:

5

Max. consec. losers:

3

Avg. no. bars in winners:

54

Avg. no. bars in losers:

37

Max. no. contracts held:

1

Max. intraday drawdown ($):

-4,480

Profit factor:

2.382

Source: TradeStation by TradeStation Group Inc.

ACTIVE TRADER • October 2001 • www.activetradermag.com

50

FIGURE 3 OUT-OF-SAMPLE TRADE BY TRADE SUMMARY IBM five-min.; NCBS-2; Trade size = 1,000 shares; March 26 to April 6 Entry date

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)

0

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

0

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

7

(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

Total Average Average 8,650 0.61% 1,493

(1,190) 10:00 (840)

14:35

(1,250) 11:40

(1,450) 12:00

Average (948)

Source: Meyers Analytics

FIGURE 4 OUT-OF-SAMPLE TRADE BY TRADE SUMMARY IBM five-min.; NCBS; Trade size = 1,000 shares; March 26 to April 6 Entry date

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)

0

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

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

8

(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

Total Average Average 8,390 0.55% 1,475

0

10:00

(1,890) 10:30 (500)

14:20

(1,960) 13:55 Average (911)

Source: Meyers Analytics 51

www.activetradermag.com • October 2001 • ACTIVE TRADER

FIGURE 5 NCBS-2 SIGNALS Trade signals for the NCBS-2 are shown on a five-minute chart of IBM. The blue and red lines are the long and short filter levels, respectively. International Business Machine (IBM), five-minute

101

0 100

-1

99

98

97

96

95

-1 1 0

0

94

93

4,000 2,500 1,000 500

9:55 10:50 11:45 12:40 1:35 2:30

3/27 10:50 11:45 12:40 1:35 2:30

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. It’s also instructive to compare Figure 3 with Figure 4 to ACTIVE TRADER • October 2001 • www.activetradermag.com

3/28 10:50 11:45 12:40 1:35 2:30

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 wasn’t 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

The multibar range BREAKOUT SYSTEM Breakouts of price channels can be profitable — if the volatility is there and you’re on the right side of the trade. This stop-and-reverse system tries to capture intraday trends in the S&P E-Mini contract by recognizing differences in the characteristics of up moves and down moves.

BY DENNIS MEYERS, PH.D. FIGURE 1 TRADESTATION CODE FOR THE MULTIBAR RANGE BREAKOUT SYSTEM {Strategy: #MultiBarRangeBO} Input: n(45),bx(0.45),m(15),sx(0.45),XTime(1515); vars: hhv1(h),llv1(l),hhv2(h),llv2(l),ii(0),xb(c),xs(c); hhv1=h; llv1=l; for ii=1 to n-1 begin if h[ii]>hhv1 then hhv1=h[ii]; if l[ii]hhv2 then hhv2=h[ii]; if l[ii]
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF