# Double Exponential Moving Average

### Introduction

Developed by Patrick Mulloy, DEMA reduces the lag inherent in traditional moving averages by applying a double smoothing process. More responsive than EMA while maintaining smoothness.

### How Double Exponential Moving Average Works

The Double Exponential Moving Average (DEMA) was developed by Patrick Mulloy to reduce lag while maintaining smoothness. Calculation: DEMA = 2×EMA(n) - EMA(EMA(n)). This formula applies exponential smoothing twice but subtracts the double-smoothed EMA to reduce lag.

In crypto strategy building, DEMA is used for:

• **Reduced lag** - Faster signals than traditional EMAs • **Trend identification** - Excellent for spotting trend changes early • **Support/Resistance** - Provides responsive dynamic levels • **Crossover strategies** - Faster crossovers than EMA

DEMA is particularly useful for swing trading and short-term strategies where quick responses are needed without excessive noise.

#### Key Characteristics

* **Category**: Moving Averages
* **Type**: Technical Indicator
* **Application**: Trend Following And Dynamic Support/Resistance
* **Timeframe**: All timeframes supported (1m to 1M)

### Using Double Exponential Moving Average in Skyrexio Strategy Builder

#### Base Order Entry Conditions

**Example Configuration:**

```
First Condition: Close Price
Timeframe: 1H
Operator: Cross Above
Second Condition: Double Exponential Moving Average
```

This creates a signal based on the Double Exponential Moving Average meeting the specified criteria.

#### Practical Applications

| Use Case        | Configuration                                     | Market Condition |
| --------------- | ------------------------------------------------- | ---------------- |
| Entry Signal    | Double Exponential Moving Average meets threshold | Trending markets |
| Confirmation    | Combine with volume                               | All conditions   |
| Exit Signal     | Double Exponential Moving Average reversal        | Profit taking    |
| Risk Management | Double Exponential Moving Average extreme values  | Risk assessment  |

### Advanced Applications

#### Multi-Timeframe Analysis

Combine different timeframes for robust signals:

```
Rule 1: Double Exponential Moving Average (4H) meets condition
AND
Rule 2: Double Exponential Moving Average (1H) confirms signal
```

#### Indicator Combinations

**Effective Combinations:**

* Double Exponential Moving Average + Volume indicators (confirmation)
* Double Exponential Moving Average + Moving averages (trend context)
* Double Exponential Moving Average + Other momentum indicators (signal validation)

### Take Profit and Stop Loss Applications

#### Take Profit Strategies

**Multiple Rules Example:**

```
Rule 1: Exit condition - Price diverges from DEMA trend
First Condition: Close Price
Timeframe: 1H
Operator: Greater Than
Second Condition: Double Exponential Moving Average
Value: 1.065

OR

Rule 2: Exit condition - TRIX momentum decline
First Condition: TRIX (30)
Timeframe: 1H
Operator: Cross Below
Second Condition: Value
Value: 0.025

OR

Rule 3: Exit condition - Volume declining with momentum
First Condition: Volume
Timeframe: 1H
Operator: Less Than
Second Condition: Simple Moving Average (20)
Value: 0.7
```

#### Stop Loss Applications

**Multiple Rules Example:**

```
Rule 1: Stop loss - Price breaks DEMA responsive support
First Condition: Close Price
Timeframe: 1H
Operator: Cross Below
Second Condition: Double Exponential Moving Average

OR

Rule 2: Stop loss - Stochastic %D oversold
First Condition: Stochastic %D
Timeframe: 1H
Operator: Less Than
Second Condition: Value
Value: 15

OR

Rule 3: Stop loss - Rate of Change negative acceleration
First Condition: Rate of Change (10)
Timeframe: 1H
Operator: Less Than
Second Condition: Value
Value: -7
```

#### Double Exponential Moving Average Strategy Bot

**Configuration:**

* **Base Order**: Double Exponential Moving Average condition as defined above
* **Additional Entries**: Price Change mode, 2% intervals
* **Take Profit**: 5% and 10% levels
* **Stop Loss**: Indicator reversal OR 3% loss

### Risk Management

#### Position Sizing

Use Double Exponential Moving Average to assess market conditions:

* **Strong Signals**: Full position size
* **Weak Signals**: Reduced position size
* **Conflicting Signals**: Avoid trading

#### Market Adaptation

Adjust Double Exponential Moving Average parameters based on:

* Current market volatility
* Timeframe being traded
* Historical performance

### Skyrexio-Specific Features

#### AI Integration

The "Suggest with AI" button provides recommendations for:

* Optimal Double Exponential Moving Average parameters for current conditions
* Best timeframes for Double Exponential Moving Average analysis
* Complementary indicators to use with Double Exponential Moving Average

#### Real-Time Execution

* **Continuous Monitoring**: 24/7 tracking across all timeframes
* **Instant Signals**: Immediate order execution when conditions are met
* **Multi-Exchange**: Consistent calculation across all supported exchanges

### Best Practices

#### Entry Timing

* **Once per bar close**: Recommended trigger type for Double Exponential Moving Average
* **Confirmation**: Always combine with other technical factors
* **Volume**: Validate signals with volume analysis

#### Common Mistakes to Avoid

* **Over-optimization**: Don't curve-fit parameters to historical data
* **Isolation**: Never use Double Exponential Moving Average as the only decision factor
* **Ignoring Context**: Consider broader market conditions

### Performance Optimization

#### Backtesting Guidelines

* Test Double Exponential Moving Average across different market conditions
* Validate on multiple cryptocurrency pairs
* Account for transaction costs and slippage
* Use realistic execution assumptions

#### Market Conditions

| Market Type | Double Exponential Moving Average Effectiveness | Recommended Approach         |
| ----------- | ----------------------------------------------- | ---------------------------- |
| Trending    | High                                            | Follow signals with trend    |
| Ranging     | Medium                                          | Use mean reversion approach  |
| Volatile    | Variable                                        | Reduce position sizes        |
| Low Volume  | Low                                             | Wait for volume confirmation |

### Technical Considerations

#### Calculation Method

Double Exponential Moving Average is calculated using:

* Standard mathematical formulas
* Consistent methodology across timeframes
* Real-time updates with each new price tick

#### Parameter Optimization

Consider adjusting parameters for:

* Different cryptocurrency pairs
* Varying market conditions
* Your risk tolerance and trading style

### Conclusion

The Double Exponential Moving Average is a valuable tool in the Skyrexio Strategy Builder arsenal for trend following and dynamic support/resistance. When used correctly with proper risk management and confirmation signals, it can significantly enhance trading performance. However, like all technical indicators, Double Exponential Moving Average should be part of a comprehensive trading strategy that includes multiple confirmation factors.

The key to success with Double Exponential Moving Average is understanding its strengths and limitations, combining it with other analysis techniques, and maintaining disciplined risk management. Skyrexio's AI-powered suggestions can help optimize Double Exponential Moving Average parameters for current market conditions and your specific trading objectives.

Remember that no single indicator guarantees profitable trades. The most successful strategies combine multiple indicators, proper risk management, and sound trading psychology. Use Double Exponential Moving Average as part of a well-rounded approach to cryptocurrency trading.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.skyrexio.com/strategy-builder/built-in-conditions/moving-averages/double-exponential-moving-average.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
