Type/to search

Quantitative Strategy Combining Mean Reversion and Trend Following

Cryptocurrency
Created: 2023-09-14 20:45:20
Last modified: 3 years ago
1
Follow
1781
Followers

This article explains in detail a quantitative trading strategy that combines both mean reversion and trend following techniques. It aims to trade counter-trend during trending markets and ride the momentum during trending markets.

I. Strategy Logic

The strategy mainly uses Simple Moving Average and RSI indicator to generate trading signals:

  1. When price is below 200-period SMA, it judges the current market as downtrend.

  2. When RSI is below 20, it takes counter-trend mean reversion trades.

  3. When price is above 200-period SMA, it judges the current market as uptrend.

  4. When price crosses above SMA, it takes trend-following trades.

  5. Exits are triggered when RSI exceeds 80 or price drops below SMA by a certain percentage.

  6. Position sizing for mean reversion and trend following can be adjusted separately.

The strategy combines mean reversion and trend following techniques and applies them in different market stages.

II. Advantages of the Strategy

The main advantages are:

  1. Combining two techniques improves strategy adaptiveness.

  2. It can find trading opportunities in trending and ranging markets.

  3. Risks can be controlled by adjusting position sizing.

  4. Simple parameter settings make it easy to implement.

III. Potential Risks

However, the risks are:

  1. Indicators like SMA and RSI are susceptible to false breakouts.

  2. Switching between two modes may lag.

  3. Certain drawdowns need to be endured for long term gains.

IV. Summary

In summary, this article has explained a quantitative strategy utilizing mean reversion and trend following techniques. It can trade in different market stages to improve adaptiveness. But risks like indicator failure and delayed mode switching need to be managed. Overall, it provides a flexible approach to combine different techniques.

Source
Pine
/*backtest
start: 2022-09-07 00:00:00
end: 2023-04-05 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © I11L

//@version=5
Strategy parameters
Strategy parameters
Starting Date
enableMeanReversion
enableTrendfollowing
trendPositionFactor
meanReversionPositionFactor
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)