EMA Crossover
EMA Crossover detects the event where a fast exponential moving average crosses a slower one.
What this is
The ema_crossover series is fast EMA - slow EMA . SteadyEdge evaluates crossings against zero: positive values place the fast EMA above the slow EMA, and negative values place it below.
When to use it
Use it as a trend-change trigger or confirmation after a separate setup condition. It is less suitable when you need a persistent state on every candle.
Before you start
- Default periods are fast_period: 9 and slow_period: 21 .
- Operators are cross_above , cross_below , and eq .
- The engine uses zero as the crossing threshold regardless of the value field.
- Moving-average crossings lag price and can alternate repeatedly in flat markets.
Step by step
Step 1: Choose the timeframe
Use a timeframe appropriate for the intended reaction speed. Lower timeframes usually create more crossings and more noise.
Step 2: Set fast and slow periods
Keep the fast period shorter than the slow period. Wider separation gives fewer, later events; closer periods react faster.
Step 3: Choose the crossing direction
Use cross_above when the fast EMA moves from below to above the slow EMA. Use cross_below for the reverse event. Prefer these event operators over eq , because exact equality is rare.
What you should see
The rule passes on the candle where the difference crosses zero. It does not remain true merely because the fast EMA stays above or below afterward.
Common mistakes
- expecting a crossover event to remain active for several candles
- setting a custom value and expecting it to change the zero-cross threshold
- using nearly identical periods in a noisy market
- treating a lagging crossover as an exact entry price
Related articles
- Filters Reference
- EMA
- Price Versus Moving Averages
- MACD Signal Cross