Ichimoku Cloud consists of several averaging lines and a lagging closing price line. The difference between two of the lines is colored to comprise the cloud. Ichimoku Cloud is used to detect support and resistance levels. Momentum of the price and trend direction are also shown.

Hierarchy

Constructors

Methods

  • Gets the indicator name.

    Returns string

    The indicator name.

  • Sets the color of the Chikou Span (Lagging Span).

    Parameters

    • newColor: string

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

    Returns void

  • Sets the color of the Kijun-Sen (Base Line).

    Parameters

    • newColor: string

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

    Returns void

  • Sets the width of all the indicator lines.

    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 number of time periods (n) used to calculate various lines of the indicator.

    Parameters

    • tenkanSenPeriodCount: number

      Tenkan-Sen (Conversion Line) period count.

    • kijunSenPeriodCount: number

      Kijun-Sen (Base Line) period count.

    • senkouSpanBPeriodCount: number

      Senkou Span B (Leading Span B) period count.

    • chikouSpanPeriodCount: number

      Chikou Span (Lagging Span) period count. Set to negative number to move the Close-values back.

    Returns void

  • Sets the color of the Senkou Span A (Leading Span A).

    Parameters

    • newColor: string

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

    Returns void

  • Sets the color of the Senkou Span B (Leading Span B).

    Parameters

    • newColor: string

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

    Returns void

  • Sets the color of the Tenkan-Sen (Conversion Line).

    Parameters

    • newColor: string

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

    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