EMA (Exponential Moving Average)

Indicator Description

EMA (Exponential Moving Average) is a commonly used technical analysis indicator that gives greater weight to recent price data, allowing it to reflect price changes more quickly.

Function Information

  • Function Name: EMA
  • Input Parameters:
    • #Kline: K-line data
  • Parameter Settings:
    • timeperiod: Time period (default: 30)
  • Output: Moving average value

Calculation Principle

EMA is calculated using the following formula:

EMA = (Price - EMA(previous)) * (2 / (timeperiod + 1)) + EMA(previous)

Where:

  • Price is the current price
  • EMA(previous) is the EMA value of the previous period
  • timeperiod is the time period

Usage Scenarios

  1. Trend tracking
  2. Support and resistance identification
  3. Price momentum analysis
  4. Trading signal generation
Last Updated: