Class SMA

Simple Moving Average (SMA) Type: Trend

The Simple Moving Average (SMA) creates an average of all prices within a fixed interval. The SMA weights the prices of all periods equally which makes it not as responsive to recent prices as the EMA.

Hierarchy (view full)

Constructors

Properties

highest?: Big
interval: number
lowest?: Big
prices: BigSource[] = []

Accessors

  • get isStable(): boolean
  • Returns boolean

Methods

  • Parameters

    • price: BigSource
    • replace: boolean = false

    Returns void | Big

  • Parameters

    • prices: BigSource[]

    Returns Big