Skip to content
All library documents

Engulfing Candles and Moving Average Crossovers for Trade Signals

Article Strategy library · Author: ChaoZhang

Summary

This strategy combines candlestick engulfing patterns with price crossings of a moving average. It tracks bullish and bearish engulfing formations, then uses the relative timing of price and moving average crossovers to confirm direction. The code supports several moving average types and uses fixed dollar profit and stop levels, while the explanation suggests filters for ranging conditions and alternative trailing exits.

The published backtest settings specify BTC_USDT futures over about a month using three-hour bars with a fifteen-minute base period. The document provides no performance statistics, so it does not demonstrate profitability. Its stated parameter defaults include a moving average length of 32 and profit and stop goals of 600 and 300 dollars, while separate date inputs in the code default to an earlier test window. Engulfing patterns and moving average signals can both fail, and the document acknowledges that sideways markets may generate premature entries or stop-outs.

Key ideas

  • An engulfing pattern compares the real bodies of consecutive candles to flag a possible reversal.
  • A price crossing above or below a moving average is used to confirm directional bias.
  • The code combines the latest engulfing and crossover states to produce trade signals.
  • Fixed dollar profit and stop goals are included, with moving average exits also described.
  • No results are reported, and the strategy may be vulnerable to false signals in ranging markets.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.