SlideShare a Scribd company logo
1 of 48
Download to read offline
AVOLATILITYTRADING
SYSTEM
Loay Sperinck
IMPLIEDVOLATILITY
ALL STOCKS GLOBALLY LOOK
LIKE 1 IN A CRASH
VOLATILITYVS PRICE (CRASH
07/08)
WHAT ISTHEVIX
OPTIONS
“A financial derivative that represents a contract sold
by one party to another party.The contract offers the
buyer the right, but not the obligation, to buy (call
option) or sell (put option) the underlying stock at an
agreed-upon price (the strike price) during a certain
period of time or on a specific date (exercise date).”
STRADDLE PAYOFF
004YZ ALL PERCENTILE
BACKTEST
004YZ ALL SD FROM MEAN
BACKTEST
004YZ ALL SD FROM MEAN
BACKTEST
004YZY01 PERCENTILE
BACKTEST
004YZY01 PERCENTILE
BACKTEST
004YZY01 PERCENTILE
BACKTEST
FORECASTINGVOLATILITY
• Point forecasts
• Moving Window Method
• Exponentially Weighted Moving Average
• GARCH
• Range forecasts
• Volatility Cones
VOLATILITY CONES
VOLATILITY CONES
In practice, it helps us determine if an IV
is cheap by comparing it to the range of
historical volatility experience over the
same trading horizon . Since IV is the
expected volatility in the remaining life
OPTION PRICING MODELS
• Black-Scholes
• StochasticVolatility
• StochasticVolatility with Jump Diffusion
• Monte Carlo
• Binomial Models
• …
However, option prices are rapidly
changing and to make sense of these
highly leveraged, nonlinear, time-
dependent derivatives we need a
method to convert their prices into a
QUANTLIB
• Only free/open-source C++ Library for quants and developers.
• Cutting edge pricing and hedging tools.
• Robust, efficient and effective implementations.
• Exported to C#, Java, Perl, Python, GNU R..etc
• Well documented
QUANTLIB: PRE-REQUISITES
• Options Data
• Type [Put or Call], Underlying Price, Strike, DividendYield Rate,
Risk-Free Interest Rate, DataDate [current date], Expiration
[Option Expiry Date]
• DividendYield Rate
• Risk-Free Interest Rate
HISTORICAL OPTIONS DATA
• EOD Options Data including for 4000 U.S Stocks
• Data includes Bid,Ask,Volume, OI etc..
• 1 Billion records
• CSV files
So how did we do it?
CONVENTIONALVS MODERN
DB
It was expected that the 20-year
headstart of the RDBMS databases and
the fact that every record in the data
conforms to the same schema would
make the RDBMS the superior
INFRASTRUCTURE
• Developer productivity
• Document <- -> Python
• Fast out of the box
• Low latency
• High throughput
• Predictable performance
• Sharding/replication for growth and scale out
• Free
• Great support
• Most widely used NoSQL DB
INFRASTRUCTURE
The decision was made for a hybrid
system where zC+ was chosen to do
the heavy lifting and to pre-process the
Implied Volatility and volatil- ity cones
using a separate C++ application.
PRE-PROCESSING DATA FILES
• Pre-process filter
• Top 150 S&P 500
• HighVolume and High OI (i.e liquid
options)
• Matching put or call
• options in close proximity (similiar
options)
• Reduced to 86 Million options
WEBSCRAPING DIVIDEND
DATA
• dividend yield rate finance.yahoo screenshot
U.S FEDERAL RESERVE
QUANTLIB PRICING
OUTPUT
Option type = Put
Maturity = May 17th, 1999
Underlying price = 36
Strike = 40
Risk-free interest rate = 6.00%
Dividend yield = 0.00%
Volatility = 20.00%
Solver1DTest::testBrent()
Completed Solver1DTest::suite()
Completed InputVolatility : 0.142300
ImpliedVolatility Bisection : 0.142296
ImpliedVolatility Brent : 0.142302
ImpliedVolatility Ridder : 0.142300
BLACK-SCHOLES
The BS makes some very simplifying
assumptions about the world. Still, the
greatest strength of using the BS is that
its weakness is well under- stood and
that the market thinks in these terms.
BLACK-SCHOLES
• Assumes stock price
normally distributed
• Assumes underlying
volatility constant
The BS makes some very simplifying
assumptions about the world. 

