Type/to search

Dual Moving Average Reversal Strategy

Cryptocurrency
Created: 2023-11-03 16:51:18
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy uses 2 indicators to generate trading signals: 2/20 Exponential Moving Average and Average True Range Reversal. It combines the ideas of trend following and short-term reversal, aiming to capture reversal opportunities.

Principle

The strategy consists of 2 parts:

  1. 2/20 Exponential Moving Average. It calculates 20-day EMA and generates signals when price crosses EMA up or down.

  2. Average True Range Reversal Indicator. It calculates stop loss level based on ATR, and generates signals when price breaks through the stop loss level. Here 3.5 x ATR is used as the stop level.

The strategy combines the signals from both. It goes short when 2/20 EMA gives long signal while ATR reversal gives short signal. It goes long when opposite signals generated.

Advantage Analysis

The strategy combines trend following and reversal ideas, aiming to capture reversals. The advantages are:

  1. 2/20 EMA identifies mid-term trend, avoids market noise.

  2. ATR reversal captures short-term reversals and opportunities.

  3. Combining the signals captures trend reversal ahead of time and improves profitability.

  4. Reasonable ATR stop loss provides certain risk control.

  5. Customizable ATR multiplier adapts to different products.

  6. Reversal option adapts to different market environments.

Risk Analysis

The risks are:

  1. 2/20 EMA is slow and may miss short-term chances.

  2. ATR stop loss may be penetrated easily. Wider stop loss is needed.

  3. Single indicator signal is unreliable. More filters are needed.

  4. Beware of over-trading.

  5. Parameter tuning and backtest are needed to fit the product.

  6. Strict capital management is needed to control risk per trade.

Optimization Directions

The strategy can be improved from:

  1. Tuning EMA parameters for best combination.

  2. Optimizing ATR multiplier for better stop loss.

  3. Adding filter conditions like volume and volatility.

  4. Adding capital management model for dynamic position sizing.

  5. Adding other stop loss strategies like Chandelier Exit.

  6. Testing parameters across different products.

  7. Adding machine learning models for better performance.

  8. Combining multiple sub-strategies for more Alpha.

Conclusion

The strategy combines two major ideas and has certain advantage of capturing reversals. But inappropriate parameter selection can also introduce risks. Further improvements on stop loss strategy and adding filters can enhance stability and profitability.

Source
Pine
/*backtest
start: 2022-10-27 00:00:00
end: 2023-11-02 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 05/04/2022
// This is combo strategies for get a cumulative signal. 
Strategy parameters
Strategy parameters
●═════ 2/20 EMA ═════●
Length
●═════ Average True Range Reversed ═════●
nATRPeriod
nATRMultip
●═════ MISC ═════●
Trade reverse
●═════ Time Start ═════●
From Day
From Month
From Year
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)