EMA Crossover Strategy with Partial Targets and Trailing Exits
Summary
This strategy uses crossovers between 21-period and 55-period exponential moving averages to generate long and short signals. Optional filters restrict trading to 15-minute charts and weekdays. It closes the existing opposite position before entering in the new direction, with pyramiding disabled and orders sized as a percentage of equity. The exit design takes a configurable portion of the position at a first profit target, while the remainder has a second target, a fixed stop, and a trailing exit. Dollar distances are converted to instrument ticks.
The supplied script describes its leverage, sizing, and default exit distances, but includes no backtest settings or results to establish performance. The fixed dollar distances may have different meanings across instruments and price scales, and full-equity sizing combined with leverage can expose an account to substantial losses. Costs are configured as zero, so realistic fees, spread, slippage, order fills, and instrument-specific tick behavior would need consideration. EMA crossovers also lag and can generate frequent reversals in sideways markets.
Key ideas
- Signals occur when the fast EMA crosses above or below the slow EMA.
- Optional filters limit signals to a 15-minute chart and weekday sessions.
- The strategy closes the opposite position before entering a new direction.
- A partial first target is paired with a second target, fixed stop, and trailing exit for the remainder.
- The script uses full-equity sizing and zero commission, while providing no performance evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.