Skip to content
All library documents

MACD and DMI Long Entries with a Volatility Trailing Stop

Article Strategy library · Author: ChaoZhang

Summary

This long-only strategy opens a position when MACD crosses above its signal line while the positive directional movement value exceeds the negative one. It exits when price reaches a fixed profit target or crosses below a volatility stop. The stop trails using the highest observed source price and an ATR-based distance; its multiplier and lookback are configurable. The code sets a three-percent take-profit target and includes a commission assumption in its strategy configuration.

The document frames MACD and DMI as complementary momentum and trend filters, but provides no backtest performance results. It notes that both indicators can generate false signals, a fixed target can cap gains, and the trailing stop may react too quickly or too slowly. It recommends testing parameters and considering additional entry filters. The published settings use BTC/USDT futures over a short window, which is insufficient evidence that the rules are robust across markets or timeframes.

Key ideas

  • A long entry requires MACD to cross above its signal line while positive directional movement exceeds negative movement.
  • The exit occurs at a fixed percentage target or when price crosses below the volatility stop.
  • The stop uses ATR and the running high to adjust its distance as the trade develops.
  • False signals, capped gains, and trailing-stop sensitivity are cited as strategy risks.
  • The document provides no results that establish performance beyond its limited published backtest setup.

Tags

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