Stock price is normally distributed.
VOLATILITY CONES:
HISTORICALVOLATILITY
Adjusted data for dividend and stock
splits
WEB SCRAPING YAHOO
FINANCE
MEASURINGVOLATILITY
•Measuring volatility in financial data problematic
•More data points = better estimate
•but volatility is a changing process.
• too much data = outdated information and irrelevant
•too little data = noise and unacceptable sampling errors.
•Need efficient time series model for estimating historical volatility
HISTORICAL CLOSE-TO-
CLOSEVOLATILITY
• Standard historical
volatility method
• Converges slowly
HISTORICAL GARMAN-KLASS
VOLATILITY
• 7.4 times more efficient than the close-to-close
• brownian motion with zero drift
• no opening jumps
HISTORICAL ROGERS-
SATCHELVOLATILITY
• Allows for non-zero drift
• assumes no opening jumps
• better than Garman-Klass when underlying has
trend
HISTORICALYANG-ZHANG
VOLATILITY
• up to 14 times more efficient than the
close-to-close estimator
• minimum estimation error
• accounts for drifts and opening jumps
• but degrades to that of the close-to-
close when the process is heavily
dominated by opening jumps.
VOLATILITY CONE STATISTICS
• The Statistics should be calculated for
• each symbol
• eachTrading Day
• Historical 10day, 20day, 30day volatility .. etc
HODGES-TOMPKINS
ADJUSTMENT FACTOR
h = sample length
n =T − h + 1 is the number of
distinct subseries for a total
number of observations,T
• Corrects for correlation bias in overlapping
data
COMPOSITE IMPLIED
VOLATILITY CONES
Backtesting?
Data Flow
• Layered approach
• Data checked at
every step
• Data pre-processed
for efficient backtest
Everything ready
now…
BACKTESTING
• Demo = simplistic
• Considers only 800,000 shortlisted (new) options
• For each trading day
• Buys 1 = lowest percentile/SD straddle [undervalued]
• Sells 1 = highest percentile/SD straddle [overvalued]
• Holds to expiry.. never sells during life
ENHANCEMENTS
• Include options during their life (backtest on 86 million options)
• Rank by profitability?
• by average profitability of similar trades in the past
• overcome problem of volatility of volatility
• quantify edge in entering straddle
• TrackVIX (Volatility Index)
FUTURE WORK
• Production volatility trading system needs to..
• Dynamically hedge [reduce risk]
• maintain delta-neutral straddles
• because want to profit or loss from only forecast of volatility not price
• Trade sizing
• More edge = trade bigger
• More uncertainty = trade smaller
• Trade evaluation for strategy comparison
• Risk-adjusted performance measures
• maximum drawdown
• % win + win:lose size
• %
FUTURE WORK
• Earnings announcements
FUTURE WORK
QUANTLIB: PRE-REQUISITES
• Options Data
• Type [Put or Call], Underlying Price, Strike, DividendYield Rate,
Risk-Free Interest Rate, DataDate [current date], Expiration
[Option Expiry Date]
• DividendYield Rate
• Risk-Free Interest Rate

More Related Content

Similar to presentation

The power of decoupling
The power of decoupling The power of decoupling
The power of decoupling Tristan Wiggill
 
Dev Lakhani, Data Scientist at Batch Insights "Real Time Big Data Applicatio...
Dev Lakhani, Data Scientist at Batch Insights  "Real Time Big Data Applicatio...Dev Lakhani, Data Scientist at Batch Insights  "Real Time Big Data Applicatio...
Dev Lakhani, Data Scientist at Batch Insights "Real Time Big Data Applicatio...Dataconomy Media
 
TopNotch: Systematically Quality Controlling Big Data by David Durst
TopNotch: Systematically Quality Controlling Big Data by David DurstTopNotch: Systematically Quality Controlling Big Data by David Durst
TopNotch: Systematically Quality Controlling Big Data by David DurstSpark Summit
 
NoSQL in Financial Industry - Pierre Bittner
NoSQL in Financial Industry - Pierre BittnerNoSQL in Financial Industry - Pierre Bittner
NoSQL in Financial Industry - Pierre Bittnerdistributed matters
 
Arbitrage-free Volatility Surfaces for Equity Futures
Arbitrage-free Volatility Surfaces for Equity FuturesArbitrage-free Volatility Surfaces for Equity Futures
Arbitrage-free Volatility Surfaces for Equity FuturesAntonie Kotzé
 
Random Portfolio using R to create investment strategy for Hedge Fund
Random Portfolio using R to create investment strategy for Hedge FundRandom Portfolio using R to create investment strategy for Hedge Fund
Random Portfolio using R to create investment strategy for Hedge FundKrunal Naik, MBA, PMP, CSM
 
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...Quantopian
 
Data Warehouse Design on Cloud ,A Big Data approach Part_One
Data Warehouse Design on Cloud ,A Big Data approach Part_OneData Warehouse Design on Cloud ,A Big Data approach Part_One
Data Warehouse Design on Cloud ,A Big Data approach Part_OnePanchaleswar Nayak
 
Big Data Platforms: An Overview
Big Data Platforms: An OverviewBig Data Platforms: An Overview
Big Data Platforms: An OverviewC. Scyphers
 
RMIT Vietnam - Risk Management - Options
RMIT Vietnam - Risk Management - OptionsRMIT Vietnam - Risk Management - Options
RMIT Vietnam - Risk Management - OptionsTai Tran
 
