com.dukascopy.api.system
Enum ITesterClient.InterpolationMethod

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

public static enum ITesterClient.InterpolationMethod
extends Enum<ITesterClient.InterpolationMethod>

Different technics of how to convert bars into ticks


Enum Constant Summary
CLOSE_TICK
          One tick for every bar with close price of the bar
CUBIC_SPLINE
          Cubic spline interpolation of the prices including open/high/low/close prices
FOUR_TICKS
          Four tick for every bar with open/high/low/close prices of the bar
OPEN_TICK
          One tick for every bar with open price of the bar
 
Method Summary
static ITesterClient.InterpolationMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ITesterClient.InterpolationMethod[] 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

OPEN_TICK

public static final ITesterClient.InterpolationMethod OPEN_TICK
One tick for every bar with open price of the bar


CLOSE_TICK

public static final ITesterClient.InterpolationMethod CLOSE_TICK
One tick for every bar with close price of the bar


FOUR_TICKS

public static final ITesterClient.InterpolationMethod FOUR_TICKS
Four tick for every bar with open/high/low/close prices of the bar


CUBIC_SPLINE

public static final ITesterClient.InterpolationMethod CUBIC_SPLINE
Cubic spline interpolation of the prices including open/high/low/close prices

Method Detail

values

public static ITesterClient.InterpolationMethod[] 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 (ITesterClient.InterpolationMethod c : ITesterClient.InterpolationMethod.values())
    System.out.println(c);

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

valueOf

public static ITesterClient.InterpolationMethod 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 © 2011. All Rights Reserved.