exante: practical aspects of algorithmic trading. bitcoin hedge fund. sse riga lecture 23.01.2014....

30
Practical Aspects of Algorithmic Trading. Bitcoin hedge fund. Gatis Eglitis, Managing Partner Sergey Troshin, Ph.D., Head of IT Strategy and Operations Part 2: Algo trading

Upload: sergey-troshin-phd

Post on 06-May-2015

392 views

Category:

Economy & Finance


1 download

TRANSCRIPT

Page 1: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Practical Aspects of Algorithmic Trading.Bitcoin hedge fund.

Gatis Eglitis, Managing PartnerSergey Troshin, Ph.D., Head of IT Strategy and Operations

Part 2: Algo trading

Page 2: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

2

Algorithmic trading Modeling the strategy Implementing the model Result analysis Production

Choosing a broker Prices Technologies Stability

What is next?

Contents

Page 3: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Algorithmic trading

Automatic trading

HFT – high frequency trading

Strategy implementation

Page 4: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Automatic trading

Buy-side Sell-side

Statistical arbitrage VWAPMarket Making / HFT

Trend following

Arbitrage

Smart order routing

Algo trading strategies

Page 5: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Arbitrage

GAZPRU(MICEX)

On new tick:

ogzd_rub = convert(ogzd, usd_rub)spread = normalize(ogzd_rub/gazpru)

changedSpread()OGZD(LSE)

USD/RUB(FOREX)

LIMIT (LSE)

London Server

Filled (size)

MARKET (MICEX)

Filled (price)

On change spread:if (spread > threshold) place_limit(OGZD, price, size)

On limit fill:If (limit_is_filled) place_market(GAZPRU, size)

Arbitrage strategy

Parameters: threshold

Page 6: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Volume Weighted Average Price

Page 7: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Data Guess Model Approval

Algorithm creation cycle

Page 8: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Historical Data

Completeness

Symbols

Exchanges

News

Depth

Past

Precision

Order Book

Quality

Splits etc.

Gaps

Timestamps

Page 9: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Data Rendering

Huge Volume

Processing Speed

Technical analysis

Иллюстрация с panopticon.com

Page 10: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Guess and Knowledge

Intuition

EmpiricalFundamental

Page 11: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Trading Model

Alfa Algorithm Risks Expenses

Page 12: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Approval. Pre-trade AnalysisInput•Historical data•Market influence modeling•Configuration parameters

Backtesting•Prototype (R / Python / Java /

C++ / Mathlab / Erlang / …)•GPU•Cluster / Cloud / …

Result•Possible income•Risks•Real Expenses

Page 13: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Backtest Results

Param 1 Param 2 … Income Expenses

X1 Y1 … 10% 4%

X1 Y2 … 15% 11%

… … … … …

Xn Yn … 5% 2%

Execution with:o same input dataodifferent set of parameters values

Page 14: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Computational Technologies

Software Overclocking FPGA

Multi-core GPGPU Cloudx32 x200 x30000

Page 15: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Data Guess Model Approval

Algorithm creation cycle

Page 16: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Ready to Production?

Page 17: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

17

Choosing a broker

Page 18: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Prime broker

… Retail broker

Broker

Volumes Delays Commissions

Page 19: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Broker Connection

Broker

Client Computer

Trading terminal

Algorithm

Control

Trading

Internal Protocol

Page 20: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Broker Connection

Broker

Client ComputerWidely used protocols:

FIX, Plaza2, Technology providers,

Custom

TraderAlgorithm

Page 21: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Broker Connection

Broker Client Computer

RDP, SSH

Trader

Algorithm

Page 22: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

General

Exchanges/Markets coverageTrading volumesRegulation issuesLegal issues

Commissions and fees

Page 23: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Technology

Market data

Delays

Market Depth Best Bid Offer

Trades

Execution

Delays

Client side / Server side

Pre-trade risks, Software

Connection

Protocol

Virtual Machines

Co-location

Control

Trades Export

Interface

Error handling

Page 24: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Servers and locations

Page 25: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

25

What is next?

Page 26: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Post trade analysis

Excel

Program

Charts

Model

Export Trade Results

Page 27: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Compare with model

Page 28: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Algorithmic Trader

Technology

Math

Finance

Page 29: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

Questions?Sergey Troshin, Director

+356 2015 0000, [email protected]

29

Page 30: EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2

NEXT GENERATIONPRIME BROKER