com.dukascopy.api
Enum IIndicators.AppliedPrice

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

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

Used to specify which price to use for indicator calculation

Author:
Dmitry Shohov

Enum Constant Summary
CLOSE
          Close price
HIGH
          High price
LOW
          Low price
MEDIAN_PRICE
          Median price (HL/2)
OPEN
          Open price
TIMESTAMP
          Date and time of bar
TYPICAL_PRICE
          Typical price (HLC/3)
VOLUME
          Volume of bar
WEIGHTED_CLOSE
          Weighted close price (HLCC/4)
 
Method Summary
 String toString()
           
static IIndicators.AppliedPrice valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IIndicators.AppliedPrice[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLOSE

public static final IIndicators.AppliedPrice CLOSE
Close price


OPEN

public static final IIndicators.AppliedPrice OPEN
Open price


HIGH

public static final IIndicators.AppliedPrice HIGH
High price


LOW

public static final IIndicators.AppliedPrice LOW
Low price


MEDIAN_PRICE

public static final IIndicators.AppliedPrice MEDIAN_PRICE
Median price (HL/2)


TYPICAL_PRICE

public static final IIndicators.AppliedPrice TYPICAL_PRICE
Typical price (HLC/3)


WEIGHTED_CLOSE

public static final IIndicators.AppliedPrice WEIGHTED_CLOSE
Weighted close price (HLCC/4)


TIMESTAMP

public static final IIndicators.AppliedPrice TIMESTAMP
Date and time of bar


VOLUME

public static final IIndicators.AppliedPrice VOLUME
Volume of bar

Method Detail

values

public static IIndicators.AppliedPrice[] 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.AppliedPrice c : IIndicators.AppliedPrice.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.AppliedPrice 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

toString

public String toString()
Overrides:
toString in class Enum<IIndicators.AppliedPrice>


Copyright © 2009. All Rights Reserved.