Реферат Курсовая Конспект
Beyond Technical Analysis - раздел Литература, Beyond Technical Analysis Beyond Technical Analysis: H...
|
Beyond Technical Analysis
Beyond Technical Analysis:
How to Develop and Implement a Winning Trading System
Tushar S. Chande, PhD
John Wiley 61 Sons, Inc.New York • Chichester • Brisbane • Toronto • Singapore • Weinheim
This text is printed on acid-free paper. Copyright © 1997 by Tushar S. Chande. Published by John Wiley & Sons, Inc.
Data Scrambling is a trademark of Tushar S. Chande.
TradeStadon, System Writer Plus, and Power Editor are trademarks of
Omega Research, Inc.
Excel is a registered trademark of Microsoft Corporation.
Continuous Contractor is a trademark of TechTools, Inc.
Portfolio Analyzer is a trademark of Tom Berry.
All rights reserved. Printed simultaneously in Canada.
Reproduction or translation of any part of this work beyond that permitted by Section 107 or 108 of the 1976 United States Copyright Act without the permission of the copyright holder is unlawful. Requests for permission or further information should be addressed to the Permissions Department of John Wiley & Sons.
This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If legal advice or other expert assistance is required, the services of a competent professional person should be sought.
Library of Congress Cataloging in Publicaton Data:
Chande, Tushar S., 1958-
Beyond technical analysis : how to develop & implement a winning trading system / Tushar S. Chande.
Includes index.
ISBN 0-471-16188-8 (cloth : alk. paper)
1. Investment analysis. I. Tide. II. Series. HG4529.C488 1997 332.6—dc20 96-34436
Printed in the United States of America 10 98765432
Contents
Preface xi
Acknowledgments xiii
Developing and Implementing
Trading Systems 1
Introduction 1
The Usual Disclaimer 3
What Is a Trading System? 3
Comparison: Discretionary versus Mechanical System Trader 4
Why Should You Use a Trading System? 5 Robust Trading Systems: TOPS COLA 6 How Do You Implement a Trading System? 7 Who Wins? Who Loses? 8 Beyond Technical Analysis 9
Principles of Trading System Design 11
Introduction 11
What Are Your Trading Beliefs? 12
Six Cardinal Rules 14
Rule 1: Positive Expectation 15
Rule 2: A Small Number of Rules 17
viii Contents
Rule 3: Robust Trading Rules 22 Rule 4: Trading Multiple Contracts 29
Rule 5: Risk Control, Money Management, and Portfolio Design 32
Rule 6: Fully Mechanical System 36 Summary 37
Foundations of System Design 39
Introduction 39
Diagnosing Market Trends 40
To Follow the Trend or Not? 44
To Optimize or Not to Optimize? 48
Initial Stop: Solution or Problem? 52
Does Your Design Control Risks? 60
Data! Handle with Care! 64
Choosing Orders for Entries and Exits 66
Understanding Summary of Test Results 67
What the Performance Summary Does Not Show 70
A Reality Check 71
Developing Trading System Variations 147
Introduction 147
Channel Breakout on Close with Trailing Stops 149
Channel Breakout on Close with Volatility Exit 152
Channel Breakout with 20-Tick Barrier 155
Channel Breakout System with Inside Volatility Barrier 159
Statistical Significance of Channel Breakout Variations 161
Two ADX Variations 165
The Pullback System 168
The Long Bomb — A Pattern-based System 173
Summary 177
Equity Curve Analysis 179
Introduction 179
Measuring the "Smoothness" of the Equity Curve 180
Effect of Exits and Portfolio Strategies on Equity Curves 186
Analysis of Monthly Equity Changes 194 Effect of Filtering on the Equity Curve 200 Summary 204
Ideas for Money Management 207
Introduction 207
The Risk of Ruin 208
Interaction: System Design and Money Management 212
Projecting Drawdowns 218
Changing Bet Size after Winning or Losing 221
Summary 224
x Contents
Data Scrambling 227
Introduction 227
What You Really Want to Know about Your System 227
Past Is Prolog: Sampling with Replacement 229
Data Scrambling: All the Synthetic Data You'll Ever Need 231
Testing a Volatility System on Synthetic Data 236 Summary 239
A System for Trading 241
Introduction 241 The Problem with Testing 242 Paper Trading: Pros and Cons 242 Do You Believe in Your System? 243 Time Is Your Ally 244 No Exceptions 245 Full Traceability 245
"Guaranteed" Entry into Major Trends 246 Starting Up 247 Risk Control 248 Do You Have a Plan? 248 How Will You Monitor Compliance? 249 Get It Off Your Chest! 249 Focus on Your Trading 250 Trading with Your Head and Heart 250 Summary 252
SPZ5 Dally Close with OLS Line
CLOSE LR1 |
40 60 80 Days since 08/01/95
Figure 2.1 SScP-500 closing data with simple linear regression straight line.
Rule 2: A Small Number of Rules19
SPZ5 dally close with 5th order regression
MIDD follows same pattern as profits
Effect of delayed entry on profits: 3/12 SMAXO
Comparison of equity curves: DM and SF
-DM -SF |
Date
Figure 2.9 Swiss franc and deutsche mark equity curves are highly correlated at 83 percent.
Rule 5: Risk Control, Money Management, and Portfolio Design 35
contract each of SF and DM, but your profits would have been $63,850 trading two contracts of DM and $57,388 trading two contracts of SF.
Note one important difference between the two cases. Since the two markets may have negative correlation from time to time, the drawdown for both SF and DM together may be in between trading two contracts of just DM or SF. For example, the drawdown for SF and DM in this case was -$10,186 versus -$22,375 for two DM contracts and -$9,950 for two SF contracts. Hence, the benefits of trading correlated markets are relatively small. Thus, it may be better to trade uncorrelated or weakly correlated markets in the same portfolio.
The benefits of adding usually unrelated markets to a portfolio can be illustrated by an example of trading the Swiss franc (SF), cotton (CT) and 10-year Treasury note (TY) in a single account, using the same dual moving average system as above. The paper profits from trading three SF contracts add up to $86,801 versus $85,683 for SF plus TY and CT. The equity curve for the two combinations is shown in Figure 2.10. The smoothness of the two curves can be compared by using linear regression analysis to calculate the standard error (SE) of the daily equity
Simulated "Jagged" equity curve
Percentage of Days Percentage of Days
Max imum Maximum
Paper Number Percent- Largest Biggest Consecu- Intraday
20 31,238 -2,200 -1,538 1,863 650 25 28,275 -2,475 -3,112 -488 -2,300 30 24,175 338 -300 2,325 2,113 35 18,088 338 63 2,175 1,963 40 15,475 338 -525 2,625 4,000 45 7,950 338 -4,363 2,038 3,600 50 7,013 338 -4,363 -1,800 -238
50 Foundations of System Design
Table 3.7 Data showing that relative rankings from the past do not predict future relative ranks
Number of trades for 20-day CHBOC on Coffee
Initial stop ($)
Figure 3.5 The number of trades drops and levels off as we loosen the initial stop.
Initial Stop: Solution or Problem? 57
Variation In biggest losing trade: 20-day CHBOC on Coffee
CM CM CO CO "tf T 1^ 10 <D tO f*- h-.
-1000
-2000
-7000
-8000
-9000
Initial stop ($)
Figure 3.7 The worst losing trade increases as we loosen the stop.
try to take the long-term view when you set your stops. If you use a constant stop based on system design, then use loose stops. If you set the stop differently for each trade, then you have probably mastered the fine art of placing stops.
The risk of being stopped out is highest near trade inception, as shown by the calculations in Table 3.11, page 60. This table shows the effect on the length of the average losing trade of using no stop, a $1,500 stop, and a variable stop. A simple 20-day CHBOC model, with no exits other than an initial money management stop, is used, allowing $100 for slippage and commissions. The tests were over a 6-year period commencing May 26, 1989, using continuous contracts.
The data in Table 3.11 show that inserting an initial money management stop of $1,500 reduced the length of the average losing trade by approximately 40 percent to 17 days from 28 days. These calculations confirm that the risk of being stopped out is highest near trade inception. The average winning trade was typically 2 to 3 times longer than the average losing trade.
Initial Stop: Solution or Problem? 59
Number
Frequency distribution of 65sma-3cc trades
0 0 0 0 0 0 Q Q Q 0 Q 0 Q 0 Q 0
in o m q in o i" q u) o u> o w> o in o
h- 5 cm in f^- o cm in cj p h- i/> cm Q f^ "3
<y <a- co cm ••- ••- ' ••- cQ cm co ^t in m <o
Bin width = $250
Figure 4.5 Histogram of all 2,400 trades for the 65sma-3cc trading system.
The 65sma-3cc Trend-Following System 83
65sma-3cc trades. A histogram of all 2,400 trades shows the distribution of trade profits and losses (see Figures 4.5 and 4.6). There are more large winners than large losers, and many small losers. Remember that these results were calculated without using an initial money management stop. Most of the trades are bunched between -$3,000 and $2,000, with the highest frequency near zero. There are few losing trades worse than -$5,000, balanced by even more trades with profits greater than $5,000. An initial money management stop will clean up the negative part of this histogram.
Thus, it should be obvious that most of the profits come from a relatively small number of trades. In Figure 4.6, 12.5 percent of the trades are seen to have closed-out profit greater than $3,000. Be aware that if you get out too soon, you are likely to miss one of 100 or so (4 percent) of the mega-trades that make trend-following worth the aggravation.
Many measurements follow what is called a standard normal distribution. For example, if you measured the diameter of ball bearings, the
Maximum adverse excursion for 777 winning trades of 65sma-3cc system
500 -
n n n
§o o 10 0 r-- in CM CM |
10 0 10 0 10
I-- 10 CM 0 1^
Maximum loss ($)
Figure 4.10 Analysis of 777 winning trades: maximum loss in trades that were closed out at a profit. This is also known as the maximum adverse excursion plot.
About 500 (64 percent) of the trades were immediately profitable, with a loss during the trade of less than -$250. Another 100 trades showed drawdowns of less than -$500.
Thus, almost 77 percent of the trades showed a loss of -$500 or less during their evolution. There were very few trades that showed losses greater than -$1,750 and then closed out at a profit. This suggests that we could set an initial stop at $1,000 and capture almost 88 percent of the winning trades. This is a realistic way to pick the point at which a mechanical initial money management stop could be placed.
The same information can be viewed as a cumulative frequency chart to see how many trades achieved a certain profit target (see Figure 4.11). This type of chart shows what proportion of trades had a maximum favorable excursion of, say, $500. It shows, for example, that 50 percent of trades had reached a $1,000 profit target, and so on.
In summary, the 65sma-3cc system test over 20 years of data and 23 markets showed it is a robust and profitable system that makes money in trending periods. Since we tested the system without any initial
88 Developing New Trading Systems
Variation In profits and drawdown with volatility-based stop for US Bond market
S o -20000 -40000 -60000 |
-Profits •MIDD |
Frequency Distribution of 1311 T-AT Trades
§OOOOOOOOOOOOQOQQQOQQ !BQinQ(Boii5esiBe!BeC>Qu5eiBQpS eiBi~-ScM!Si'»ScMin<Mol~-B5cMQr-.iotMo ^.tpin^-^-coN^T^ ' »- cMCMco'»S5m<oi-<o
Bin Size = $250
Figure 431 Frequency distribution of T-AT trades showing a spike at the $5,000 initial stop and at trades with profit greater than $8,000.
button for the 65sma-3cc system (see Figure 4.5). It also shows a spike near the $5,000 initial stop. Like the 65sma-3cc distribution, it also shows a spike for trades with big profits. Figure 4.32 shows this distribution normalized and compared to a fitted normal distribution. It is immediately clear that the T-AT trade distribution has "fat" tails compared to the normal distribution. Thus, the probability of a trade far from the center is much greater than the corresponding normal distribution. The tail on the profits side is fatter than on the losing side, suggesting that the entries are working well. Observe how the initial stop cuts off losing trades. However, there is no such cutoff on the profit side, as seen by the spike at the right edge of the distribution. This is the TOPS COLA principle introduced in chapter 1 applied to a trading system in practice.
In summary, the T-AT system illustrates how to develop a system that automatically adjusts to market conditions. It differs from the 65sma-3cc system in that its initial stance is to take an antitrend position; the 65sma-3cc system always takes a position with the trend. A reversal condition switches the T-AT system from antitrend to a trend-
Gold-Bond Intermarket System123
T-AT Closed trades Frequency Distribution (N = 1311)
0.06 |
0.05 |
0.04 |
0.03 |
0.02 |
0.01 |
0.07
t^t-ooooooooo
Z score (standard deviations)
Figure 4.32 T-AT frequency distribution normalized and compared to a fitted normal distribution.
following mode. The objective reversal condition assures entry in the direction of a major trend, thus allowing you to take advantage of all market conditions.
Equity Curve for SP#1: VarA = 4, VarB = 3, MMS = $2,000, Exit = 20th close
80000 5 60000 a- S |
Time 1982-95
Figure4.38 Equity curve for bottom-fishing pattern (9/82-7/95) with X = 4 and Y = 3 (conservative trades) for SScP-500 data with rollovers. Initial money management stop was $2,000 per contract.
136 Developing New Trading Systems
Equity Curve: SP#1, VarA = 1, VarB = 0, MMS = $2,000, Exit on 20th day close
120000 100000 80000 S .•5' 60000 it 40000 - |
-20000 |
Equity Curve: SP#1 A=4 B=3 MMS=$2000 Case! =exit on 20th close Case2 = $1000 profit + 5day trailing stop
-10000 |
Figure 4.42 Equity curve for case 1 and case 2.
The generalized bottom-fishing pattern was profitable on 11 of 17 markets, including deutsche mark, Eurodollar, gold, Japanese yen, coffee, orange juice, Swiss franc, S&P-500, silver, 10-year T-notes, and the U.S. bond market. Thus the pattern also seems to work on markets that trend well or have good swing moves. The results are given in Table 4.21.
These data suggest that the bottom-fishing approach captures a basic trading pattern in the markets. The long test period and the profits on a variety of markets indicate that the idea is robust. The difference in performance between markets seems to be the amplitude of the movement after forming the pattern.
An extension of the test of the bottom-fishing pattern to stocks explores its performance over different time periods. Figures 4.43 (weekly) and 4.44 (monthly) illustrate how the generic bottom-fishing pattern works. Figure 4.43 has weekly data for Union Carbide showing how the pattern picked the bottoms in 1990 and 1991. The pattern also stayed long throughout the major uptrend. The pattern tests well with weekly data on stocks. Figure 4.44, page 140, has monthly data for Caterpillar
A Pattern for Bottom-Fishing139
Table 4.21 Results of testing the generic bottom-fishing pattern on other markets
Market | Profit (S) | Number of Trades | Percentage of Wins | Maximum Intraday Drawdown ($) | Profit Factor |
British pound | -17,694 | -6,403 | 0.92 | ||
Coffee | 86,740 | -62,251 | 1.36 | ||
Crude oil | -35,660 | -38,000 | 1.43 | ||
Eurodollar | 20,650 | -5,825 | 1.71 | ||
Gold | 7,510 | -40,000 | 1.06 | ||
Heating oil | -19,687 | -50,124 | 0.88 | ||
Japanese yen | 98,513 | -15,188 | 1.95 | ||
Live hogs | -17,853 | -22,1 76 | 0.83 | ||
Orange juice | 12,653 | -11,978 | 1.16 | ||
Silver | 121,970 | -54,550 | 1.81 | ||
Soybeans | -1 7,869 | -35,719 | 0.86 | ||
S&P-500 | 127,925 | ^3,065 | 1.64 | ||
Sugar | -23,660 | -34,166 | 0.75 | ||
Swiss franc | 64,450 | -28,387 | 1.48 |
91 92 93 94 95 Figure 4.43 Example of generic bottom-fishing pattern on weekly stock data.
140 Developing New Trading Systems
9 90 91 92 93 94 95
Figure 4.44 Example of generic bottom-fishing pattern on monthly stock data.
Tractor. The bottom-fishing pattern responded to the 1992 bottom and stayed with the stock throughout the rally.
In summary, the bottom-fishing pattern-based system is a good example of a market-specific system. You can use it as a model to develop other pattern-based systems on the S&P-500 market. The pattern can be generalized successfully to other markets, including stocks. The bottom-fishing pattern also works across time periods such as daily, weekly, or monthly. Thus, the bottom-fishing pattern captures a fundamental pattern of price evolution.
– Конец работы –
Используемые теги: Beyond, Technical, Analysis0.063
Если Вам нужно дополнительный материал на эту тему, или Вы не нашли то, что искали, рекомендуем воспользоваться поиском по нашей базе работ: Beyond Technical Analysis
Если этот материал оказался полезным для Вас, Вы можете сохранить его на свою страничку в социальных сетях:
Твитнуть |
Новости и инфо для студентов