- Introduction to Quantitative Trading
- Quantitative Trading - Advantages and Disadvantages
- Types of Quantitative Trading Strategies
- Momentum Strategies
- Mean Reversion Strategies
- Market Making Strategies and Day Trading Strategies
- How to Generate Trading Ideas
- Designing A Trading Strategy For Profit
- Backtesting a Trading Strategy - Considerations
- Risk Management of a Trading Strategy
- Risk Indicators - VIX Index and TED Spread
- Plotting the VIX Index and TED Spread in R
- Introduction to Quantmod in R
- Downloading Data Using Quantmod Package in R
- Creating Charts with Quantmod
- Data Analysis with Quantmod in R
- Measuring Overall ETFs Performance
- Quantstrat Example in R - EMA Crossover Strategy
- Quantstrat - EMA Crossover Strategy - Performance and Risk Metrics
- Quantstrat Example in R - RSI Strategy
- Quantstrat Case Study - Multiple Symbol Portfolio

# Mean Reversion Strategies

** Mean reversion strategies,** also called pairs trading, tend to capture market anomalies or inefficiencies between prices of stocks, ETFs or commodities with similar behavior. These assets usually pertain to the same industry and are affected by the same supply and demand dynamics. So, in normal conditions, it is expected that both assets have a similar path.

In some occasions, the relative prices of a pair of assets can deviate from its mean and this generates trading opportunities in which one can buy the stock with the lower price and sell the stock with the higher price.

To take advantage of the differences that might arise between stocks with similar properties, a practical approach is to make a ratio between the assets returns and calculate a historical thresholds for this ratio such as one and two historical standard deviations.

The strategy executes orders when the ratio of the prices or the ratio of the returns moves beyond one or two standard deviation, going long on the cheaper asset and going short on the outperformer asset. There are statistical techniques that are suitable to find stocks with similar performance in the past that could be suitable for this type of strategy.

### Identifying Assets Exhibiting Mean Reversion

Researchers and analyst can conduct co-integration test such as the ** Augmented Dickey Fuller (ADF) test** between a lists of stocks to determine good picks for a

**. Also the**

*mean reverting strategy***and the**

*Hurst Exponent***are used as methods to identify stocks that have similar behavior.***

*Variance Ratio test*Similarly, it is also possible to design a ** mean reverting strategy** for a single stock. We can use the

**(BB) technical indicator to set up a mean reversion strategy. First, it is necessary to choose a market that is moving within a range (without trend), and then we can spot the Bollinger Band and make trading decisions. When the price touches the upper band of the Bollinger Band (sell trade) and when the price touches the lower band of the Bollinger Band (buy trade).**

*Bollinger Band*### Additional Notes (Advanced / Optional)

It is possible to perform the CADF (Cointegrated Augmented Dickey Fuller) test between two stocks by using the residuals of a linear regression model for the two asset prices. The CADF is performed with the residual series from the linear regression, and the null hypothesis states that there is a unit root between the two series* and the alternative hypothesis states that both series are stationarity.

# This content is for paid members only.

Join our membership for lifelong unlimited access to all our data science learning content and resources.