Dual EMA Engulfing Breakout Strategy
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
-
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.
-
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.
-
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
-
Using dual EMAs to determine market structure can accurately judge bull/bear status.
-
Engulfing pattern shows one side momentum suddenly increases, which can capture major trends. Combining with enlarged volume filter avoids being misled by fake breakouts.
-
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
-
Dual EMAs may also incorrectly judge market structure, thus missing trends or wrongly going long. EMA periods can be adjusted.
-
Engulfing patterns can be misled by ranging markets. More filters can be added to avoid false trades.
-
Not having stop loss price may lead to larger losses. Other stop loss methods like break even can be tested.
Optimization Direction
-
More indicators like MACD, A/D can be used to determine long/short.
-
Add moderate fixed stop loss price based on need.
-
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.
/*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 |
// # ========================================================================= #- 1

