Class MACD

Moving Average Convergence Divergence (MACD) Type: Momentum

The MACD triggers trading signals when it crosses above (bullish buying opportunity) or below (bearish selling opportunity) its signal line. MACD can be used together with the RSI to provide a more accurate trading signal.

Hierarchy (View Summary)

Constructors

Properties

long: EMA | DEMA
prices: BigSource[] = []
short: EMA | DEMA

Accessors

  • get isStable(): boolean
  • Returns boolean

Methods

  • Parameters

    • _price: BigSource
    • replace: boolean

    Returns null | { histogram: Big; macd: Big; signal: Big }