SlideShare a Scribd company logo
Practical Aspects of
Algorithmic Trading.
Bitcoin hedge fund.
Part 2: Algo trading

Gatis Eglitis, Managing Partner
Sergey Troshin, Ph.D., Head of IT Strategy and Operations
Algorithmic trading





Modeling the strategy
Implementing the model
Result analysis
Production

Choosing a broker




Prices
Technologies
Stability

Contents

What is next?
2
Strategy implementation
Algorithmic trading

Automatic trading
HFT – high
frequency trading
Algo trading strategies
Arbitrage

Automatic trading
Buy-side

Sell-side

Trend
following
Statistical
arbitrage

Smart order
routing
Market Making / HFT

VWAP
Arbitrage
London Server
Arbitrage strategy

On new tick:
GAZPRU
(MICEX)

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

OGZD
(LSE)

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

USD/RUB
(FOREX)

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

LIMIT (LSE)
Filled (size)

MARKET (MICEX)
Filled (price)

Parameters: threshold
Volume Weighted Average Price
Algorithm creation cycle

Data

Guess

Model

Approval
Historical Data
Completeness

Depth

Quality

Symbols

Past

Splits etc.

Exchanges

Precision

Gaps

News

Order Book

Timestamps
Data Rendering

Technical
analysis

Huge
Volume

Processing
Speed
Иллюстрация с panopticon.com
Guess and Knowledge
Fundamental

Empirical

Intuition
Trading Model
Alfa Algorithm

Risks

Expenses
Approval. Pre-trade Analysis

Input

Backtesting

Result

• Historical data
• Market influence
modeling
• Configuration
parameters

• Prototype (R / Python
/ Java / C++ / Mathlab
/ Erlang / …)
• GPU
• Cluster / Cloud / …

•Possible income
•Risks
•Real Expenses
Backtest Results
Execution with:
o same input data
o different set of parameters values
Param 1

Param 2

…

Income

Expenses

X1

Y1

…

10%

4%

X1

Y2

…

15%

11%

…

…

…

…

…

Xn

Yn

…

5%

2%
Computational Technologies

Software

Overclocking

FPGA

Multi-core

GPGPU

Cloud

x32

x200

x30000
Algorithm creation cycle

Data

Guess

Model

Approval
Ready to Production?
Choosing a broker

17
Broker
Prime
broker

Volumes

Delays

…

Commissions

Retail
broker
Broker Connection
Client Computer
Control

Internal
Protocol

Broker

Trading
terminal

Trading

Algorithm
Broker Connection
Widely used protocols:
FIX, Plaza2, Technology
providers, Custom

Client Computer

Broker
Algorithm

Trader
Broker Connection
Client Computer

Broker
RDP, SSH

Trader
Algorithm
General
Exchanges/Markets coverage
Trading volumes
Regulation issues
Legal issues
Commissions and fees
Technology
Market data

Execution

Connection

Control

Delays

Delays

Protocol

Trades Export

Market Depth
Best Bid Offer

Client side /
Server side

Virtual
Machines

Interface

Trades

Pre-trade
risks, Software

Co-location

Error handling
Servers and locations
What is next?

25
Post trade analysis
Excel

Program
Export Trade
Results

Charts

Model
Compare with model
Algorithmic Trader
Math
Technology

Finance
Questions?
Sergey Troshin, Director
+356 2015 0000, st@exante.eu

29
NEXT GENERATION
PRIME BROKER

More Related Content

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

Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Takanobu Mizuta
 
Algorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionAlgorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionRajeev Ranjan
 
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR SystemEXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
Iosif Itkin
 
Eurex Spread Trading Equity Index Futures Master
Eurex Spread Trading Equity Index Futures MasterEurex Spread Trading Equity Index Futures Master
Eurex Spread Trading Equity Index Futures Masterjohnnetto
 
Hacking The Trading Floor
Hacking The Trading FloorHacking The Trading Floor
Hacking The Trading Flooriffybird_099
 
Tsl version 1.1_review
Tsl version 1.1_reviewTsl version 1.1_review
Tsl version 1.1_review
Ball Sutta
 
High-Frequency Trading in Stock Market
High-Frequency Trading in Stock MarketHigh-Frequency Trading in Stock Market
High-Frequency Trading in Stock Market
IRJET Journal
 
Summary jpx wp_en_no9
Summary jpx wp_en_no9Summary jpx wp_en_no9
Summary jpx wp_en_no9
Takanobu Mizuta
 
High frequency trading
High frequency tradingHigh frequency trading
High frequency trading
Şaban Dalaman
 
Grid Forex Strategies
Grid Forex StrategiesGrid Forex Strategies
Grid Forex Strategies
Henry Foster
 
Algorithmic Trading and FIX Protocol
Algorithmic Trading and FIX ProtocolAlgorithmic Trading and FIX Protocol
Algorithmic Trading and FIX Protocol
EXANTE
 
Algorithmic trading
Algorithmic tradingAlgorithmic trading
Algorithmic trading
Tushar Rathi
 
I'M META TRADER (IMMT) Presentation Deck
I'M META TRADER (IMMT) Presentation DeckI'M META TRADER (IMMT) Presentation Deck
I'M META TRADER (IMMT) Presentation Deck
samuel666269
 
Algo trading(Minor Project) strategy EMA with Ipython
Algo trading(Minor Project) strategy EMA with IpythonAlgo trading(Minor Project) strategy EMA with Ipython
Algo trading(Minor Project) strategy EMA with Ipython
Deb prakash ganguly
 

Similar to EXANTE: Practical aspects of algorithmic trading. Bitcoin hedge fund. SSE Riga lecture 23.01.2014. Part2. (15)

Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
Affecting Market Efficiency by Increasing Speed of Order Matching Systems on ...
 
Algorithmic Trading-An Introduction
Algorithmic Trading-An IntroductionAlgorithmic Trading-An Introduction
Algorithmic Trading-An Introduction
 
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR SystemEXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
EXTENT-2016: MiFID 2 Compliant Fixed Income SOR System
 
Eurex Spread Trading Equity Index Futures Master
Eurex Spread Trading Equity Index Futures MasterEurex Spread Trading Equity Index Futures Master
Eurex Spread Trading Equity Index Futures Master
 
Hacking The Trading Floor
Hacking The Trading FloorHacking The Trading Floor
Hacking The Trading Floor
 
Tsl version 1.1_review
Tsl version 1.1_reviewTsl version 1.1_review
Tsl version 1.1_review
 
High-Frequency Trading in Stock Market
High-Frequency Trading in Stock MarketHigh-Frequency Trading in Stock Market
High-Frequency Trading in Stock Market
 
Summary jpx wp_en_no9
Summary jpx wp_en_no9Summary jpx wp_en_no9
Summary jpx wp_en_no9
 
High frequency trading
High frequency tradingHigh frequency trading
High frequency trading
 
Grid Forex Strategies
Grid Forex StrategiesGrid Forex Strategies
Grid Forex Strategies
 
Algorithmic Trading and FIX Protocol
Algorithmic Trading and FIX ProtocolAlgorithmic Trading and FIX Protocol
Algorithmic Trading and FIX Protocol
 
10.1.1.129.1408
10.1.1.129.140810.1.1.129.1408
10.1.1.129.1408
 
Algorithmic trading
Algorithmic tradingAlgorithmic trading
Algorithmic trading
 
I'M META TRADER (IMMT) Presentation Deck
I'M META TRADER (IMMT) Presentation DeckI'M META TRADER (IMMT) Presentation Deck
I'M META TRADER (IMMT) Presentation Deck
 
Algo trading(Minor Project) strategy EMA with Ipython
Algo trading(Minor Project) strategy EMA with IpythonAlgo trading(Minor Project) strategy EMA with Ipython
Algo trading(Minor Project) strategy EMA with Ipython
 

Recently uploaded

一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
obyzuk
 
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Quotidiano Piemontese
 
how can I sell pi coins after successfully completing KYC
how can I sell pi coins after successfully completing KYChow can I sell pi coins after successfully completing KYC
how can I sell pi coins after successfully completing KYC
DOT TECH
 
What price will pi network be listed on exchanges
What price will pi network be listed on exchangesWhat price will pi network be listed on exchanges
What price will pi network be listed on exchanges
DOT TECH
 
Intro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptxIntro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptx
shetivia
 
