The Wiley Trading series features books by traders who have survived the market's ever changing temperament and have prosperedsome by reinventing systems, others by getting back to basics. Whether a novice trader, professional, or somewhere in between, these books will provide the advice and strategies needed to prosper today and well into the future. For more on this series, visit our Web site at www.WileyTrading.com.
Founded in 1807, John Wiley & Sons is the oldest independent publishing company in the United States. With offices in North America, Europe, Australia, and Asia, Wiley is globally committed to developing and marketing print and electronic products and services for our customers' professional and personal knowledge and understanding.
B UILDING W INNING
A LGORITHMIC
T RADING S YSTEMS
A Traders Journey from Data Mining to
Monte Carlo Simulation to Live Trading
Kevin J. Davey
Cover Design: Wiley
Cover Image: iStockphoto/Emilia_Szymanek
Copyright 2014 by Kevin J. Davey. All rights reserved.
Published by John Wiley & Sons, Inc., Hoboken, New Jersey.
Published simultaneously in Canada.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600, or on the Web at www.copyright.com. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing this book, they make no representations or warranties with respect to the accuracy or completeness of the contents of this book and specifically disclaim any implied warranties of merchantability or fitness for a particular purpose. No warranty may be created or extended by sales representatives or written sales materials. The advice and strategies contained herein may not be suitable for your situation. You should consult with a professional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages.
For general information on our other products and services or for technical support, please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993, or fax (317) 572-4002.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com.
Davey, Kevin, 1966
Building algorithmic trading systems, + website : a trader's journey from data mining to Monte Carlo simulation to live trading / Kevin Davey.
1 online resource. (Wiley trading)
Includes index.
ISBN 978-1-118-77891-3 (pdf) ISBN 978-1-118-77888-3 (epub) ISBN 978-1-118-77898-2 (pbk.) 1. Futures. 2. Portfolio management. 3. Investment analysis. 4. Monte Carlo method. 5. Electronic trading of securities. I. Title.
HG6024.A3
332.642028567 dc23
2014014899
To Amy, Owen, Kathryn, Andrew, and Guardian Angel Anthony
My love, my children, my life
ACKNOWLEDGMENTS
There are many people without whom this book, and my trading career, would not have been possible. First on the list are my Mom and Dad. They stressed self-reliance and taking responsibility for ones actions. These are great traits for everyone to have, and they are really critical for traders. I owe my start to them.
Of course, none of my success would have been possible without my great wife, Amy. Imagine a spouse who fully supported her husband as he walked away from a great career to become a trader, an endeavor where 90 percent of people fail. Her support has been 100 percent positive, and I cannot imagine surviving as a trader, and a person, without it. She is one in a million, and Im lucky to have found her.
Finally, this book would not be possible without the many traders and wannabe traders who have contacted me over the years. Realizing my words actually helped individuals avoid the many unscrupulous people in this industry gives me great joy. I hope reading this book helps you in the same way.
Happy Trading!
Kevin J. Davey
May 2014
ABOUT THE AUTHOR
Kevin Davey is a professional trader and a top-performing systems developer. He generated triple-digit annual returns 148 percent, 107 percent, and 112 percent in three consecutive World Cup of Futures Trading Championships using algorithmic trading systems. His web site, www.kjtradingsystems.com, provides trading systems, trading signals, and mentoring. He writes extensively in industry publications such as Futures Magazine and Active Trader and was featured as a Market Master in the book The Universal Principles of Successful Trading by Brent Penfold (Wiley, 2010). Active in social media, he has over 15,000 Twitter followers. An aerospace engineer and MBA by background, Davey has been an independent trader for over 20 years. Davey continues to trade full time and develop algorithmic trading strategies.
INTRODUCTION
I wanted to throw up. The bile in my stomach had reached an unsustainable level, but there was no bathroom near me. Speeding down the freeway at 75 miles per hour, with no exit in sight, Id have to swallow hard and accept my fate. I really wanted to just curl up and die. Well, not exactly. I wanted to vomit first, then curl up and die.
Was it trichinosis from eating pork not cooked to shoe leather consistency, as my Mom always predicted would happen? Nope. An undercooked juicy red hamburger laced with E. coli? Not exactly. It was meat that was the culprit, but in the form of live cattle. Live cattle futures, to be exact. Live cattle, all 40,000 pounds of them, had led to my sudden urge to vomit. Specifically, bovine spongiform encephalopathy, more commonly known as mad cow disease. I didnt have the disease, but my ill-fated speculative investment did.
This was at the end of December 2003, a month that had started with great personal and professional promise. I recently had been promoted to vice president of quality assurance at Argo-Tech, the midsize aerospace firm I was lucky enough to be part of, before it was bought out by a soulless mammoth corporation. I also had been honored as a 40 Under 40 recipient from Crains Cleveland Business magazinerecognized as one of Cleveland, Ohios, up-and-coming business stars under the age of 40. My futures trading account was doing pretty well, to the point where I felt confident I knew what I was doing (many times that feeling is soon followed by a slap in the face by the market, but I digress). Finally, my first child was on the way in a few months. All things considered, I was on a roll.
Next page