public enum CreationPoint extends java.lang.Enum<CreationPoint>
This enum represents the data (e.g. LineBreak, Renko) creation point. This enum is necessary for data feeds, which uses time sessions.
Example: if Line Break session is Period.ONE_MIN and creation point is CLOSE
, then next Line Break line is created between
the close price of finished Period.ONE_MIN candle and previous N-Line Break lines.
Enum Constant and Description |
---|
CLOSE
Indicates that Line Break line calculation will be according to the CLOSE price of desired session length.
|
H_L_2
Indicates that Line Break line calculation will be according to the (HIGH+LOW)/2 price of desired session length.
|
HIGH
Indicates that Line Break line calculation will be according to the HIGH price of desired session length.
|
LOW
Indicates that Line Break line calculation will be according to the LOW price of desired session length.
|
O_C_2
Indicates that Line Break line calculation will be according to the (OPEN+CLOSE)/2 price of desired session length.
|
OPEN
Indicates that Line Break line calculation will be according to the OPEN price of desired session length.
|
Modifier and Type | Method and Description |
---|---|
static RenkoCreationPoint |
convertToRenkoCreationPoint(CreationPoint creationPoint) |
static CreationPoint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CreationPoint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreationPoint OPEN
public static final CreationPoint CLOSE
public static final CreationPoint HIGH
public static final CreationPoint LOW
public static final CreationPoint H_L_2
public static final CreationPoint O_C_2
public static CreationPoint[] values()
for (CreationPoint c : CreationPoint.values()) System.out.println(c);
public static CreationPoint 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 namejava.lang.NullPointerException
- if the argument is nullpublic static RenkoCreationPoint convertToRenkoCreationPoint(CreationPoint creationPoint)
Copyright © 2024. All rights reserved.