innovative-invoice-discounting-platforms-in-india-empowering-retail-investors...
innovative-invoice-discounting-platforms-in-india-empowering-retail-investors...innovative-invoice-discounting-platforms-in-india-empowering-retail-investors...
innovative-invoice-discounting-platforms-in-india-empowering-retail-investors...
Falcon Invoice Discounting
 
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Godwin Emmanuel Oyedokun MBA MSc PhD FCA FCTI FCNA CFE FFAR
 
How Does CRISIL Evaluate Lenders in India for Credit Ratings
How Does CRISIL Evaluate Lenders in India for Credit RatingsHow Does CRISIL Evaluate Lenders in India for Credit Ratings
How Does CRISIL Evaluate Lenders in India for Credit Ratings
Shaheen Kumar
 
Analyzing the instability of equilibrium in thr harrod domar model
Analyzing the instability of equilibrium in thr harrod domar modelAnalyzing the instability of equilibrium in thr harrod domar model
Analyzing the instability of equilibrium in thr harrod domar model
ManthanBhardwaj4
 
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
nexop1
 
Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spirit
egoetzinger
 
Webinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont BraunWebinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont Braun
FinTech Belgium
 
This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...
lamluanvan.net Viết thuê luận văn
 
how to sell pi coins effectively (from 50 - 100k pi)
how to sell pi coins effectively (from 50 - 100k  pi)how to sell pi coins effectively (from 50 - 100k  pi)
how to sell pi coins effectively (from 50 - 100k pi)
DOT TECH
 
Introduction to Value Added Tax System.ppt
Introduction to Value Added Tax System.pptIntroduction to Value Added Tax System.ppt
Introduction to Value Added Tax System.ppt
VishnuVenugopal84
 
Earn a passive income with prosocial investing
Earn a passive income with prosocial investingEarn a passive income with prosocial investing
Earn a passive income with prosocial investing
Colin R. Turner
 
Instant Issue Debit Cards
Instant Issue Debit CardsInstant Issue Debit Cards
Instant Issue Debit Cards
egoetzinger
 
1. Elemental Economics - Introduction to mining.pdf
1. Elemental Economics - Introduction to mining.pdf1. Elemental Economics - Introduction to mining.pdf
1. Elemental Economics - Introduction to mining.pdf
Neal Brewster
 
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdfTumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Henry Tapper
 
Transkredit Finance Company Products Presentation (1).pptx
Transkredit Finance Company Products Presentation (1).pptxTranskredit Finance Company Products Presentation (1).pptx
Transkredit Finance Company Products Presentation (1).pptx
jenomjaneh
 

Recently uploaded (20)

一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
 
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
 
how can I sell pi coins after successfully completing KYC
how can I sell pi coins after successfully completing KYChow can I sell pi coins after successfully completing KYC
how can I sell pi coins after successfully completing KYC
 
What price will pi network be listed on exchanges
What price will pi network be listed on exchangesWhat price will pi network be listed on exchanges
What price will pi network be listed on exchanges
 
Intro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptxIntro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptx
 
innovative-invoice-discounting-platforms-in-india-empowering-retail-investors...
innovative-invoice-discounting-platforms-in-india-empowering-retail-investors...innovative-invoice-discounting-platforms-in-india-empowering-retail-investors...
innovative-invoice-discounting-platforms-in-india-empowering-retail-investors...
 
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
 
How Does CRISIL Evaluate Lenders in India for Credit Ratings
How Does CRISIL Evaluate Lenders in India for Credit RatingsHow Does CRISIL Evaluate Lenders in India for Credit Ratings
How Does CRISIL Evaluate Lenders in India for Credit Ratings
 
Analyzing the instability of equilibrium in thr harrod domar model
Analyzing the instability of equilibrium in thr harrod domar modelAnalyzing the instability of equilibrium in thr harrod domar model
Analyzing the instability of equilibrium in thr harrod domar model
 
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
 
Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spirit
 
Webinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont BraunWebinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont Braun
 
This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...
 
how to sell pi coins effectively (from 50 - 100k pi)
how to sell pi coins effectively (from 50 - 100k  pi)how to sell pi coins effectively (from 50 - 100k  pi)
how to sell pi coins effectively (from 50 - 100k pi)
 
