Skip to content
All library documents

EMA Crossover Strategy for Long and Short Entries

Article TradingView scripts

Summary

This short strategy uses two exponential moving averages of closing price to generate directional entries. It enters long when the 26-period EMA crosses the 12-period EMA upward, and enters short when the 26-period EMA crosses the 12-period EMA downward. Both averages are plotted for chart inspection.

The document provides the rules and source script but no backtest results, market, timeframe, or risk controls. A commenter questions whether the crossover order is reversed, and another reports that the code does not run. These comments raise concerns about the implementation and its intended signal direction; the page supplies no resolution or performance evidence. The example therefore describes a basic crossover setup rather than establishing that it is reliable or executable as shown.

Key ideas

  • The strategy compares 26-period and 12-period exponential moving averages of closing price.
  • An upward crossover of the 26-period EMA over the 12-period EMA triggers a long entry.
  • A downward crossover triggers a short entry.
  • The document provides no performance evidence or risk-management rules.

Tags

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