Enum Class ConvergenceDivergenceType
java.lang.Object
java.lang.Enum<ConvergenceDivergenceType>
trade.invision.indicators.indicators.convergencedivergence.ConvergenceDivergenceType
- All Implemented Interfaces:
Serializable,Comparable<ConvergenceDivergenceType>,Constable
ConvergenceDivergenceType defines the types of convergence and divergence.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNegative convergence occurs when thefirstsignal andsecondsignal both decrease within a timeframe.Negative divergence occurs when thefirstsignal decreases and thesecondsignal increases within a timeframe.Positive convergence occurs when thefirstsignal andsecondsignal both increase within a timeframe.Positive divergence occurs when thefirstsignal increases and thesecondsignal decreases within a timeframe. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConvergenceDivergenceTypeReturns the enum constant of this class with the specified name.static ConvergenceDivergenceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POSITIVE_CONVERGENCE
Positive convergence occurs when thefirstsignal andsecondsignal both increase within a timeframe. In other words,firstandsecondmake higher highs. -
NEGATIVE_CONVERGENCE
Negative convergence occurs when thefirstsignal andsecondsignal both decrease within a timeframe. In other words,firstandsecondmake lower lows. -
POSITIVE_DIVERGENCE
Positive divergence occurs when thefirstsignal increases and thesecondsignal decreases within a timeframe. In other words,firstmakes higher highs whilesecondmakes lower lows. -
NEGATIVE_DIVERGENCE
Negative divergence occurs when thefirstsignal decreases and thesecondsignal increases within a timeframe. In other words,firstmakes lower lows whilesecondmakes higher highs.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-