java.lang.Objectjava.lang.Enum<ITesterClient.DataLoadingMethod>
com.dukascopy.api.system.ITesterClient.DataLoadingMethod
public static enum ITesterClient.DataLoadingMethod
Different ticks loading methods Depending on selected method different amount of ticks will be passed to the IStrategy.onTick() method
| Enum Constant Summary | |
|---|---|
ALL_TICKS
All ticks will be loaded |
|
DIFFERENT_PRICE_TICKS
The current Tick will be skipped in case if it has the same ask and bid prices as previous Tick |
|
PIVOT_TICKS
Pivot or extremum Ticks will be loaded |
|
TICKS_WITH_PRICE_DIFFERENCE_IN_PIPS
Ticks with price difference greater or equal to the specified number of pips will be loaded |
|
TICKS_WITH_TIME_INTERVAL
Ticks with time difference greater or equal to the specified time interval will be loaded |
|
| Method Summary | |
|---|---|
int |
getPriceDifferenceInPips()
Returns price difference in pips |
long |
getTimeIntervalBetweenTicks()
Returns time interval in milliseconds. |
void |
setPriceDifferenceInPips(int priceDifferenceInPips)
Sets the price difference in pips. |
void |
setTimeIntervalBetweenTicks(long timeIntervalBetweenTicks)
Sets the time interval in milliseconds. |
static ITesterClient.DataLoadingMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ITesterClient.DataLoadingMethod[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ITesterClient.DataLoadingMethod ALL_TICKS
public static final ITesterClient.DataLoadingMethod DIFFERENT_PRICE_TICKS
public static final ITesterClient.DataLoadingMethod PIVOT_TICKS
public static final ITesterClient.DataLoadingMethod TICKS_WITH_PRICE_DIFFERENCE_IN_PIPS
setPriceDifferenceInPips(int priceDifferenceInPips)public static final ITesterClient.DataLoadingMethod TICKS_WITH_TIME_INTERVAL
setTimeIntervalBetweenTicks(long timeIntervalBetweenTicks)| Method Detail |
|---|
public static ITesterClient.DataLoadingMethod[] values()
for (ITesterClient.DataLoadingMethod c : ITesterClient.DataLoadingMethod.values()) System.out.println(c);
public static ITesterClient.DataLoadingMethod valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic void setPriceDifferenceInPips(int priceDifferenceInPips)
priceDifferenceInPips - price difference in pipsTICKS_WITH_PRICE_DIFFERENCE_IN_PIPSpublic int getPriceDifferenceInPips()
TICKS_WITH_PRICE_DIFFERENCE_IN_PIPSpublic void setTimeIntervalBetweenTicks(long timeIntervalBetweenTicks)
timeIntervalBetweenTicks - time interval in millisecondsTICKS_WITH_TIME_INTERVALpublic long getTimeIntervalBetweenTicks()
TICKS_WITH_TIME_INTERVAL