Renko chart is built using price movements instead of both price and time. It is constructed using blocks (bricks), each positioned at a 45-degree angle relative to the previous block. A new block is drawn only when the price moves above or below the previous block by a certain amount (box size).

Hierarchy

  • Renko

Constructors

  • Parameters

    • priceChart: TradingChart
    • chart: ChartXY<UIBackground>
    • currentData: XOHLC[]
    • dates: string[]
    • renkoBase: BaseType = BaseType.Close
    • boxSize: number = 2
    • atrPeriodCount: number = 14

    Returns Renko

Methods

  • Solves the Renko value at the current cursor position.

    Parameters

    • xValue: number

      Cursor X-value.

    Returns number

    Renko price value at mouse position.

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

    Parameters

    • newPeriodCount: number

      New period count.

    Returns void

  • Sets box size value for the Renko chart. A new brick will be drawn when the price moves above or below the previous brick by this amount.

    Parameters

    • boxSize: number

      New box size.

    Returns void

  • Sets which values the Renko chart is based on.

    Parameters

    Returns void