Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Machine Learning for Algorithmic Trading
Machine Learning for Algorithmic Trading

Machine Learning for Algorithmic Trading: Predictive models to extract signals from market and alternative data for systematic trading strategies with Python , Second Edition

eBook
€30.99 €34.99
Paperback
€43.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Machine Learning for Algorithmic Trading

Market and Fundamental Data – Sources and Techniques

Data has always been an essential driver of trading, and traders have long made efforts to gain an advantage from access to superior information. These efforts date back at least to the rumors that the House of Rothschild benefited handsomely from bond purchases upon advance news about the British victory at Waterloo, which was carried by pigeons across the channel.

Today, investments in faster data access take the shape of the Go West consortium of leading high-frequency trading (HFT) firms that connects the Chicago Mercantile Exchange (CME) with Tokyo. The round-trip latency between the CME and the BATS (Better Alternative Trading System) exchanges in New York has dropped to close to the theoretical limit of eight milliseconds as traders compete to exploit arbitrage opportunities. At the same time, regulators and exchanges have started to introduce speed bumps that slow down trading to limit the adverse effects on competition of uneven access to information.

Traditionally, investors mostly relied on publicly available market and fundamental data. Efforts to create or acquire private datasets, for example, through proprietary surveys, were limited. Conventional strategies focus on equity fundamentals and build financial models on reported financials, possibly combined with industry or macro data to project earnings per share and stock prices. Alternatively, they leverage technical analysis to extract signals from market data using indicators computed from price and volume information.

Machine learning (ML) algorithms promise to exploit market and fundamental data more efficiently than human-defined rules and heuristics, particularly when combined with alternative data, which is the topic of the next chapter. We will illustrate how to apply ML algorithms ranging from linear models to recurrent neural networks (RNNs) to market and fundamental data and generate tradeable signals.

This chapter introduces market and fundamental data sources and explains how they reflect the environment in which they are created. The details of the trading environment matter not only for the proper interpretation of market data but also for the design and execution of your strategy and the implementation of realistic backtesting simulations.

We also illustrate how to access and work with trading and financial statement data from various sources using Python.

In particular, this chapter will cover the following topics:

  • How market data reflects the structure of the trading environment
  • Working with trade and quote data at minute frequency
  • Reconstructing an order book from tick data using Nasdaq ITCH
  • Summarizing tick data using various types of bars
  • Working with eXtensible Business Reporting Language (XBRL)-encoded electronic filings
  • Parsing and combining market and fundamental data to create a price-to-earnings (P/E) series
  • How to access various market and fundamental data sources using Python

You can find the code samples for this chapter and links to additional resources in the corresponding directory of the GitHub repository. The notebooks include color versions of the images.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Design, train, and evaluate machine learning algorithms that underpin automated trading strategies
  • Create a research and strategy development process to apply predictive modeling to trading decisions
  • Leverage NLP and deep learning to extract tradeable signals from market and alternative data

Description

The explosive growth of digital data has boosted the demand for expertise in trading strategies that use machine learning (ML). This revised and expanded second edition enables you to build and evaluate sophisticated supervised, unsupervised, and reinforcement learning models. This book introduces end-to-end machine learning for the trading workflow, from the idea and feature engineering to model optimization, strategy design, and backtesting. It illustrates this by using examples ranging from linear models and tree-based ensembles to deep-learning techniques from cutting edge research. This edition shows how to work with market, fundamental, and alternative data, such as tick data, minute and daily bars, SEC filings, earnings call transcripts, financial news, or satellite images to generate tradeable signals. It illustrates how to engineer financial features or alpha factors that enable an ML model to predict returns from price data for US and international stocks and ETFs. It also shows how to assess the signal content of new features using Alphalens and SHAP values and includes a new appendix with over one hundred alpha factor examples. By the end, you will be proficient in translating ML model predictions into a trading strategy that operates at daily or intraday horizons, and in evaluating its performance.

Who is this book for?

If you are a data analyst, data scientist, Python developer, investment analyst, or portfolio manager interested in getting hands-on machine learning knowledge for trading, this book is for you. This book is for you if you want to learn how to extract value from a diverse set of data sources using machine learning to design your own systematic trading strategies. Some understanding of Python and machine learning techniques is required.

What you will learn

  • Leverage market, fundamental, and alternative text and image data
  • Research and evaluate alpha factors using statistics, Alphalens, and SHAP values
  • Implement machine learning techniques to solve investment and trading problems
  • Backtest and evaluate trading strategies based on machine learning using Zipline and Backtrader
  • Optimize portfolio risk and performance analysis using pandas, NumPy, and pyfolio
  • Create a pairs trading strategy based on cointegration for US equities and ETFs
  • Train a gradient boosting model to predict intraday returns using AlgoSeek s high-quality trades and quotes data

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 31, 2020
Length: 820 pages
Edition : 2nd
Language : English
ISBN-13 : 9781839216787
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 31, 2020
Length: 820 pages
Edition : 2nd
Language : English
ISBN-13 : 9781839216787
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 123.97
40 Algorithms Every Programmer Should Know
€37.99
Machine Learning for Algorithmic Trading
€43.99
Python Machine Learning
€41.99
Total 123.97 Stars icon

