Skip to content
All library documents

EMA Crossover Trading with Adaptive Stops, Targets, and Trade Filters

Article TradingView scripts

Summary

This strategy uses a fast and slow exponential moving average crossover for directional entries, with an optional ADX filter to block new trades when trend strength is low. It describes four ways to set take-profit and stop-loss distances: fixed points, a percentage of entry price, a multiple of ATR, or a stop placed beyond a confirmed swing point with a risk-reward-based target. Optional trailing and break-even stops can manage open positions, and a time-based exit can close trades that remain open too long. Opposite crossovers can close positions even when the entry filter blocks new trades.

The script is presented as a reusable risk-management toolkit and includes configurable inputs, chart displays, and nonzero commission and slippage assumptions for strategy simulation. The document explains the intended mechanics and warns that crossover systems can produce false signals in sideways markets. It does not provide empirical performance results, and its sample defaults are generic settings rather than validated parameters. Actual behavior will depend on the instrument, timeframe, costs, and implementation of the chosen exit mode.

Key ideas

  • Fast and slow EMA crossovers provide long and short signals.
  • An optional ADX threshold filters fresh entries during weak-trend conditions.
  • Take-profit and stop-loss distances can be based on points, percentage, ATR, or swing pivots.
  • Trailing stops, break-even stops, and time-based exits add alternative position-management rules.
  • The document identifies whipsaws in sideways markets as a weakness and gives no performance evidence.

Tags

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