Time Series for �Algo Trading
Wed 11/11/2020 17:00 - 18:00 GMT
@Wazir Kahar
House Rules
The session is recorded. Turn off your camera if you would not like to appear. (or leave on to be more engaged ;) )
Raise hand / type in chat if you have any questions
Have your microphone muted when you are not speaking to avoid disruptions
Outcome:�Primer for Quantitative Finance
Table of Contents
Table of Contents
The Scenario...
Consider a fictional stock of a company. At the beginning of each day, a fair coin will be flipped. If it lands heads, price of the stock increases by $1. If it lands tails, price of the stock decreases by $1.
Is it possible to devise a strategy to profit from the stock?
Simple Random Walk
Do prices/returns in finance follow random walk?
Stationarity
Time series do not depend on the time at which the series is observed
Let X be the returns of a stock/asset
For all t, E(X) =mu , Var(X) =sigma^2
In a nutshell:
Mean and variance are constant over time
Test for stationarity: Augmented Dickey-Fuller Test
Examples
Stationarity Test
Augmented Dickey Fuller Test
Autocorrelation
Autocorrelation is a mathematical representation of the degree of similarity between a given time series and a lagged version of itself over successive time intervals
In a nutshell : is there a relationship between the past value and the current value
Mean Reversion
Asset prices/returns eventually will revert to the long-run mean or average level
Application of Mean Reversion
Trend Following
Asset prices/returns tend to follow upward/downward trends
Application of Trend Following
Hurst Exponent
Hurst Exponent: 0.027818
Hurst Exponent: 0.636744
Moving Average
Bollinger Bands
Things to look out for when using indicators
MA Crossover Strategy
Bollinger Bands Mean Reversion Strategy
Questions?
Anything to explain more clearly?
If you’re watching this on recording send us a message on the #helpdesk stream in Zulip ! https://dsatlse.zulipchat.com/
Further Reading / Resources
LSE Courses
Algo Trading Challenge
£20 Amazon Voucher prize for challenge based on this workshop. �Task: backtest a trading strategy. (Handicap for first years)
Deadline: 21st Nov 2020
Starter Notebook:
https://colab.research.google.com/drive/1Bp6nWc7Ef13v_8blAo8celxG46Ig-9Vp?usp=sharing