Enum Class ConvergenceDivergenceType

java.lang.Object
java.lang.Enum<ConvergenceDivergenceType>
trade.invision.indicators.indicators.convergencedivergence.ConvergenceDivergenceType
All Implemented Interfaces:
Serializable, Comparable<ConvergenceDivergenceType>, Constable

public enum ConvergenceDivergenceType extends Enum<ConvergenceDivergenceType>
ConvergenceDivergenceType defines the types of convergence and divergence.
  • Enum Constant Details

    • POSITIVE_CONVERGENCE

      public static final ConvergenceDivergenceType POSITIVE_CONVERGENCE
      Positive convergence occurs when the first signal and second signal both increase within a timeframe. In other words, first and second make higher highs.
    • NEGATIVE_CONVERGENCE

      public static final ConvergenceDivergenceType NEGATIVE_CONVERGENCE
      Negative convergence occurs when the first signal and second signal both decrease within a timeframe. In other words, first and second make lower lows.
    • POSITIVE_DIVERGENCE

      public static final ConvergenceDivergenceType POSITIVE_DIVERGENCE
      Positive divergence occurs when the first signal increases and the second signal decreases within a timeframe. In other words, first makes higher highs while second makes lower lows.
    • NEGATIVE_DIVERGENCE

      public static final ConvergenceDivergenceType NEGATIVE_DIVERGENCE
      Negative divergence occurs when the first signal decreases and the second signal increases within a timeframe. In other words, first makes lower lows while second makes higher highs.
  • Method Details

    • values

      public static ConvergenceDivergenceType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConvergenceDivergenceType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null