com.dukascopy.api
Enum IIndicators.MaType

java.lang.Object
  extended by java.lang.Enum<IIndicators.MaType>
      extended by com.dukascopy.api.IIndicators.MaType
All Implemented Interfaces:
Serializable, Comparable<IIndicators.MaType>
Enclosing interface:
IIndicators

public static enum IIndicators.MaType
extends Enum<IIndicators.MaType>

Types of Moving Average

Author:
Dmitry Shohov

Enum Constant Summary
DEMA
          Double Exponential Moving Average
EMA
          Exponential Moving Average
KAMA
          Kaufman Adaptive Moving Average
MAMA
          MESA Adaptive Moving Average
SMA
          Simple Moving Average
T3
          T3 Moving Average
TEMA
          Triple Exponential Moving Average
TRIMA
          Triangular Moving Average
WMA
          Weighted Moving Average
 
Method Summary
static IIndicators.MaType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IIndicators.MaType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SMA

public static final IIndicators.MaType SMA
Simple Moving Average


EMA

public static final IIndicators.MaType EMA
Exponential Moving Average


WMA

public static final IIndicators.MaType WMA
Weighted Moving Average


DEMA

public static final IIndicators.MaType DEMA
Double Exponential Moving Average


TEMA

public static final IIndicators.MaType TEMA
Triple Exponential Moving Average


TRIMA

public static final IIndicators.MaType TRIMA
Triangular Moving Average


KAMA

public static final IIndicators.MaType KAMA
Kaufman Adaptive Moving Average


MAMA

public static final IIndicators.MaType MAMA
MESA Adaptive Moving Average


T3

public static final IIndicators.MaType T3
T3 Moving Average

Method Detail

values

public static IIndicators.MaType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IIndicators.MaType c : IIndicators.MaType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IIndicators.MaType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009. All Rights Reserved.