Skip to content
All library documents

MACD Crossover Entries with ATR Stops and Staged Profit-Taking

Article Strategy library · Author: ChaoZhang

Summary

This long-only trend-following method enters when MACD crosses above its signal line while the 34-period EMA is above the 34-period SMA. It calculates a floating stop from the entry price and ATR, using a 17-period ATR and a multiplier of 2.2. Two limit exits are intended to sell portions of the position at gains of 1% and 5%, leaving the remainder exposed to the stop. The parameters specify exit quantities of 10% and 50%.

The document presents staged exits as a way to realize some gains while retaining exposure to a continuing trend, and notes that indicator errors, stop placement, and the remaining position create risks. Its claims of stability and favorable results are not accompanied by performance statistics. The published configuration covers BTC futures on daily bars with hourly base data, but the code's date inputs and backtest window do not align, and the stop is calculated from entry price using ATR rather than clearly trailing upward with subsequent prices. These implementation details limit what can be inferred from the strategy description.

Key ideas

  • Long entries require a bullish MACD crossover and the EMA above the SMA.
  • The stop level is based on entry price minus a multiple of ATR.
  • The strategy defines partial take-profit orders at 1% and 5% gains, with 10% and 50% exit quantities.
  • The remaining position is closed when price falls below the stop level.
  • The document supplies no performance statistics, and its code and backtest dates leave implementation questions.

Tags

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