Type/to search

Dual Exponential Moving Average Crossover Strategy

Cryptocurrency
Created: 2023-11-23 17:34:06
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

The Dual Exponential Moving Average Crossover Strategy is a typical trend-following strategy. It uses the golden cross and dead cross of Double Exponential Moving Averages (DEMA) with different parameters to determine market trends and make corresponding long and short positions.

Strategy Logic

The strategy uses 3 DEMAs simultaneously with different parameters: DEMA(8), DEMA(20) and DEMA(63). Among them:

  • DEMA(8) reacts the fastest to capture short-term trends;

  • DEMA(20) moves slightly slower to identify medium-term trends;

  • DEMA(63) reacts the slowest to judge the long-term trend direction.

When the fast line DEMA(8) crosses above the medium line DEMA(20) and the slow line DEMA(63), it indicates that the market turns from bottom to top, long position should be made. When DEMA(8) crosses below DEMA(20) and DEMA(63), it indicates that the market turns from top to bottom, short position should be made.

Advantage Analysis

Compared with single moving average, double exponential moving average is more sensitive to price changes and can detect turning points of trends earlier. This strategy combines multiple timeframes of DEMAs, which can effectively track the market trend direction.

The combination of multi-timeframe DEM lines improves the quality of trading signals and avoids false breakouts. At the same time, the strategy only generates signals when the three lines cross, avoiding excessive frequency of trading.

Risk Analysis

The main risks of this strategy are:

  1. Fewer cross signals of the three lines may miss some trading opportunities.
  2. DEM lines crossing delay may fail to respond price change timely when market fluctuates violently.
  3. It cannot cope with huge non-trending markets effectively.

The risks can be further improved and controlled by optimizing parameters, adding filter conditions etc.

Optimization Directions

The strategy can be optimized from the following aspects:

  1. Optimize the moving average parameters to make them fit different market characteristics better.
  2. Add filters like volume, volatility to avoid wrong signals.
  3. Combine other indicators like MACD, KDJ to filter fake signals.
  4. Add stop loss strategy to control single loss.
  5. Optimize position management to make the profit ratio greater than loss ratio.

Summary

The DEMA crossover strategy has a clear overall idea. By combining multi-timeframe DEMAs, it can effectively determine the market trend direction and is a typical trend-following strategy. The strategy can be improved by parameter optimization, adding filters, stop loss management etc. according to actual needs, so as to obtain better strategy results.

Source
Pine
/*backtest
start: 2022-11-16 00:00:00
end: 2023-11-22 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/
// © Noldo

//@version=4
Strategy parameters
Strategy parameters
short
Source Dema 1
long
Source Dema 2
long2
Source Dema 3
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)