Skip to content
All library documents

SMA Pullback Entries with Oscillator Exits and MACD Filters

Article Strategy library · Author: ChaoZhang

Summary

This intraday trend strategy uses a simple moving average to define direction and looks for pullback entries. In an upward trend, a long is opened when the current candle moves above the prior candle's high after a pullback pattern; in a downward trend, a short is opened when price falls below the prior low after a rebound pattern. The rules also use a stochastic-style %K and %D oscillator for exits and MACD and its signal line as directional filters. The strategy allows long-only or short-only operation, with parameters available for the indicators and backtest start date.

The document describes the method and its risks but supplies no performance evidence. Published settings identify BTC_USDT futures and a daily chart with hourly base data over roughly one year. The text warns of losses around large moving-average breaks, overtrading in ranges, poor filter settings, and excessive exposure from two-sided trading. It suggests parameter tuning, position limits, and stop rules, while noting the risk of overfitting. The written summary and included code are not fully aligned on oscillator exit conditions, so implementation details warrant scrutiny.

Key ideas

  • The moving average slope defines whether the strategy seeks long or short pullback entries.
  • Entries trigger on breaks of a nearby candle high or low, subject to MACD filters.
  • Oscillator movement is used to close positions, though the document's description and code differ on the trigger.
  • The strategy exposes adjustable indicator parameters and supports one-sided or directional trading modes.
  • Range-bound conditions, parameter choice, and unchecked position accumulation can increase risk.

Tags

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