Type/to search

Momentum Strategy Based on DEMA and EMA Crossover with ATR Volatility Filter

Common strategy
Created: 2024-01-08 14:14:57
Last modified: 3 years ago
1
Follow
1802
Followers

img

I. Strategy Overview

This strategy is named "Momentum Strategy Based on DEMA and EMA Crossover with ATR Volatility Filter". It generates short-term trading signals by detecting DEMA and EMA crossovers combined with the ATR volatility index. When DEMA crosses below EMA while ATR rises, it shorts the security. When DEMA re-crosses above EMA, it closes the position.

II. Strategy Logic

  1. Calculate the DEMA indicator. DEMA is the Double Exponential Moving Average using dual EMAs, which can filter out short-term market noise and improve signal accuracy.

  2. Calculate the EMA indicator. EMA is the Exponential Moving Average which reacts faster to price changes.

  3. Calculate the ATR volatility index. ATR measures market volatility and risk levels. Rising ATR represents increasing volatility and higher likelihood of short-term pullbacks.

  4. When DEMA crosses below EMA and ATR rises above the threshold, it signals the start of a short-term downtrend and increased market risk. The strategy shorts the security.

  5. When DEMA re-crosses above EMA, it signals a price support and upside bounce. The strategy closes the short position.

III. Advantages

  1. The combination of dual EMA and EMA can effectively improve signal accuracy.

  2. The ATR volatility filter eliminates low risk whipsaw trades.

  3. Short holding period fits short-term momentum tracking and avoids prolonged hedging.

  4. Simple and clear logic, easy to understand and implement.

IV. Risks

  1. Improper ATR parameters may miss trading opportunities.

  2. Need to monitor both long and short signals simultaneously, increasing operation difficulty.

  3. Affected by short-term market volatility.

Solutions: Parameter optimization through backtesting. Simplify logic to focus on one side. Relax stop loss levels appropriately.

V. Optimization Directions

  1. Optimize parameters for DEMA and EMA to find best combinations.

  2. Optimize ATR lookback period to determine optimal volatility benchmark.

  3. Add other indicators like BOLL Bands to improve signal accuracy.

  4. Introduce stop loss and take profit rules to lock in more consistent profits.

VI. Conclusion

This strategy constructs a simple yet effective short-term trading system using DEMA, EMA crossovers and the ATR volatility index. The clean logic and ease of operation make it suitable for high-frequency momentum trading. Further parameter and logic optimization can potentially yield more steady outperformance.

Source
Pine
/*backtest
start: 2023-12-08 00:00:00
end: 2024-01-07 00:00:00
period: 1h
basePeriod: 15m
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/
// © Qorbanjf

//@version=4
Strategy parameters
Strategy parameters
DEMA LENGTH
Source
EMA Length
Source
Offset
ATR Timeframe
ATR Lookback Period
Show Moving Average?
Moving Average Type
Moving Average Period
Stop Loss ATR / %
SL Multiplier
Minimum profit %
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)