Open interest is the total number of outstanding derivative contracts, such as options or futures that have not been settled for an asset. The total Open Interest does not count, nor does total of every buy and sell contract. Instead, Open Interest provides a more accurate picture of the options trading activity, and whether money flows into the futures and options market are increasing or decreasing.

Hierarchy

Constructors

  • Parameters

    • priceChart: TradingChart
    • chart: ChartXY<UIBackground>
    • openInterestValues: number[]
    • lineColor: Color
    • lineWidth: number
    • rowIndex: number

    Returns OpenInterest

Methods

  • Gets the indicator name.

    Returns string

    The indicator name.

  • Sets the line color of the indicator.

    Parameters

    • newColor: string

      New line color as string, should be in HEX format e.g. #FFFFFF.

    Returns void

  • Sets the line width of the indicator.

    Parameters

    • newWidth: number

      New line width.

    Returns void

  • Sets the name of the indicator.

    Parameters

    • name: string

      New indicator name.

    Returns void

  • Moves the indicator from its calculated position forward or backward.

    Parameters

    • newOffset: number

      New offset value.

    Returns void

  • Sets the type of the indicator's value label(s).

    Parameters

    Returns void

  • Sets the visibility of the indicator. Hiding the indicator via setVisible(false) does not remove it. Use dispose() to delete any indicator.

    Parameters

    • visible: boolean

      Visibility of the indicator.

    Returns void

  • Programmatically opens the indicator settings menu.

    Returns void