EMA Trend Classification with Optional Heikin Ashi Smoothing
Summary
This trend-following method classifies each bar as bullish, bearish, or sideways using price relative to an EMA and the EMA’s slope. It calculates slope from the change over two bars, then treats price above a rising EMA as an uptrend and price below a falling EMA as a downtrend; other conditions are classified as sideways. An optional Heikin Ashi calculation supplies smoothed prices for internal signals while regular candles remain available for display. Entries occur when the classification changes, and an opposing signal closes or reverses a position.
The source uses a 21-period EMA and a zero slope threshold, with position size set as a percentage of equity. The document offers no backtest results to support its claims about noise reduction or performance across timeframes. It also identifies EMA lag, whipsaws in prolonged sideways markets, signal frequency, parameter sensitivity, and the lack of an explicit stop-loss as limitations. Suggested extensions include timeframe confirmation, volatility filters, volume checks, pullback entries, and ATR-based exits.
Key ideas
- Trend state depends on whether price is above or below the EMA and whether its slope points in the same direction.
- The method treats mixed conditions or a near-zero slope as sideways and signals entries when the state changes.
- Heikin Ashi values can optionally smooth internal calculations, while position exits rely on opposing signals.
- The source uses a 21-period EMA and sets position size as a percentage of equity.
- There is no explicit stop-loss or reported performance evidence, and sideways churn remains a risk.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.