A Guide to Creating A Successful Algorithmic Trading Strategy
4.5/5
()
About this ebook
A Guide to Creating a Successful Algorithmic Trading Strategy provides the latest strategies from an industry guru to show you how to build your own system from the ground up. If you're looking to develop a successful career in algorithmic trading, this book has you covered from idea to execution as you learn to develop a trader's insight and turn it into profitable strategy. You'll discover your trading personality and use it as a jumping-off point to create the ideal algo system that works the way you work, so you can achieve your goals faster. Coverage includes learning to recognize opportunities and identify a sound premise, and detailed discussion on seasonal patterns, interest rate-based trends, volatility, weekly and monthly patterns, the 3-day cycle, and much more—with an emphasis on trading as the best teacher. By actually making trades, you concentrate your attention on the market, absorb the effects on your money, and quickly resolve problems that impact profits.
Algorithmic trading began as a "ridiculous" concept in the 1970s, then became an "unfair advantage" as it evolved into the lynchpin of a successful trading strategy. This book gives you the background you need to effectively reap the benefits of this important trading method.
- Navigate confusing markets
- Find the right trades and make them
- Build a successful algo trading system
- Turn insights into profitable strategies
Algorithmic trading strategies are everywhere, but they're not all equally valuable. It's far too easy to fall for something that worked brilliantly in the past, but with little hope of working in the future. A Guide to Creating a Successful Algorithmic Trading Strategy shows you how to choose the best, leave the rest, and make more money from your trades.
Related to A Guide to Creating A Successful Algorithmic Trading Strategy
Titles in the series (100)
The Four Biggest Mistakes in Option Trading Rating: 4 out of 5 stars4/5Option Volatility Trading Strategies Rating: 3 out of 5 stars3/5Big Money, Less Risk: Trade Options Rating: 0 out of 5 stars0 ratingsIntra-Day Trading Strategies: Proven Steps to Trading Profits Rating: 0 out of 5 stars0 ratingsSwing Trading Rating: 5 out of 5 stars5/5Breakthrough Strategies for Predicting Any Market: Charting Elliott Wave, Lucas, Fibonacci and Time for Profit Rating: 0 out of 5 stars0 ratingsThe Universal Principles of Successful Trading: Essential Knowledge for All Traders in All Markets Rating: 3 out of 5 stars3/5The New Trader's Tax Solution: Money-Saving Strategies for the Serious Investor Rating: 3 out of 5 stars3/5Intra-Day Trading Tactics: Pristine.com's Stategies for Seizing Short-Term Opportunities Rating: 0 out of 5 stars0 ratingsPower Trading: Winning Guerrilla, Micro, and Core Tactics Rating: 3 out of 5 stars3/5Harmonic Elliott Wave: The Case for Modification of R. N. Elliott's Impulsive Wave Structure Rating: 3 out of 5 stars3/512 Simple Technical Indicators: That Really Work Rating: 0 out of 5 stars0 ratingsStrategies for Profiting on Every Trade: Simple Lessons for Mastering the Market Rating: 5 out of 5 stars5/5Sector Trading Strategies Rating: 5 out of 5 stars5/5Full View Integrated Technical Analysis: A Systematic Approach to Active Stock Market Investing Rating: 0 out of 5 stars0 ratingsBest Practices for Investment Committees Rating: 0 out of 5 stars0 ratingsStock Market Wizards: Interviews with America's Top Stock Traders Rating: 0 out of 5 stars0 ratingsA Complete Guide to Technical Trading Tactics: How to Profit Using Pivot Points, Candlesticks & Other Indicators Rating: 0 out of 5 stars0 ratingsHit and Run Trading: The Short-Term Stock Traders' Bible Rating: 0 out of 5 stars0 ratingsMoney-Making Candlestick Patterns: Backtested for Proven Results Rating: 0 out of 5 stars0 ratingsTrading in the Zone: Maximizing Performance with Focus and Discipline Rating: 0 out of 5 stars0 ratingsJust a Trade a Day: Simple Ways to Profit from Predictable Market Moves Rating: 0 out of 5 stars0 ratingsBasic Option Volatility Strategies: Understanding Popular Pricing Models Rating: 0 out of 5 stars0 ratingsThe Psychology of Risk: Mastering Market Uncertainty Rating: 3 out of 5 stars3/5Trading Risk: Enhanced Profitability through Risk Control Rating: 4 out of 5 stars4/5Steidlmayer on Markets: Trading with Market Profile Rating: 3 out of 5 stars3/5How I Trade Options Rating: 3 out of 5 stars3/5LEAPS Trading Strategies: Powerful Techniques for Options Trading Success Rating: 0 out of 5 stars0 ratingsMcMillan on Options Rating: 3 out of 5 stars3/5
Related ebooks
Chart Patterns: After the Buy Rating: 5 out of 5 stars5/5Building Winning Algorithmic Trading Systems: A Trader's Journey From Data Mining to Monte Carlo Simulation to Live Trading Rating: 0 out of 5 stars0 ratingsProfessional Automated Trading: Theory and Practice Rating: 4 out of 5 stars4/5Alpha Trading: Profitable Strategies That Remove Directional Risk Rating: 2 out of 5 stars2/5Trading Rules that Work: The 28 Essential Lessons Every Trader Must Master Rating: 5 out of 5 stars5/5Trading Psychology 2.0: From Best Practices to Best Processes Rating: 4 out of 5 stars4/5Technical Trading Mastery: 7 Steps to Win With Logic Rating: 5 out of 5 stars5/5Algorithmic Trading: Winning Strategies and Their Rationale Rating: 3 out of 5 stars3/5Quantitative Trading: How to Build Your Own Algorithmic Trading Business Rating: 3 out of 5 stars3/5Study Guide for The New Trading for a Living Rating: 5 out of 5 stars5/5The Risk of Trading: Mastering the Most Important Element in Financial Speculation Rating: 0 out of 5 stars0 ratingsThe Ultimate Day Trader: How to Achieve Consistent Day Trading Profits in Stocks, Forex, and Commodities Rating: 4 out of 5 stars4/5The Wiley Trading Guide Rating: 0 out of 5 stars0 ratingsTradeStation Made Easy!: Using EasyLanguage to Build Profits with the World's Most Popular Trading Software Rating: 0 out of 5 stars0 ratingsSimple Profits from Swing Trading: The UndergroundTrader Swing Trading System Explained Rating: 0 out of 5 stars0 ratingsOptions Math for Traders: How To Pick the Best Option Strategies for Your Market Outlook Rating: 0 out of 5 stars0 ratingsBeat the Odds in Forex Trading: How to Identify and Profit from High Percentage Market Patterns Rating: 0 out of 5 stars0 ratingsTrading Systems 2nd edition: A new approach to system development and portfolio optimisation Rating: 5 out of 5 stars5/5Systematic Trading: A unique new method for designing trading and investing systems Rating: 4 out of 5 stars4/5Finding Alphas: A Quantitative Approach to Building Trading Strategies Rating: 4 out of 5 stars4/5Advanced Trading Rules Rating: 4 out of 5 stars4/5Learn Algorithmic Trading: Build and deploy algorithmic trading systems and strategies using Python and advanced data analysis Rating: 0 out of 5 stars0 ratingsAdaptive Analysis for Stocks Rating: 4 out of 5 stars4/5Algorithmic Trading Methods: Applications Using Advanced Statistics, Optimization, and Machine Learning Techniques Rating: 0 out of 5 stars0 ratingsAlgorithmic Trading Complete Self-Assessment Guide Rating: 4 out of 5 stars4/5Automated Stock Trading Systems: A Systematic Approach for Traders to Make Money in Bull, Bear and Sideways Rating: 5 out of 5 stars5/5Machine Trading: Deploying Computer Algorithms to Conquer the Markets Rating: 4 out of 5 stars4/5
Investments & Securities For You
Stock Investing For Dummies Rating: 5 out of 5 stars5/5Principles: Life and Work Rating: 4 out of 5 stars4/5Just Keep Buying: Proven ways to save money and build your wealth Rating: 5 out of 5 stars5/5The Little Book of Common Sense Investing: The Only Way to Guarantee Your Fair Share of Stock Market Returns Rating: 4 out of 5 stars4/5The Intelligent Investor, Rev. Ed: The Definitive Book on Value Investing Rating: 4 out of 5 stars4/5How to Invest: Masters on the Craft Rating: 4 out of 5 stars4/5Buy, Rehab, Rent, Refinance, Repeat: The BRRRR Rental Property Investment Strategy Made Simple Rating: 5 out of 5 stars5/5Buy Then Build: How Acquisition Entrepreneurs Outsmart the Startup Game Rating: 5 out of 5 stars5/5The Money Game Rating: 4 out of 5 stars4/5Girls That Invest: Your Guide to Financial Independence through Shares and Stocks Rating: 5 out of 5 stars5/5Long-Distance Real Estate Investing: How to Buy, Rehab, and Manage Out-of-State Rental Properties Rating: 5 out of 5 stars5/5How to Make Money in Stocks: A Winning System in Good Times and Bad, Fourth Edition Rating: 5 out of 5 stars5/5Real Estate by the Numbers: A Complete Reference Guide to Deal Analysis Rating: 0 out of 5 stars0 ratingsDay Trading For Dummies Rating: 3 out of 5 stars3/5Small and Mighty Real Estate Investor: How to Reach Financial Freedom with Fewer Rental Properties Rating: 0 out of 5 stars0 ratingsHow to Invest in Real Estate: The Ultimate Beginner's Guide to Getting Started Rating: 5 out of 5 stars5/5ABCs of Buying Rental Property: How You Can Achieve Financial Freedom in Five Years Rating: 5 out of 5 stars5/5
Reviews for A Guide to Creating A Successful Algorithmic Trading Strategy
3 ratings0 reviews
Book preview
A Guide to Creating A Successful Algorithmic Trading Strategy - Perry J. Kaufman
CHAPTER 1
A Brief Introduction: The Ground Rules
Everything should be made as simple as possible, but not simpler.
—Albert Einstein
If you haven’t heard it, a classic example of trading experience is the difference between a statistician and a trader. You flip a coin 99 times and it comes up heads each time. You ask the statistician, What are the odds that it will come up heads next time?
The statistician answers, 50:50.
You ask the trader the same question and he answers, 100 percent.
Surprised, you ask the trader, Why?
He responds, Because it couldn’t possibly be a fair coin. The odds of getting 99 heads in a row are too high to have happened by chance.
Experience transforms theory into reality.
When I first started trading using automated systems in the early 1970s, the very idea was demeaned by professional traders as ridiculous,
the market just doesn’t work that way,
you can’t make money if you don’t know the value of the stock.
Now that opinion seems to have been turned upside down. High frequency trading, the algorithmic trading system on steroids, has an unfair advantage,
it’s stealing money from the ordinary investor.
Times have changed, but attitudes have not.
MY OBJECTIVE
This is a no-frills book. It’s short because it just deals with the most important issues of developing a successful trading system and because you’re more likely to read it all. It is intended to be a painless lesson in reality, those critical steps that you learn over time, often by doing them wrong. For some, it will be a confirmation that you’re getting it right, and for others it may be an Aha!
moment. It would be more responsible, and more scientific, to verify each of my conclusions yourself. But, if you’re like me, you readily accept ideas that are reasonable and seem right, and you choose to believe them. I’ve been uncertain at times, but I rarely regret a decision that comes from common sense.
Each chapter contains, in my opinion, the best way to deal with the various aspects of creating a trading system. All of the steps are important, and doing them incorrectly will show up later in your trading account, perhaps too late. It’s better to spend a little extra time up front to increase your chances of success later on.
THE GROUND RULES
Before we get immersed in the details, there are some important items to define and disclose.
First, we all have biases. They are often found in what we don’t say rather than what we actually state. I see that when I watch the political commentary on television and also in the evening news. Everyone seems to have an agenda.
My own biases are toward fully automatic trading, which include all the good and bad of it. I also like macrotrend systems, stock and various other arbitrage, and some pattern recognition, among other methods that I can’t remember right now. I don’t like systems with a lot of rules and I’m suspicious of systems that work on only one market. I’m going to try to balance my examples to show short-term and long-term systems, but the reality is that there will probably be more about long-term trend following, which I believe is used by more traders, especially at the early stages when they are dangling their collective toes in the water.
THE PROCESS
The process of developing a trading strategy involves eight well-defined steps, shown in Figure 1.1. These should be clear, except for the marks on the left that show Change rules
and Failed.
From the top down, the trading idea comes first, then you need to get all the data that will be used to validate your strategy. You must have a trading platform to test your idea, which could be as simple as Excel, or as sophisticated as TradeStation. You enter your rules using that platform.
FIGURE 1.1 The Development Process
You begin testing using in-sample data (more about this in Chapters 10 and 11) and evaluate the results. If they are not what you want, go back and change the rules, then retest them using the in-sample data. Continue to do this until you’re satisfied with the results. Then test the strategy on out-of-sample data, which you’ve held aside and not used. If it works, and we’ll explain what works
means later, you’re ready to trade.
However, it doesn’t usually unfold that smoothly. When you use the out-of-sample data, the results are not as good as you expected. So you go back and change the rules. But now you no longer have the out-of-sample data that are needed to verify your work. Purists would say that, once you fail the out-of-sample test, then you need to discard the system and start with something new. But that never actually happens. We’re sure that the method still works, but we’ve overlooked something that now seems obvious, such as using volatility instead of fixed values for placing the stop-loss. Or, we should have added profit-taking.
There is a way out. When you’re all done testing and the results finally look good, you can paper trade. That way, you track the results with no money and see if they are close to your expectations. The problem is that it takes time and we’re usually impatient to make money—or in some cases, to lose money. Experience says that there are probably still changes to be made, so paper trading is your punishment for looking at the out-of-sample data more than once.
BASIC TRADING SYSTEMS
We’ll be using both trend-following and short-term systems as examples throughout this book, so a brief definition should be helpful.
The Trend System
A trend is most easily defined by a new high or a new low price, but a moving average is more common, so we’ll use a moving average as an example most often. There is some discussion of the difference between trending methods, primarily in Chapter 3. We’ll explain the most important features of a few different methods, but the differences aren’t as important as the way the trend concept works.
For a moving average system, we’ll define the buy-and-sell signals when the trend turns up and down, and not when the price penetrates the trendline. Once you have accepted the concept that the trendline gives you the trend direction (not a difficult concept to embrace), the trendline is the only important value. You can ignore the price for the purpose of generating buy-and-sell signals.
Short-Term Systems
While trend systems are mostly similar, short-term systems can be very different. Examples will focus on their common properties, such as volatility, risk, and costs, as well as frequently used rules, such as profit-taking and stops. Short-term trading systems can be more complex than trend following. We’ll discuss a number of pattern-based approaches as well as intraday breakouts.
With this brief background, let’s jump into the development of an algorithmic trading strategy.
CHAPTER 2
The Idea
Where do you get trading ideas? They’re everywhere, but they require your intuitive sense to recognize, and they must be easy to explain. You can’t find a successful trading system by combining indicators, time periods, patterns, and other techniques in a computer. You will find something that worked brilliantly in the past, but with little hope of it working in the future.
BEGIN AT THE BEGINNING
You must start with a sound premise. That could be:
Trends based on interest rate policy set by the Fed.
Seasonal patterns that exist in agriculture, airline stocks, vacation resorts, heating oil, and other stocks and commodities.
Exploiting the difference between two similar stocks, such as two chip manufacturers, pharmaceutical companies, or home builders. That’s called stock arbitrage, or pairs trading.
Buying or selling price volatility before an earnings report or after a price shock.
Fading an upgrade announcement by a major firm (old news by the time it prints on the screen).
Same-time-next-month patterns, when funds redeem and add to their positions.
The 3-day cycle, based on human nature, but dependable for 50 years.
Weekly patterns, such as, Up on Monday, down on Tuesday.
There are many others, but to recognize these opportunities you must trade. Trading is the best way to concentrate your attention on the market and absorb the effects (on your money) of economic reports, geopolitical events, and specific company news. With money in the market, your focus on price movement is greatly increased and you look to quickly resolve the problems that cause losses.
You can also read books on trading, listen to webinars, and attend lectures given by notable gurus. Many of these will provide good ideas, but none will give you a trading system you can start using today. Mostly, they will provide important knowledge in the margin.
That is, you might learn how to size a position or where to place a stop, but it is unlikely that anyone is going to hand you his or her best trading method, even if you’re paying big bucks to attend his or her session. You still have to learn the art of trading yourself.
THE IDEA MUST MATCH YOUR TRADING PERSONALITY
So it’s up to you to find a sound idea that is compatible with your way of trading—your trading personality. Some investors can put on a position and hold it for a year, others are out the moment the price goes the wrong way. Don’t force yourself to trade in a way that bothers you.
My wife and I are both traders, so in our house we talk markets every day. This can be frustrating for both of us because we have very different trading styles. For many years, she was an exchange member and floor trader. Operating as a traditional market-maker, she went long or short during the day, ending the day (usually) flat. For her, holding a trade for a long time means taking a position home overnight. Our opinion of market direction is often different because of our time frame. She will say, The market is crashing!
and I’ll look at a 3-point drop in the S&P over the past two hours and say, Where?
She still favors the short side because money is made faster and floor traders prefer to take the opposite side of the retail investor.
Not long after the 2008 financial crisis, we agreed (not a small achievement) that the battered market must certainly be offering a lifetime opportunity. We decided to diversify among sectors and take long-term positions in good companies representing energy, health care, and a few other areas we thought had sustained potential. Decisions were made and she set the positions.
The next week, four or five days after she allocated the assets, she came into my office with a Cheshire cat grin, saying, We’re out and we made a very good profit.
—Great.
I must have been mistaken about holding those positions for a year.
The lesson here is that it’s difficult to change your trading personality. If you’re a short-term trader, then find a short-term strategy. If you don’t like to look at the market every day, then use long-term