Skip to content
All library documents

MACD and 200 EMA Strategy with Pivot Support and Resistance Filters

Article Strategy library · Author: Phantom_Trader_Global

Summary

The document introduces a strategy combining MACD, a 200-period exponential moving average, and pivot-based support and resistance. The visible code defines a long signal when MACD crosses above its signal line below zero while price is above the EMA. A short signal uses the opposite crossover above zero while price is below the EMA. Inputs allow the user to configure MACD and EMA lengths, select between EMA-buffer and recent-swing stop methods, set a risk/reward target, and adjust pivot-level filtering rules.

The excerpt also exposes backtest assumptions for commission and slippage, plus controls for position mode and pyramiding. However, the source text ends partway through the pivot-storage section, before the support/resistance filter, order execution, and exit logic can be reviewed. No strategy report or performance results are included. Thus the visible material explains the intended signal framework and configurable risk controls, but it is insufficient to verify how the level filter works or assess the strategy's behavior and results.

Key ideas

  • Long and short signals combine MACD crossovers with the price's position relative to a long-term EMA.
  • The visible settings offer EMA-buffer and swing-based stop approaches with a configurable reward target.
  • Pivot highs and lows are stored for a support and resistance filter, but its implementation is cut off.
  • The script declares commission and slippage assumptions and offers single-position or pyramiding modes.
  • The excerpt provides no performance results and is incomplete before execution logic appears.

Tags

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