traditional methods to develop quant trading …...quant trading strategies a trading strategy is a...
TRANSCRIPT
![Page 1: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/1.jpg)
Traditional methods to develop Quant Trading strategies
![Page 2: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/2.jpg)
Quant Trading strategiesA trading strategy is a set of decisions
1. What frequency should we trade at?Daily/Weekly/Monthly
2. In each period, which stocks should we trade?
3. For each stock, should we go long or short?
![Page 3: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/3.jpg)
Quant Trading strategiesA trading strategy is a set of decisions
1. What frequency should we trade at?Daily/Weekly/Monthly
2. In each period, which stocks should we trade?
3. For each stock, should we go long or short?
This decision usually depends on the resources available to the trader
Time, Transaction costs, Risk appetite
![Page 4: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/4.jpg)
Quant Trading strategiesA trading strategy is a set of decisions
1. What frequency should we trade at?Daily/Weekly/Monthly
2. In each period, which stocks should we trade?
3. For each stock, should we go long or short?
The higher the frequency of trading, higher is the requirement of each thing below
Time, Transaction costs, Risk appetite
![Page 5: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/5.jpg)
Quant Trading strategiesA trading strategy is a set of decisions
1. What frequency should we trade at?Daily/Weekly/Monthly
2. In each period, which stocks should we trade?
3. For each stock, should we go long or short?
Once we’ve decided the frequency, the below decisions decide the
actual trade
![Page 6: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/6.jpg)
Quant Trading strategiesA trading strategy is a set of decisions
1. What frequency should we trade at?Daily/Weekly/Monthly
2. In each period, which stocks should we trade?
3. For each stock, should we go long or short?
Some strategies are very simple
![Page 7: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/7.jpg)
Quant Trading strategiesA trading strategy is a set of decisions
1. What frequency should we trade at?Daily/Weekly/Monthly
2. In each period, which stocks should we trade?
3. For each stock, should we go long or short?
For example, go long on railway stocks in AprilThis strategy uses just the month of
the year to decide the trade
![Page 8: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/8.jpg)
Quant Trading strategiesA trading strategy is a set of decisions
1. What frequency should we trade at?Daily/Weekly/Monthly
2. In each period, which stocks should we trade?
3. For each stock, should we go long or short?
Other strategies might require the use of many complex factors
![Page 9: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/9.jpg)
In order to develop trading strategies, it’s helpful to
understand how markets behave
Quant Trading strategies
![Page 10: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/10.jpg)
There are 2 schools of analysis
1. Fundamental Analysis2. Technical Analysis
Quant Trading strategies
![Page 11: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/11.jpg)
There are 2 schools of analysis
1. Fundamental Analysis 2. Technical AnalysisThis involves the study of
Financial Statements Competitor analysis
News Macroeconomic factors
This involves the study of Historical price movements only
Quant Trading strategies
![Page 12: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/12.jpg)
There are 2 schools of analysis
1. Fundamental Analysis 2. Technical Analysis
Traders generally use a combination of both to develop their strategies
Quant Trading strategies
![Page 13: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/13.jpg)
There are 2 schools of analysis
1. Fundamental Analysis 2. Technical Analysis
Both these schools believe that by studying data, it’s possible to pick stocks that
are underpriced or overpriced
![Page 14: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/14.jpg)
There are 2 schools of analysis
1. Fundamental Analysis 2. Technical Analysis
This is somewhat in contradiction to a fundamental hypothesis in
Financial Economics
Efficient Markets Hypothesis
![Page 15: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/15.jpg)
This hypothesis proposes that Efficient Markets Hypothesis
Prices always fully reflect all the information available
No stock is overpriced or underpriced
![Page 16: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/16.jpg)
If you accept this hypothesis, then 1. All investors have the same information
2. All investors behave rationally
Efficient Markets Hypothesis
No one has any edge
ie. they react to the information in a logical manner
![Page 17: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/17.jpg)
1. Fundamental Analysis 2. Technical AnalysisComing back to Fundamental/technical analysis,
these techniques only work, if
2. Investors sometimes behave irrationally
1. There is an information asymmetryWith more knowledge or experience, you can identify inefficiencies in the market
Everyone doesn’t react in the same way to same information
![Page 18: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/18.jpg)
Whether markets are efficient or inefficient is a hotly debated topic
There is a lot of evidence to support both sides
Quant Trading strategies
![Page 19: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/19.jpg)
Short term momentum and
long term reversal Mean
reversion
Quant Trading strategies2 such documented effects on the
side of investor irrationality
![Page 20: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/20.jpg)
Short term momentum and long term reversal
In the 90s, a couple of researchers discovered that stock prices exhibit
Stocks which have done really well in
the last 3-6 months continue to do well
Stocks which have done really well
over the last year will start losing
Quant Trading strategies
![Page 21: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/21.jpg)
The momentum effect means that Short term momentum
If a stock’s price has been increasing recentlyIt will continue to increase
If a stock’s price has been decreasing recentlyIt will continue to decrease
![Page 22: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/22.jpg)
The momentum effect means that Short term momentum
If a stock’s price has been increasing recentlyIt will continue to increase
If a stock’s price has been decreasing recentlyIt will continue to decrease
Recency here is considered to be 3-6 months
![Page 23: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/23.jpg)
The momentum effect means that Short term momentum
If a stock’s price has been increasing recentlyIt will continue to increase
If a stock’s price has been decreasing recentlyIt will continue to decrease
The recent trend will continue for 3-6 months
![Page 24: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/24.jpg)
The momentum effect means that Short term momentum
If a stock’s price has been increasing recentlyIt will continue to increase
If a stock’s price has been decreasing recentlyIt will continue to decrease
Why does this happen?
![Page 25: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/25.jpg)
The momentum effect means that Short term momentum
If a stock’s price has been increasing recentlyIt will continue to increase
If a stock’s price has been decreasing recentlyIt will continue to decrease
One theory is that investors under react to information in the short term
![Page 26: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/26.jpg)
The momentum effect means that Short term momentum
If a stock’s price has been increasing recentlyIt will continue to increase
If a stock’s price has been decreasing recentlyIt will continue to decrease
This means that if there is information that should increase the stock price, it takes time for the increase to fully reflect in the price
![Page 27: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/27.jpg)
The momentum effect means that Short term momentum
If a stock’s price has been increasing recentlyIt will continue to increase
If a stock’s price has been decreasing recentlyIt will continue to decrease
This effect suggests a trading strategy
![Page 28: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/28.jpg)
Short term momentumThis effect suggests a trading strategyIf a stock has positive returns over last 3-6 months
Go long for the next 3-6 months
![Page 29: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/29.jpg)
Short term momentumThis effect suggests a trading strategyIf a stock has negative returns over last 3-6 months
Go short for the next 3-6 months
![Page 30: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/30.jpg)
Short term momentumThere are different ways to
measure the momentum of a stock
ie, the returns over the last 3-6 months
![Page 31: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/31.jpg)
Short term momentum
Option 1: Sum of daily returns over last 3 months
Option 2: Sum of daily returns over last 3 months/Standard deviation
Option 3: Sum of daily excess returns over last 3 months/Standard deviation
![Page 32: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/32.jpg)
Short term momentum
Option 1: Sum of daily returns over last 3 months
Option 3: Sum of daily returns over last 3 months/Standard deviation
Option 4: Sum of daily excess returns over last 3 months/Standard deviation
This option captures the cumulative trend of the returns over the last 3 months
![Page 33: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/33.jpg)
Short term momentum
Option 2: Sum of daily returns over last 3 months
Option 2: Sum of daily returns over last 3 months/Standard deviation
Option 4: Sum of daily excess returns over last 3 months/Standard deviation
Dividing by the standard deviation normalizes the measure
![Page 34: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/34.jpg)
Short term momentum
Option 2: Sum of daily returns over last 3 months
Option 2: Sum of daily returns over last 3 months/Standard deviation
Option 4: Sum of daily excess returns over last 3 months/Standard deviation
It makes sure the momentum is not due to spikes, but a consistent trend
![Page 35: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/35.jpg)
Short term momentum
Option 2: Sum of daily returns over last 3 months
Option 2: Sum of daily returns over last 3 months/Standard deviation
Option 3: Sum of daily excess returns over last 3 months/Standard deviation
Excess Returns are the returns of this stock over and above the market
![Page 36: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/36.jpg)
Short term momentum
Option 2: Sum of daily returns over last 3 months
Option 2: Sum of daily returns over last 3 months/Standard deviation
Option 3: Sum of daily excess returns over last 3 months/Standard deviation
We can use an index to measure the returns of the market
![Page 37: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/37.jpg)
Short term momentum
Option 2: Sum of daily returns over last 3 months
Option 3: Sum of daily returns over last 3 months/Standard deviation
Option 3: Sum of daily excess returns over last 3 months/Standard deviation
When we use excess returns, we are putting a stronger constraint
over the momentum
![Page 38: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/38.jpg)
Short term momentum
Option 2: Sum of daily returns over last 3 months
Option 3: Sum of daily returns over last 3 months/Standard deviation
Option 3: Sum of daily excess returns over last 3 months/Standard deviation
Here we want to look at stocks which exhibit a momentum that is over and above the momentum of the market
![Page 39: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/39.jpg)
Short term momentum and long term reversal
In the 90s, a couple of researchers discovered that stock prices exhibit
Stocks which have done really well in
the last 3-6 months continue to do well
Stocks which have done really well
over the last year will start losing
Quant Trading strategies
![Page 40: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/40.jpg)
Short term momentum and long term reversal
In the 90s, a couple of researchers discovered that stock prices exhibit
Stocks which have done really well in
the last 3-6 months continue to do well
Stocks which have done really well
over the last year will start losing
Quant Trading strategies
![Page 41: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/41.jpg)
The Reversal effect is exactly the opposite of the
momentum effect
Long term Reversal
![Page 42: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/42.jpg)
While the momentum effect asserts that the stock price will continue it’s current trend,
Long term Reversal
The reversal effect asserts that the trend will reverse itself
![Page 43: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/43.jpg)
It’s been shown that stock prices exhibit both momentum and reversal
Long term Reversal
But over different lengths of time
![Page 44: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/44.jpg)
The Reversal effect means that Long term Reversal
If a stock’s price has been increasing recentlyIt will decrease in the future
If a stock’s price has been decreasing recentlyIt will increase in the future
![Page 45: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/45.jpg)
The reversal effect means that Long term reversal
If a stock’s price has been increasing recentlyIt will decrease in the future
If a stock’s price has been decreasing recentlyIt will increase in the future
Recency here is considered to be a longer period of
time ie. 12 months
![Page 46: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/46.jpg)
The reversal effect means that Long term reversal
If a stock’s price has been increasing recentlyIt will decrease in the future
If a stock’s price has been decreasing recentlyIt will increase in the future
The past trend will reverse over the next 3-6 months
![Page 47: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/47.jpg)
The reversal effect means that Long term Reversal
If a stock’s price has been increasing recentlyIt will decrease in the future
If a stock’s price has been decreasing recentlyIt will increase in the future
Why does this happen?
![Page 48: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/48.jpg)
The reversal effect means that Long term Reversal
If a stock’s price has been increasing recentlyIt will decrease in the future
If a stock’s price has been decreasing recentlyIt will increase in the future
One theory is that investors over react to information in the long term
![Page 49: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/49.jpg)
The reversal effect means that Long term Reversal
If a stock’s price has been increasing recentlyIt will decrease in the future
If a stock’s price has been decreasing recentlyIt will increase in the future
This means that if there is information that should increase the stock price, investors keep reacting to it for far longer than they should
![Page 50: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/50.jpg)
The reversal effect means that Long term Reversal
If a stock’s price has been increasing recentlyIt will decrease in the future
If a stock’s price has been decreasing recentlyIt will increase in the future
This effect suggests a trading strategy
![Page 51: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/51.jpg)
Long term ReversalThis effect suggests a trading strategyIf a stock has positive returns over last 12 months
Go short for the next 3-6 months
![Page 52: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/52.jpg)
Long term ReversalThis effect suggests a trading strategyIf a stock has negative returns over last 12 months
Go long for the next 3-6 months
![Page 53: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/53.jpg)
Long term ReversalThere are different ways to
measure the reversal of a stock
ie, the returns over the last 12 months
![Page 54: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/54.jpg)
Long term ReversalBasically, Reversal = - (Momentum)
To compute reversal, compute the momentum over the last 12 months and reverse the sign
![Page 55: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/55.jpg)
Long term reversalOption 1: -(Sum of daily returns) over last 12 months
Option 2: -(Sum of daily returns over last 12 months)/Standard deviation
Option 3: -(Sum of daily excess returns over last 12 months)/Standard deviation
![Page 56: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/56.jpg)
Short term momentum and long term reversal
In the 90s, a couple of researchers discovered that stock prices exhibit
Stocks which have done really well in
the last 3-6 months continue to do well
Stocks which have done really well
over the last year will start losing
Quant Trading strategies
![Page 57: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/57.jpg)
Short term momentum and
long term reversal Mean
reversion
Quant Trading strategies2 such documented effects on the
side of investor irrationality
![Page 58: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/58.jpg)
Short term momentum and
long term reversal Mean
reversion
Quant Trading strategies2 such documented effects on the
side of investor irrationality
![Page 59: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/59.jpg)
Mean reversion The mean reversion theory says that
When prices move too far away from the average, they start to move back towards the average
This is generally a moving average over a long period of time
![Page 60: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/60.jpg)
Mean reversion
This happens because, when prices start moving in 1 direction, some
traders start taking a contrarian side
When prices move too far away from the average, they start to move back towards the
average
![Page 61: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/61.jpg)
Mean reversion
When enough traders join the contrarian side, the price starts to
revert back
When prices move too far away from the average, they start to move back towards the
average
![Page 62: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/62.jpg)
Mean reversion
How far away is too far? What should be the average?
When prices move too far away from the average, they start to move back towards the
average
![Page 63: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/63.jpg)
Mean reversion How far away is too far?
What should be the average?
Determining the answer to these is a little bit of an art
![Page 64: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/64.jpg)
Mean reversion How far away is too far?
What should be the average?
Analysts sometimes study historical price charts to determine the answer to these
![Page 65: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/65.jpg)
Mean reversion
We assume that there is a band around the average
that the price will not cross
![Page 66: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/66.jpg)
Mean reversion Here is a time series for Amazon stock in 2014
![Page 67: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/67.jpg)
Mean reversion
The moving average over past 50 days
![Page 68: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/68.jpg)
Mean reversion
A band of 2 standard deviations around the average
![Page 69: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/69.jpg)
Mean reversion
As you can see, the price mostly stays within this band
![Page 70: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/70.jpg)
Mean reversion
When the price reaches the bounds, the trend reverses soon after
![Page 71: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/71.jpg)
Mean reversion
This effect is called the bounce
![Page 72: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/72.jpg)
Mean reversion A trading strategy using mean reversion
Measure the recent Jump in the stock price
![Page 73: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/73.jpg)
Mean reversion Jump in the stock price
Measure the average return in last 2 periods compared the
long term average
![Page 74: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/74.jpg)
Mean reversion Jump in the stock price
If the difference is too high, then take a position in the
reverse direction of the jump
![Page 75: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/75.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns
![Page 76: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/76.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns The recent past should be very short term - For instance: last 3 days for daily returns
last 2 months for monthly returns
![Page 77: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/77.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns The long term can be last 50 days for daily returns, last 2 years for monthly returns
![Page 78: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/78.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns The difference between these 2, tells us if there is a spike in the recent past
![Page 79: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/79.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns If that spike is beyond a certain threshold, we can make a bet on a movement in the
reverse direction
![Page 80: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/80.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns
We can look at a normalized measure after dividing by the standard deviation
![Page 81: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/81.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns
This is akin to computing a Z-statistic - or a normalized distance from the average
![Page 82: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/82.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns
Using excess returns puts a stronger constraint on the jump
![Page 83: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/83.jpg)
Mean reversion Jump in the stock price
There are a few different ways to measure the jumpOption 1: Average return in recent past -
Average return in long termOption 2: Option 1/Standard deviation in last 2 years
Option 3: Using excess returns instead of returns
We want to consider a jump over and above the movement of the market
![Page 84: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/84.jpg)
2 such documented effects on the side of investor irrationality
Short term momentum and
long term reversal Mean
reversion
Quant Trading strategies
![Page 85: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/85.jpg)
Quant Trading strategies
We’ve studied a few different factors that can be used to develop trading strategies
![Page 86: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/86.jpg)
Quant Trading strategies
Let’s use these to develop a trading strategy in Excel
![Page 87: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/87.jpg)
Quant Trading strategy in Excel
Here is a time series of price data for the
NIFTY
![Page 88: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/88.jpg)
Quant Trading strategy in Excel
The objective is to come up with a
monthly trading strategy for the NIFTY
![Page 89: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/89.jpg)
Quant Trading strategy in Excel
On the first trading day of each month, we need to decide whether to go long or short on
the NIFTY
![Page 90: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/90.jpg)
Quant Trading strategy in Excel
We will use factors like
momentum and jump
![Page 91: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/91.jpg)
Quant Trading strategy in Excel
For each month, we build a ‘signal’,
a number between -3 and +3
![Page 92: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/92.jpg)
Quant Trading strategy in Excel
The signal indicates whether we want to go long or short, and
the size of the position
![Page 93: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/93.jpg)
Quant Trading strategy in ExcelStep 1: Compute the daily returns from the prices
Return = Ptoday/Pyest-1
![Page 94: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/94.jpg)
Quant Trading strategy in ExcelStep 2: Compute the
daily log returns
![Page 95: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/95.jpg)
Quant Trading strategy in ExcelStep 2: Compute the daily
log returns We use log returns because
they can be summed to compute the total return over a period
![Page 96: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/96.jpg)
Quant Trading strategy in ExcelStep 3: Compute the daily
momentum over last 75 daysMomentum = Sum of Returns/Standard deviation
This will tell us the trend of returns over the last 75 days
and adjust for any spikes
![Page 97: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/97.jpg)
Quant Trading strategy in ExcelStep 3: Compute the daily
momentum over last 75 daysMomentum = Sum of Returns/
Standard deviationThis will tell us the trend of
returns over the last 75 days and adjust for any spikes
![Page 98: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/98.jpg)
Quant Trading strategy in ExcelMomentum = Sum of Returns/
Standard deviation
Compute a trailing sum over the last 75 days
![Page 99: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/99.jpg)
Quant Trading strategy in ExcelMomentum = Sum of Returns/
Standard deviation
Compute the standard deviation over last 75 days
![Page 100: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/100.jpg)
Quant Trading strategy in ExcelMomentum = Sum of Returns/
Standard deviation
Divide the 2 to compute the momentum
![Page 101: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/101.jpg)
Quant Trading strategy in Excel
We can now filter this data for the
monthly time series
Step 4: Compute the monthly long/short signal
![Page 102: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/102.jpg)
Quant Trading strategy in Excel
We can now filter this data for the
monthly time series
![Page 103: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/103.jpg)
Quant Trading strategy in Excel
The Returns column represents the returns in the period ending on
that date shown
![Page 104: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/104.jpg)
Quant Trading strategy in Excel
Assume we are sitting at a trading terminal on Feb 1, we want to compute a
signal for long/short between Feb 1 - Mar 1
![Page 105: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/105.jpg)
Quant Trading strategy in Excel
This signal has to be between
-3 to +3
![Page 106: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/106.jpg)
Quant Trading strategy in Excel
We can do this by computing a Z-score of
the momentum and bounding it between -3
to +3
![Page 107: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/107.jpg)
Quant Trading strategy in ExcelComputing a Z-score normalizes the momentum so that we can compare
it across different months
[Momentum - Average(Momentum)]/SD(Momentum)
![Page 108: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/108.jpg)
Quant Trading strategy in ExcelOne important detail:
Momentum here uses the data for 75 days ending Feb 28, 2016
![Page 109: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/109.jpg)
Quant Trading strategy in ExcelOne important detail:
To compute the signal for Feb 1-Mar1, we can only use the data upto Jan 31
![Page 110: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/110.jpg)
Quant Trading strategy in ExcelOne important detail:
To compute the signal for Feb 1-Mar1, we can only use the data upto Jan 31
![Page 111: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/111.jpg)
Quant Trading strategy in ExcelOne important detail:
Shift the momentum series forward by 1 cell
![Page 112: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/112.jpg)
Quant Trading strategy in ExcelNow we have a momentum signal for each monthWe can use these to run a backtest
Strategy returns = Actual Returns * Signal
![Page 113: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/113.jpg)
Quant Trading strategy in ExcelCompute the Sharpe Ratio for these returns
Note: Here, we assume the risk free rate =0
![Page 114: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/114.jpg)
Quant Trading strategy in Excel
Using Momentum only Sharpe Ratio = -0.39
![Page 115: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/115.jpg)
Quant Trading strategy in ExcelLet’s build a trading strategy using a Jump Factor
This measures if there is a spike in last 2 months
compared to the last 2 years
![Page 116: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/116.jpg)
Quant Trading strategy in ExcelSince the Jump factor is already
like a Z-score, it can be used directly as the Strategy signal
We want to bet in the reverse direction of the Jump factor
![Page 117: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/117.jpg)
Quant Trading strategy in Excel
Let’s run a backtest using the Jump signal and
compute the Sharpe Ratio
Using Jump only Sharpe Ratio = 1.21
![Page 118: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/118.jpg)
Quant Trading strategy in Excel
Usually trading strategies use more than 1 factor
![Page 119: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/119.jpg)
We can use a weighted average of
Momentum and Jump
Quant Trading strategy in Excel
![Page 120: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/120.jpg)
This weights can be determined in different ways
Through trial and error
Quant Trading strategy in Excel
By fixing the desired output and solving a set of equations
![Page 121: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/121.jpg)
The more factors you want to use , the more
complicated finding a combined strategy becomes
Quant Trading strategy in Excel
![Page 122: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/122.jpg)
Updating the weights as we get more
historical data can be very cumbersome
Quant Trading strategy in Excel
![Page 123: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/123.jpg)
This is where using Machine Learning
techniques can come in handy
Quant Trading strategy in Excel
![Page 124: Traditional methods to develop Quant Trading …...Quant Trading strategies A trading strategy is a set of decisions 1. What frequency should we trade at? Daily/Weekly/Monthly 2. In](https://reader035.vdocuments.site/reader035/viewer/2022062402/5f0586247e708231d4136376/html5/thumbnails/124.jpg)
Machine learning techniques can find relationships between variables given
lots of data
Quant Trading strategy in Excel
We can combine the historical price data with ML techniques to develop
sophisticated trading strategies