Point-and-Figure (P&F) is a time-independent chart filtering out small price movements. It consists of columns of stacked X's and O's, where the X's indicate rising prices while the O's indicate falling prices. Point-and-Figure charts can be used to detect support and resistance levels as well as upward and downward trend lines.

Hierarchy

  • PointAndFigure

Constructors

  • Parameters

    • priceChart: TradingChart
    • chart: ChartXY<UIBackground>
    • currentData: XOHLC[]
    • dates: string[]
    • pafBase: BaseType = BaseType.Close
    • boxSize: number = 1
    • reversalAmount: number = 3
    • atrPeriodCount: number = 14
    • xColor: Color = ...
    • oColor: Color = ...

    Returns PointAndFigure

Methods

  • Solves the Point-and-Figure value at the current cursor position.

    Parameters

    • xValue: number

      Cursor X-value.

    Returns number

    Point-and-Figure price value at mouse position.

  • Sets the number of time periods (n) used to calculate the Average True Range (ATR). Used when Point-and-Figure chart is based on ATR.

    Parameters

    • newPeriodCount: number

      New period count.

    Returns void

  • Sets the box size amount for the Point-and-Figure chart. The price needs to move at least this amount for a new X or O to be created.

    Parameters

    • boxSize: number

      New box size amount.

    Returns void

  • Sets the color of the O-figures/columns.

    Parameters

    • newColor: string

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

    Returns void

  • Sets which values the Point-and-Figure chart is based on.

    Parameters

    Returns void

  • Sets the reversal amount for the Point-and-Figure chart. A new X- or O-column will be created when there is a price reversal of at least this amount.

    Parameters

    • reversal: number

      New reversal amount.

    Returns void

  • Sets the color of the X-figures/columns.

    Parameters

    • newColor: string

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

    Returns void