Chaikin Volatility (CV) measures security's price volatility by comparing the range between High and Low values over a set period of time.

Hierarchy

Constructors

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 type of Moving Average used in Chaikin Volatility calculations.

    Parameters

    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 number of time periods (n) used to calculate the indicator. Allows setting different period count for the indicator and for the moving average used in calculations.

    Parameters

    • newPeriodCount: number

      The number of time periods in the Chaikin Volatility calculation, set to 10 periods by default.

    • newPeriodCountMA: number

      The number of time periods for the moving average used in Chaikin Volatility calculations.

    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