Type/to search

Dynamic Engulfing Trend Strategy

Common strategy
Created: 2024-02-29 11:24:18
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

The Dynamic Engulfing Trend strategy is a trading strategy that takes long or short positions based on engulfing patterns in the direction of the trend. This strategy uses Average True Range (ATR) to gauge market volatility, Supertrend indicator to determine the market trend direction, and enters trades when engulfing patterns align with the trend direction. Stop loss and take profit levels are also calculated dynamically based on the engulfing patterns.

Strategy Logic

  1. Calculate ATR to measure market volatility.
  2. Calculate Supertrend indicator to identify the market trend.
  3. Define conditions for uptrend and downtrend.
  4. Identify bullish engulfing (in uptrend) and bearish engulfing (in downtrend).
  5. Calculate Stop Loss (SL) and Take Profit (TP) levels based on the engulfing patterns.
  6. Enter trades when engulfing patterns match the trend direction.
  7. Exit trades when price hits the SL or TP levels.
  8. Plot the engulfing patterns on the chart.

Advantage Analysis

The advantages of this strategy include:

  1. Improved signal quality by combining engulfing patterns with trend.
  2. Ability to identify trend reversals for precise entries.
  3. Clear long/short signals for better timing.
  4. Engulfing stop strategy follows the trend while managing risks.
  5. Modular code framework for easy optimizations.

Risk Analysis

There are also some risks to consider:

  1. Engulfing patterns may turn out to be false breakouts.
  2. Difficult to determine optimal parameters like pattern size, duration etc.
  3. Imperfect trend determination may lead to false signals.
  4. Stop loss and take profit levels rely on discretions and may be subjective.
  5. Performance depends on parameter tuning based on historical data.

The risks can be mitigated by:

  1. Adding filters to remove false breakout signals.
  2. Using adaptive ATR for robust parameter calculations.
  3. Improving trend determination using machine learning.
  4. Finding optimal parameters via genetic algorithms.
  5. Backtesting over longer durations to ensure robustness.

Optimization Directions

There is scope for further optimization:

  1. Machine learning can improve trend determinations.
  2. New pattern recognition methods can better identify engulfing patterns.
  3. Latest stop loss/take profit strategies can dynamically optimize levels.
  4. High frequency data can develop shorter-term system.
  5. Parameter tuning for different instruments.

Conclusion

In summary, the Dynamic Engulfing Trend strategy combines the high-quality engulfing pattern signals with accurate trend determination to generate a trading system with precise entries and reasonable stop losses and profit taking. Further enhancements in parameters, risk management and technology integration can improve its stability and profitability. The structured code framework also makes this strategy customizable across different markets.

Source
Pine
/*backtest
start: 2024-01-01 00:00:00
end: 2024-01-31 23:59:59
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/
// © Malikdrajat

Strategy parameters
Strategy parameters
ATR Period
Source
ATR Multiplier
Change ATR Calculation Method ?
Show Buy/Sell Signals ?
Highlighter On/Off ?
Boring Candle Threshold (%)
Engulfing Candle Threshold (%)
Stop Level (Pips)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)