Introduction to Value Added Tax System.ppt
Introduction to Value Added Tax System.pptIntroduction to Value Added Tax System.ppt
Introduction to Value Added Tax System.ppt
 
Earn a passive income with prosocial investing
Earn a passive income with prosocial investingEarn a passive income with prosocial investing
Earn a passive income with prosocial investing
 
Instant Issue Debit Cards
Instant Issue Debit CardsInstant Issue Debit Cards
Instant Issue Debit Cards
 
1. Elemental Economics - Introduction to mining.pdf
1. Elemental Economics - Introduction to mining.pdf1. Elemental Economics - Introduction to mining.pdf
1. Elemental Economics - Introduction to mining.pdf
 
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdfTumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
 
Transkredit Finance Company Products Presentation (1).pptx
Transkredit Finance Company Products Presentation (1).pptxTranskredit Finance Company Products Presentation (1).pptx
Transkredit Finance Company Products Presentation (1).pptx
 

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

Editor's Notes

  1. Алгоритмическая – формализованное пошаговое выполнение.Автоматизированная – компьютер.HFT – грань постоянно размывается, я склонен называть позиции длиной меньше минуты, лимитные заявки и Шарпе около 1000.
  2. Что касается стратегий, На Западе большинство алго это до сих пор селл-сайд исполнение, прайсинг и order routing.У нас же обычно говорят об альфа стратегиях для buy side.Если вы buy side и хотите запустить стратегию в торговлю, у вас есть три пути.
  3. Всё начинается с данных.
  4. Доступность данных по инструментам и площадкам вообще говоря сильно ограничивает ваши возможности. Одной из первых задач для нас было выбрать поставщика данных, удовлетворяющего критериям на слайде. Проблема, которые мы до сих пор решаем, это синхронизация time stamps в тиковых данных с timestamps order book, стакана. Биржи отдают время без миллисекунд, на разных биржах может быть дрифт времени, ну и в конечном итоге, вам важно именно то время, когда эту котировку получили бы именно вы в текущей своей инфраструктуре.
  5. Что можно увидеть? Тренды, (авто)корреляцию, уровни, волатильность, частоты.Большие объёмы данных: РТС за 2011 год это ... событий.Кол-во уникальных дней:169 (с начала года по 18 сентября)Кол-во сделок по всем фьючам на индекс РТС:62996080Кол-во обновлений по котировкам (обновление bid/bid size/ask/ask size):65094177Добавление индикаторов/формулИнтерактивность
  6. Фундаментальные – по книжкам. Эмпирические – опыт плюс работа с данными, для этого визуализация.
  7. Исторические данные, симуляция или фронт-тестинг? (или всё вместе?)Описание потока заявок других участниковМоделирование влияния своих заявок на рынокПостроение профиля риска и equityБыстрая обработка (кластеры, GPU)
  8. Scale horizontally: Cloud, GPGPU, multi-coreПозволяют быстрее обрабатывать независимые данные:например, множество временных рядов.Scale vertically: new SW paradigms (e.g. Disruptor), Cooling, FPGAПозволяют обрабатывать быстрее зависимые линейно данные, e.g. поток цен по одному инструменту, очередь заявок.Привести пример: какая-нибудь биржа, система М2, система ЛМАКС.FPGA: message parsing, order book matching, risk control, derivs pricing. Низкая и детерминированная задержка. SEC rule 15c3-5 – контроль рисков при DMA. Фикснетикс менее 1 микросекунды на 20 проверок (разных).
  9. Всё начинается с данных.
  10. Приближенность к брокеру, бирже, бекофисуОптимизация по данным, по исполнениюЛинии между вашими дата-центрами: Интернет, Выделенные, Direct connection
  11. Языки можно писать как на языках высокого уровня, так и на специализированных языках, или графическиСтратегия может исполняться как на клиентской машине, так и на сервере или в облакеКонтроль можеть быть как ручным из командной строки например, так и автоматическим с использованием вывода результатов в excel, расписаниями и прочим, в идеальном случае полный контроль и управление стратегий осуществуляется из графического интерфейсаПомимо этих факторов можно также отметить простоту разработки, простоту внесения изменений в стратегии, простоту просмотра и экспорта результатов