trading-signals
    Preparing search index...

    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 Summary)

    Index

    Constructors

    Properties

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

    Accessors

    • get isStable(): boolean

      Returns boolean

    Methods

    • Parameters

      • price: BigSource
      • replace: boolean

      Returns null | Big

    • Parameters

      • inputs: readonly BigSource[]
      • replace: boolean = false

      Returns (null | Big)[]