machine learning applications in algorithmic trading ryan brosnahan ross rothenstine

13
Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Upload: amy-ryan

Post on 17-Dec-2015

217 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Machine Learning Applications in Algorithmic Trading

Ryan BrosnahanRoss Rothenstine

Page 2: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Goal

Create a learning stock trading algorithm that can produce consistent economic profit without excessive risk or hubris using techniques similar

to those outlined by Berkeley Professor John Moody.

Page 3: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Real Goal

Page 4: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Introduction

• Computational Mathematics is Hard!– Most Quants are Ph.D.– Requires multidisciplinary background

• Expensive• Front-heavy Development Schedule

Page 5: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Typical Scenario

Page 6: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

The Basic Steps

1. Acquire Data1. Sanitize

2. Trading Strategy1. Determine Risk2. Entry, Exit

3. Execute Trade1. Interface Exchange2. Interface Clearing house

Page 7: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Data

• Time Scale• Latency• Sanitation• Multiple Sources• Data types– Economic– Sentiment– Price

Page 8: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Monthly Daily Hourly Minute Tic

Cost of Price Data

Page 9: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Price Data Sources

Source Cost Frequency Quality LatencyYahoo Finance Time >1s Unreliable >5s

IQ Feed ~$100/month Basic Tic Reliable <500msBloomberg Data Feed ~$1,800/month Basic Tic Very Reliable <10ms

Google Finance No longer available as of 22 October 2012

Page 10: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Other Data Sources

• Compustat• Bureau of Economic Analysis• Bureau of Labor Statistics• World Bank• Twitter API

Page 11: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Algorithms

• Implemented– Simple Moving Average– Seasonal Index

• Planned– ARCH– Regression– Holt-Winters

Page 12: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Considerations

• Direct vs. Model Based Learning– SARSA, Q-Learning, RRL

• Forecast Period• Estimating Differentials– Backward Euler Method, Finite Differences, Monte

Carlo• Evaluating Performance– Sharpe Ratio vs. Sterling Ratio vs. Double

Deviation Ratio

Page 13: Machine Learning Applications in Algorithmic Trading Ryan Brosnahan Ross Rothenstine

Algorithm Management

Simple Moving Average

Seasonal Index

SVD/PCA

Linear Prediction

Twitter Sentiment

SVD/PCA

ARCH