Awesome Oscillator (AO) provides information about the strength of the stock and possible reversals. It compares recent momentum with the momentum over a longer time frame.

Hierarchy

Constructors

Methods

  • Gets the indicator name.

    Returns string

    The indicator name.

  • Sets the colors of the bars.

    Parameters

    • colorUp: string

      The color of the bar, when its value is higher that the previous bar.

    • colorDown: string

      The color of the bar, when its value is lower that the previous bar.

    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 short-term and long-term time periods used to calculate the indicator.

    Parameters

    • shortPeriods: number

      Short-term period count.

    • longPeriods: number

      Long-term period count

    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

  • Programmatically opens the indicator settings menu.

    Returns void