Fast EMA Crossover Scalping with Percentage Stops and Trailing Exits
Summary
This short script uses 5-period and 13-period exponential moving averages to generate trading signals. It enters long when the fast average crosses above the slow one and short when it crosses below. Each entry sets a stop 1% from the signal bar’s close and a trailing distance of 2%; it also sends an alert when a signal occurs. The strategy allocates 100% of equity per trade, as configured in the script.
The document provides implementation details but no backtest results, market, timeframe, or performance analysis. Its page description mentions MACD, but the displayed code does not use that indicator. The stop and trailing settings are supplied with the entry signal, so their behavior should be checked in the charting platform before relying on them. The script alone does not establish profitability or account for trading costs, slippage, or position risk.
Key ideas
- The strategy enters long on an upward crossover of the 5-period EMA over the 13-period EMA.
- It enters short when the fast EMA crosses below the slow EMA.
- The displayed code sets a stop 1% from the signal bar’s close and a 2% trailing distance.
- The script allocates 100% of equity per trade and sends alerts at bar close.
- No performance evidence or trading-cost assumptions are provided.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.