Fractal Chaos Bands (FCB) filter out insignificant price movements by plotting the high and low price fractals as a channel. FCB can be used to tell if the market is trending.

Hierarchy

Constructors

Methods

  • Gets the indicator name.

    Returns string

    The indicator name.

  • Sets the fill color of the area between the upper and lower bands.

    Parameters

    • newColor: string

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

    Returns void

  • Sets whether the area between the upper and lower bands should be colored. Use setFillColor() -method to modify the fill color.

    Parameters

    • fillEnabled: boolean

      Set true to enable coloring.

    Returns void

  • Sets the width of all the indicator lines.

    Parameters

    • newWidth: number

      New line width.

    Returns void

  • Sets the color of the lower band lines.

    Parameters

    • newColor: string

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

    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 bars/candles needed to form a fractal. A new fractal is formed when n number of bars/candles before and after a High or Low peak are lower or higher respectively, where n = period count.

    Parameters

    • newPeriodCount: number

      New period count.

    Returns void

  • Sets the color of the upper band line.

    Parameters

    • newColor: string

      New upper band 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