Coppock Curve is a price momentum indicator that is used to identify long-term buy and sell signals. Long and short Rate of Change values and Weighted Moving Average are used in the calculations.

Hierarchy

Constructors

  • Parameters

    • priceChart: TradingChart
    • chart: ChartXY<UIBackground>
    • openValues: number[]
    • highValues: number[]
    • lowValues: number[]
    • closeValues: number[]
    • lineColor: Color
    • lineWidth: number
    • rowIndex: number

    Returns CoppockCurve

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 period counts for long Rate of Change, short Rate of Change, and Weighted Moving Average.

    Parameters

    • periodCountLongROC: number

      Period count for long Rate of Change.

    • periodCountShortROC: number

      Period count for short Rate of Change.

    • periodCountWMA: number

      Period count for Weighted Moving Average.

    Returns void

  • Sets which values the indicator calculations are based on.

    Parameters

    • source: Source

      Values to base the calculations on.

    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