Table of Contents

25 Chapters
Machine Learning for Trading – From Idea to Execution Chevron down icon Chevron up icon
Market and Fundamental Data – Sources and Techniques Chevron down icon Chevron up icon
Alternative Data for Finance – Categories and Use Cases Chevron down icon Chevron up icon
Financial Feature Engineering – How to Research Alpha Factors Chevron down icon Chevron up icon
Portfolio Optimization and Performance Evaluation Chevron down icon Chevron up icon
The Machine Learning Process Chevron down icon Chevron up icon
Linear Models – From Risk Factors to Return Forecasts Chevron down icon Chevron up icon
The ML4T Workflow – From Model to Strategy Backtesting Chevron down icon Chevron up icon
Time-Series Models for Volatility Forecasts and Statistical Arbitrage Chevron down icon Chevron up icon
Bayesian ML – Dynamic Sharpe Ratios and Pairs Trading Chevron down icon Chevron up icon
Random Forests – A Long-Short Strategy for Japanese Stocks Chevron down icon Chevron up icon
Boosting Your Trading Strategy Chevron down icon Chevron up icon
Data-Driven Risk Factors and Asset Allocation with Unsupervised Learning Chevron down icon Chevron up icon
Text Data for Trading – Sentiment Analysis Chevron down icon Chevron up icon
Topic Modeling – Summarizing Financial News Chevron down icon Chevron up icon
Word Embeddings for Earnings Calls and SEC Filings Chevron down icon Chevron up icon
Deep Learning for Trading Chevron down icon Chevron up icon
CNNs for Financial Time Series and Satellite Images Chevron down icon Chevron up icon
RNNs for Multivariate Time Series and Sentiment Analysis Chevron down icon Chevron up icon
Autoencoders for Conditional Risk Factors and Asset Pricing Chevron down icon Chevron up icon
Generative Adversarial Networks for Synthetic Time-Series Data Chevron down icon Chevron up icon
Deep Reinforcement Learning – Building a Trading Agent Chevron down icon Chevron up icon
Conclusions and Next Steps Chevron down icon Chevron up icon
References Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(45 Ratings)
5 star 57.8%
4 star 8.9%
3 star 17.8%
2 star 11.1%
1 star 4.4%
Filter icon Filter
Top Reviews

Filter reviews by




Alexandr Gonchar Oct 27, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The media could not be loaded. There is a good amount of literature on machine learning algorithms fundamentals and advances and the same I can tell about finance and econometrics books. The literature on the intersection of these fields is used to be very highly specialized and rather too complicated for the newcomers.This new book "Machine Learning for Algorithmic Trading" aims exactly to fill this gap and guides a reader through a clear roadmap:- getting and cleaning the data;- extracting predictive signals;- build trading strategies;- build portfolios of assets and strategies;- test their performance historically and in the simulations.Last but not least, this book is relying on popular and proven Python libraries and solutions alongside state-of-the-art techniques as generative adversarial networks for simulations and reinforcement learning for active trading. Highly recommend for new-coming practitioners and seasoned players in the field!
Amazon Verified review Amazon
Kutschera Apr 06, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Good read
Amazon Verified review Amazon
Yuxing Yan Aug 18, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A very good textbook for quantitative finance major students. If we have an MSF program, I will definitively adopt it as my textbook. Since all Python programs are available at Github, it will help me and my students to replicate many trading strategies explained in the book. It is my habit to replicate others’ results first, then try to modify their programs according to my own needs.
Amazon Verified review Amazon
Akshit shah Aug 15, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a machine learning practitioner.I always wanted to go into the trading space and apply my knowledge, I have been looking up the internet and had so many overwhelming knowledge. It was really difficult to find an ideal book. Then I came across this book and It helped me understand different ways and how to develop different models and understand the use of it in algorithmic trading. Thanks a lot for this book
Amazon Verified review Amazon
Frank S Dec 03, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
For example, yes all of the photos are black and white. However in the preface there's very clear instruction on where you can find the color versions (PDFs in the github repo, for those who eschew prefaces) and if you intend to use any of the Python code that goes along with this tome, you'll see the color versions can often also be found in the Jupyter notebooks - a fact frequently referenced in the first two chapters.Second, getting python environments up and running smoothly is, unfortunately, rarely a very easy task. This is certainly not exclusive to this particular use case.If I had any complaint at all about the book, it's that it is overly thorough so you may find yourself slogging through some tedium as you begin. It's not broken up in a way that easily allows for skipping ahead (at least not for my prior knowledge set). In the first couple chapters I've found I've needed - on average - every other paragraph and that the subject matter is the source of the dryness, not the author's use of language; which so far has been smooth and flows far more gracefully than my own.I will update after more extensive use of the author's code.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.