Skip to content
All library documents

EMA Crossover Scalping with Fixed and Trailing Stops

Article Strategy library · Author: stevenygabbyperez

Summary

This short-term strategy uses crossovers between a 5-period EMA and a 13-period EMA to switch between long and short positions. On a bullish crossover it enters long, placing a stop at 1% below the signal-bar close and a trailing stop set to 2% of the close in tick units. A bearish crossover enters short with a stop 1% above the close and the same stated trailing distance. It also emits a once-per-bar-close alert for each entry direction and sizes orders at 100% of equity.

The page provides source code but no backtest settings, trade history, or performance evidence. Its caption mentions MACD, yet the displayed logic uses EMA crossovers and contains no MACD calculation. The excerpt does not explain execution assumptions, slippage, fees, timeframe, or how stop behavior performs across instruments. The settings make this a fully allocated, fast-turnover approach, so the stop mechanics and costs would matter materially in evaluation.

Key ideas

  • The strategy enters long or short when the 5-period and 13-period EMAs cross.
  • Long and short entries place stops 1% away from the signal-bar close and use a 2% trailing distance.
  • Orders are sized at 100% of equity, and entry alerts fire once per bar close.
  • The displayed code uses EMA crossovers; it contains no MACD calculation despite the caption.
  • The page reports no backtest evidence or transaction-cost assumptions.

Tags

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