public enum DataInterpolationDescriptor extends Enum<DataInterpolationDescriptor>
Enum Constant and Description |
---|
ALL_TICKS
No interpolation is applied.
|
DEFAULT
By default ticks are interpolated according to CubicSpline algorithm.
|
ONE_HOUR_CLOSE_TICK
From each Period.ONE_HOUR candle is interpolated one tick according to candle's close price.
|
ONE_HOUR_CUBIC_SPLINE
From each Period.ONE_HOUR candle is interpolated n ticks according to CubicSpline algorithm.
|
ONE_HOUR_FOUR_TICKS
From each Period.ONE_HOUR candle is interpolated four ticks according to candle's open/high/low/close values.
|
ONE_HOUR_OPEN_TICK
From each Period.ONE_HOUR candle is interpolated one tick according to candle's open price.
|
ONE_MIN_CLOSE_TICK
From each Period.ONE_MIN candle is interpolated one tick according to candle's close price.
|
ONE_MIN_CUBIC_SPLINE
From each Period.ONE_MIN candle is interpolated n ticks according to CubicSpline algorithm.
|
ONE_MIN_FOUR_TICKS
From each Period.ONE_MIN candle is interpolated four ticks according to candle's open/high/low/close values.
|
ONE_MIN_OPEN_TICK
From each Period.ONE_MIN candle is interpolated one tick according to candle's open price.
|
Modifier and Type | Method and Description |
---|---|
Period |
getInterpolateFromPeriod(PriceRange priceRange,
ReversalAmount reversalAmount)
Returns the candle period from which the ticks are interpolated.
|
ITesterClient.InterpolationMethod |
getInterpolationMethod()
Returns InterpolationMethod of this DataInterpolationDescriptor.
|
static DataInterpolationDescriptor |
getSuitableDataInterpolationDescriptor(PriceRange priceRange)
Returns suitable DataInterpolationDescriptor according to the given PriceRange.
|
static DataInterpolationDescriptor |
getSuitableDataInterpolationDescriptor(PriceRange priceRange,
ReversalAmount reversalAmount)
Returns suitable DataInterpolationDescriptor according to the given PriceRange and ReversalAmount.
|
static DataInterpolationDescriptor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataInterpolationDescriptor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataInterpolationDescriptor ALL_TICKS
public static final DataInterpolationDescriptor ONE_MIN_OPEN_TICK
public static final DataInterpolationDescriptor ONE_MIN_CLOSE_TICK
public static final DataInterpolationDescriptor ONE_MIN_FOUR_TICKS
public static final DataInterpolationDescriptor ONE_MIN_CUBIC_SPLINE
public static final DataInterpolationDescriptor ONE_HOUR_OPEN_TICK
public static final DataInterpolationDescriptor ONE_HOUR_CLOSE_TICK
public static final DataInterpolationDescriptor ONE_HOUR_FOUR_TICKS
public static final DataInterpolationDescriptor ONE_HOUR_CUBIC_SPLINE
public static final DataInterpolationDescriptor DEFAULT
public static DataInterpolationDescriptor[] values()
for (DataInterpolationDescriptor c : DataInterpolationDescriptor.values()) System.out.println(c);
public static DataInterpolationDescriptor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic ITesterClient.InterpolationMethod getInterpolationMethod()
public Period getInterpolateFromPeriod(PriceRange priceRange, ReversalAmount reversalAmount)
priceRange
- reversalAmount
- public static DataInterpolationDescriptor getSuitableDataInterpolationDescriptor(PriceRange priceRange)
priceRange
- public static DataInterpolationDescriptor getSuitableDataInterpolationDescriptor(PriceRange priceRange, ReversalAmount reversalAmount)
priceRange
- Copyright © 2016. All rights reserved.