EMA Golden and Dead Crosses for Directional Trend Trading
Summary
This strategy uses a 50-period and a 200-period exponential moving average to define directional signals. A bullish cross occurs when the faster average moves above the slower one, and a bearish cross occurs when it moves below. Traders can configure the script for long-only, short-only, or both directions; in two-sided mode, each opposing cross closes the prior position and enters the new direction. The chart also displays the averages, signal markers, and a background indicating which average is higher.
The document provides implementation logic but no market, timeframe, backtest period, performance figures, or comparative evidence. Its default order sizing uses 100% of equity, so that setting deserves scrutiny before use. Moving-average crosses are lagging signals and can whipsaw in sideways markets; the code includes no separate stop, risk limit, or transaction-cost assumptions. The brief claim of suitability for ETF trading is not supported with results in the document.
Key ideas
- A bullish signal occurs when the 50-period EMA crosses above the 200-period EMA.
- A bearish signal occurs when the faster EMA crosses below the slower EMA.
- The direction setting permits long-only, short-only, or two-sided trading.
- The script reverses positions on an opposing cross when both directions are enabled.
- No backtest evidence or explicit risk controls are provided.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.