Parabolic Stop and Reverse (PSAR) indicator shows the current trend direction, and reveals potential price reversals. PSAR appears either above (trending down) or below (trending up) the trading data as a series of dots.

Hierarchy

Constructors

Methods

  • Gets the indicator name.

    Returns string

    The indicator name.

  • Sets the Acceleration Factor (AF) used in Parabolic SAR calculations. This value is used as initial AF value and as an incremental value. For instance 0.02 means AF starts from 0.02 and increases to 0.04, 0.06, 0.08 etc.

    Parameters

    • newAccelerationFactor: number

      New Acceleration Factor.

    Returns void

  • Sets the maximum value for Acceleration Factor. AF cannot go above this value.

    Parameters

    • newMaximum: number

      New maximum value for Acceleration Factor.

    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 color of the Parabolic SAR points.

    Parameters

    • newColor: string

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

    Returns void

  • Sets the size of the Parabolic SAR points.

    Parameters

    • newSize: number

      New point size.

    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