public enum RenkoCreationPoint extends java.lang.Enum<RenkoCreationPoint>
This enum represents the renko creation point. Renko bars are created from sessions.
Example: if renko session is Period.ONE_MIN and creation point is CLOSE
, then renko bars are created between
the close prices of two sequential Period.ONE_MIN candles.
Enum Constant and Description |
---|
CLOSE
Indicates that renko calculation will be according to the CLOSE price of desired renko session.
|
H_L_2
Indicates that renko calculation will be according to the (HIGH+LOW)/2 price of desired renko session.
|
HIGH
Indicates that renko calculation will be according to the HIGH price of desired renko session.
|
LOW
Indicates that renko calculation will be according to the LOW price of desired renko session.
|
O_C_2
Indicates that renko calculation will be according to the (OPEN+CLOSE)/2 price of desired renko session.
|
OPEN
Indicates that renko calculation will be according to the OPEN price of desired renko session.
|
Modifier and Type | Method and Description |
---|---|
static CreationPoint |
convertToCreationPoint(RenkoCreationPoint renkoCreationPoint) |
static RenkoCreationPoint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RenkoCreationPoint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenkoCreationPoint OPEN
public static final RenkoCreationPoint CLOSE
public static final RenkoCreationPoint HIGH
public static final RenkoCreationPoint LOW
public static final RenkoCreationPoint H_L_2
public static final RenkoCreationPoint O_C_2
public static RenkoCreationPoint[] values()
for (RenkoCreationPoint c : RenkoCreationPoint.values()) System.out.println(c);
public static RenkoCreationPoint 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 CreationPoint convertToCreationPoint(RenkoCreationPoint renkoCreationPoint)
Copyright © 2023. All rights reserved.