StockBeatStockBeat
Basics
  • Number Series
  • Boolean Series
  • Examples
  • Indicators
Alarms
Concepts
Basics
  • Number Series
  • Boolean Series
  • Examples
  • Indicators
Alarms
Concepts
  • Signals

    • Number Series
    • Boolean Series
    • Signal Examples
    • Indicators

      • Indicators
      • MFI (Money Flow Index)
      • ATR (Average True Range)
      • CCI (Commodity Channel Index)
      • CE (Chandelier Exit)
      • ER (Kaufman's Efficiency Ratio)
      • KC (Keltner Channel)
      • SMA (Simple Moving Average)
      • EMA (Exponential Moving Average)
      • MACD (Moving Average Convergence Divergence)
      • PPO (Percentage Price Oscillator)
      • RSI (Relative Strength Index)
      • FSO (Fast Stochastic Oscillator)
      • SSO (Slow Stochastic Oscillator)
      • BB (Bollinger Bands)
      • MAD (Mean Absolute Deviation)

EMA (Exponential Moving Average)

The EMA (Exponential Moving Average) is another type of moving average that gives more weight to the most recent price data. This makes it more responsive to recent price changes than the Simple Moving Average (SMA). EMAs are commonly used to identify the direction of a trend and to generate buy and sell signals.

Arguments

NameDescription
periodnumber of candles

Useful Signal Expressions

1. EMA Crossover (Bullish)

Signal:

close().ema(12).crosses_above(close().ema(26))

Explanation: The 12-period EMA crosses above the 26-period EMA. This is a common bullish signal.

2. EMA Crossover (Bearish)

Signal:

close().ema(12).crosses_below(close().ema(26))

Explanation: The 12-period EMA crosses below the 26-period EMA. This is a common bearish signal.

3. Price and EMA

Signal:

close().gt(close().ema(50))

Explanation: The closing price is above the 50-period EMA, indicating a medium-term uptrend.

Last Updated:: 2/12/26, 8:03 AM
Contributors: ErenKizilay
Prev
SMA (Simple Moving Average)
Next
MACD (Moving Average Convergence Divergence)