Type/to search

Dual EMA Engulfing Breakout Strategy

Cryptocurrency
Created: 2023-12-07 15:50:13
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy determines long/short direction by judging the direction of exponential moving averages (EMA). It goes long when there is a bullish engulfing pattern and enlarged trading volume. It closes position when the direction of EMAs is reversed or a bearish engulfing pattern occurs.

Strategy Logic

  1. Use two EMAs with different parameters to determine market trend. If short EMA is above long EMA, it is a bull market, otherwise it is a bear market.

  2. When the market is bullish, if a bullish engulfing pattern appears and trading volume is 1.2 times greater than previous bar, a long signal is triggered. This pattern shows strong momentum of bulls to follow.

  3. When market trend is reversed, i.e. short EMA cross below long EMA, it shows weakening momentum of bulls and existing position should be closed. Also when a bearish engulfing pattern appears, it shows bears are entering with strong momentum, so position should be actively closed with stop loss.

Advantage Analysis

  1. Using dual EMAs to determine market structure can accurately judge bull/bear status.

  2. Engulfing pattern shows one side momentum suddenly increases, which can capture major trends. Combining with enlarged volume filter avoids being misled by fake breakouts.

  3. It has a stop loss mechanism. By not setting stop loss price but using market structure reversal to stop loss, unnecessary slippage can be reduced.

Risk Analysis

  1. Dual EMAs may also incorrectly judge market structure, thus missing trends or wrongly going long. EMA periods can be adjusted.

  2. Engulfing patterns can be misled by ranging markets. More filters can be added to avoid false trades.

  3. Not having stop loss price may lead to larger losses. Other stop loss methods like break even can be tested.

Optimization Direction

  1. More indicators like MACD, A/D can be used to determine long/short.

  2. Add moderate fixed stop loss price based on need.

  3. Optimize EMA periods based on symbol trading characteristics.

Conclusion

The strategy's logic is clear and easy to understand, using EMAs to determine structure and engulfing patterns to capture breakout. Its advantages are simple judgment logic and clear trading signals. But risks of being trapped exist. Further optimization can gain better return.

Source
Pine
/*backtest
start: 2023-11-06 00:00:00
end: 2023-12-06 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// @version=5
// # ========================================================================= #
// #                   |   STRATEGY  |
// # ========================================================================= #
Strategy parameters
Strategy parameters
I_start_date
I_finish_date
Short EMA
Long EMA
Size of Body
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)