Constructors

  • The IndicatorAPI class serves as an abstraction layer between the concrete indicator implementations and the BG.charts.Data and BG.charts.Buffer objects. It allows indicators to manage their result buffers or use other indicators for their own calculation

    Parameters

    Returns IndicatorAPI

Methods

  • Parameters

    • Optionalname: string
    • Optionaldisplacement: number

    Returns number

  • Parameters

    • id: number | "O" | "H" | "L" | "C" | "V"
    • OptionalinputIndex: number

    Returns number

  • Parameters

    • id: number | "O" | "H" | "L" | "C" | "V"
    • OptionalinputIndex: number

    Returns null | { [key: string]: any }

  • Parameters

    • id: number | "O" | "H" | "L" | "C" | "V"
    • OptionalinputIndex: number

    Returns number

  • Returns number[]

  • Parameters

    • Optionalnumber: number

    Returns number

  • Parameters

    • id: number | "O" | "H" | "L" | "C" | "V"
    • OptionalinputIndex: number

    Returns number

  • Parameters

    • id: number | "O" | "H" | "L" | "C" | "V"
    • OptionalinputIndex: number

    Returns Float64Array

  • Parameters

    • bufferHandle: number

    Returns boolean

  • Parameters

    • id: number | "O" | "H" | "L" | "C" | "V"
    • OptionalinputIndex: number

    Returns boolean

  • Parameters

    • length: number

    Returns void

  • Parameters

    • length: number

    Returns void

  • Parameters

    • error: string

    Returns void

  • Parameters

    • bufferHandle: number

      a buffer handle

    • beginIndex: number

      offset of the first value

    • values: number[]

      an array of value numbers

    Returns void

  • Parameters

    • t: number
    • i: number
    • OptionalinputIndex: number

    Returns number

  • Parameters

    • value: "open" | "high" | "low" | "close" | "hl2" | "hlc3" | "ohlc4" | "hlcc4"
    • OptionalinputIndex: number

    Returns (t: number) => number