US SEC Mandates, Python, and Financial Modeling
US SEC Mandates, Python, and Financial ModelingUS SEC Mandates, Python, and Financial Modeling
US SEC Mandates, Python, and Financial ModelingActiveState
 
Big Data Cloud Meetup - Jan 29 2013 - Mike Stonebraker & Scott Jarr of VoltDB
Big Data Cloud Meetup - Jan 29 2013 - Mike Stonebraker & Scott Jarr of VoltDBBig Data Cloud Meetup - Jan 29 2013 - Mike Stonebraker & Scott Jarr of VoltDB
Big Data Cloud Meetup - Jan 29 2013 - Mike Stonebraker & Scott Jarr of VoltDBBigDataCloud
 
Real time database
Real time databaseReal time database
Real time databasearvinthsaran
 
"Introduction to Kx Technology", James Corcoran, Head of Engineering EMEA at ...
"Introduction to Kx Technology", James Corcoran, Head of Engineering EMEA at ..."Introduction to Kx Technology", James Corcoran, Head of Engineering EMEA at ...
"Introduction to Kx Technology", James Corcoran, Head of Engineering EMEA at ...Dataconomy Media
 

Similar to presentation (20)

The power of decoupling
The power of decoupling The power of decoupling
The power of decoupling
 
Dev Lakhani, Data Scientist at Batch Insights "Real Time Big Data Applicatio...
Dev Lakhani, Data Scientist at Batch Insights  "Real Time Big Data Applicatio...Dev Lakhani, Data Scientist at Batch Insights  "Real Time Big Data Applicatio...
Dev Lakhani, Data Scientist at Batch Insights "Real Time Big Data Applicatio...
 
TopNotch: Systematically Quality Controlling Big Data by David Durst
TopNotch: Systematically Quality Controlling Big Data by David DurstTopNotch: Systematically Quality Controlling Big Data by David Durst
TopNotch: Systematically Quality Controlling Big Data by David Durst
 
NoSQL in Financial Industry - Pierre Bittner
NoSQL in Financial Industry - Pierre BittnerNoSQL in Financial Industry - Pierre Bittner
NoSQL in Financial Industry - Pierre Bittner
 
Arbitrage-free Volatility Surfaces for Equity Futures
Arbitrage-free Volatility Surfaces for Equity FuturesArbitrage-free Volatility Surfaces for Equity Futures
Arbitrage-free Volatility Surfaces for Equity Futures
 
Random Portfolio using R to create investment strategy for Hedge Fund
Random Portfolio using R to create investment strategy for Hedge FundRandom Portfolio using R to create investment strategy for Hedge Fund
Random Portfolio using R to create investment strategy for Hedge Fund
 
Derivatives
DerivativesDerivatives
Derivatives
 
Derivatives
DerivativesDerivatives
Derivatives
 
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
 
Derivatives
DerivativesDerivatives
Derivatives
 
Data Warehouse Design on Cloud ,A Big Data approach Part_One
Data Warehouse Design on Cloud ,A Big Data approach Part_OneData Warehouse Design on Cloud ,A Big Data approach Part_One
Data Warehouse Design on Cloud ,A Big Data approach Part_One
 
Big Data Platforms: An Overview
Big Data Platforms: An OverviewBig Data Platforms: An Overview
Big Data Platforms: An Overview
 
RMIT Vietnam - Risk Management - Options
RMIT Vietnam - Risk Management - OptionsRMIT Vietnam - Risk Management - Options
RMIT Vietnam - Risk Management - Options
 
US SEC Mandates, Python, and Financial Modeling
US SEC Mandates, Python, and Financial ModelingUS SEC Mandates, Python, and Financial Modeling
US SEC Mandates, Python, and Financial Modeling
 
XYZ inventory management
XYZ inventory managementXYZ inventory management
XYZ inventory management
 
Big Data Cloud Meetup - Jan 29 2013 - Mike Stonebraker & Scott Jarr of VoltDB
Big Data Cloud Meetup - Jan 29 2013 - Mike Stonebraker & Scott Jarr of VoltDBBig Data Cloud Meetup - Jan 29 2013 - Mike Stonebraker & Scott Jarr of VoltDB
Big Data Cloud Meetup - Jan 29 2013 - Mike Stonebraker & Scott Jarr of VoltDB
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSING
 
Real time database
Real time databaseReal time database
Real time database
 
Apriori Algorithm
Apriori AlgorithmApriori Algorithm
Apriori Algorithm
 
"Introduction to Kx Technology", James Corcoran, Head of Engineering EMEA at ...
"Introduction to Kx Technology", James Corcoran, Head of Engineering EMEA at ..."Introduction to Kx Technology", James Corcoran, Head of Engineering EMEA at ...
"Introduction to Kx Technology", James Corcoran, Head of Engineering EMEA at ...
 

presentation