Modifier and Type | Method and Description |
---|---|
int |
compareTo(BarSize bs) |
boolean |
equals(java.lang.Object o)
Compares this bar size with the given object and returns true if they are equal.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
Enums.IntervalType intervalType,
int interval)
Gets the BarSize with the given minutes and interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
Enums.IntervalType intervalType,
int interval,
boolean intervalPoints)
Gets the BarSize with the given minutes and interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
Enums.IntervalType intervalType,
int interval,
int reverseInterval,
int sourceInterval)
Gets the BarSize with the given source interval, interval and reverse interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
Enums.IntervalType intervalType,
int interval,
int reverseInterval,
int sourceInterval,
boolean intervalPoints)
Gets the BarSize with the given source interval, interval and reverse interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
int interval)
Gets the BarSize with the given minutes and interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
int interval,
boolean intervalPoints)
Gets the BarSize with the given minutes and interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
int interval,
int reverseInterval)
Gets the BarSize with the given minutes and interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
int interval,
int reverseInterval,
boolean intervalPoints)
Gets the BarSize with the given minutes and interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
int interval,
int reverseInterval,
int sourceInterval)
Gets the BarSize with the given source interval, interval and reverse interval.
|
static BarSize |
getBarSize(Enums.BarSizeType type,
int interval,
int reverseInterval,
int sourceInterval,
boolean intervalPoints)
Gets the BarSize with the given source interval, interval and reverse interval.
|
int |
getInterval()
Gets the interval for this bar.
|
int |
getIntervalMinutes()
Gets the interval for this bar.
|
int |
getIntervalSeconds()
Gets the interval for this bar.
|
Enums.IntervalType |
getIntervalType()
Indicates the measurement type of the interval parameter (ie minutes, days, seconds, pips)
|
java.lang.String |
getName()
Gets the display name for this bar size.
|
int |
getReverseInterval()
Gets the reverse bar interval.
|
java.lang.String |
getShortName()
Gets a shortened form of the display name for this bar size.
|
long |
getSizeMillis()
Gets the size of the bar in milliseconds.
|
int |
getSourceInterval()
Gets the source bar interval for building the bars.
|
int |
getSourceIntervalMinutes()
Gets the source bar interval for building the bars (in minutes).
|
Enums.BarSizeType |
getType()
Gets the type of bar size.
|
boolean |
isBidAsk()
Determines if this is a bid/ask graph.
|
boolean |
isConstantVolume()
Determines if this is a constant volume bar size.
|
boolean |
isHybridRenko()
Determines if this is a Hybrid Renko bar.
|
boolean |
isIntervalPoints()
Determines if the interval size is in points vs minimum tick.
|
boolean |
isIntraday()
Indicates if this bar size is intra-day (less than 1 day).
|
boolean |
isLinear()
Determines if this bar is a fixed time interval (in minutes).
|
boolean |
isPointAndFigure()
Determines if this is a Point & Figure bar size.
|
boolean |
isRange()
Determines if this is a constant range bar size.
|
boolean |
isRenko()
Determines if this is a Renko (Japanese Brick) bar size.
|
boolean |
isTick()
Determines if this is a Tick Interval bar (each bar is composed of a constant number of ticks).
|
java.lang.String |
toString()
Returns a printable string representation of this bar size (see getName())
|
public int getIntervalMinutes()
public int getIntervalSeconds()
public int getInterval()
public int getReverseInterval()
public int getSourceIntervalMinutes()
public int getSourceInterval()
public long getSizeMillis()
public boolean isLinear()
public boolean isIntraday()
public Enums.IntervalType getIntervalType()
public Enums.BarSizeType getType()
public boolean isRenko()
public boolean isPointAndFigure()
public boolean isRange()
public boolean isConstantVolume()
public boolean isTick()
public boolean isIntervalPoints()
public boolean isBidAsk()
public boolean isHybridRenko()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- object to compare topublic java.lang.String getName()
public java.lang.String getShortName()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(BarSize bs)
compareTo
in interface java.lang.Comparable<BarSize>
public static BarSize getBarSize(Enums.BarSizeType type, int interval)
public static BarSize getBarSize(Enums.BarSizeType type, int interval, boolean intervalPoints)
public static BarSize getBarSize(Enums.BarSizeType type, Enums.IntervalType intervalType, int interval)
public static BarSize getBarSize(Enums.BarSizeType type, Enums.IntervalType intervalType, int interval, boolean intervalPoints)
public static BarSize getBarSize(Enums.BarSizeType type, int interval, int reverseInterval)
public static BarSize getBarSize(Enums.BarSizeType type, int interval, int reverseInterval, boolean intervalPoints)
public static BarSize getBarSize(Enums.BarSizeType type, int interval, int reverseInterval, int sourceInterval)
public static BarSize getBarSize(Enums.BarSizeType type, int interval, int reverseInterval, int sourceInterval, boolean intervalPoints)
public static BarSize getBarSize(Enums.BarSizeType type, Enums.IntervalType intervalType, int interval, int reverseInterval, int sourceInterval)
public static BarSize getBarSize(Enums.BarSizeType type, Enums.IntervalType intervalType, int interval, int reverseInterval, int sourceInterval, boolean intervalPoints)