public interface DataSeries
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
atr(int period)
Calculates the average true range based on the most recent complete bars.
|
java.lang.Double |
atr(int period,
Instrument instr)
Calculates the average true range based on the most recent complete bars.
|
java.lang.Double |
atr(int index,
int period)
Calculates the average true range.
|
java.lang.Double |
atr(int index,
int period,
Instrument instr)
Calculates the average true range.
|
java.util.List<SwingPoint> |
calcSwingPoints(boolean top,
int strength)
Calculates and returns a list of swing points of a given strength or greater.
|
java.util.List<SwingPoint> |
calcSwingPoints(int strength)
Calculates and returns a list of swing points of a given strength or greater.
|
java.lang.Double |
dema(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Double Exponential Moving Average (2*EMA - EMA(EMA)).
|
java.lang.Double |
dema(int index,
int period,
java.lang.Object key)
Calculates the Double Exponential Moving Average (2*EMA - EMA(EMA)).
|
java.lang.Double |
ema(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Exponential Moving Average.
|
java.lang.Double |
ema(int index,
int period,
java.lang.Object key)
Calculates the Exponential Moving Average.
|
int |
findIndex(long time)
Searches for the index that contains the given time.
|
float |
getAskClose()
Gets the ask close value of the latest price bar.
|
float |
getAskClose(Instrument instr)
Gets the ask close value of the latest price bar for the given instrument.
|
float |
getAskClose(int index)
Gets the ask close value of the price bar at the given index.
|
float |
getAskClose(int index,
Instrument instr)
Gets the ask close value of the price bar for the given instrument at the given index.
|
float |
getAskHigh()
Gets the high ask value of the latest price bar and default instrument.
|
float |
getAskHigh(Instrument instr)
Gets the high ask value of the latest price bar for the given instrument.
|
float |
getAskHigh(int index)
Gets the high ask value of the price bar at the given index for the default instrument.
|
float |
getAskHigh(int index,
Instrument instr)
Gets the high ask value of the price bar for the given instrument at the given index.
|
float |
getAskLow()
Gets the ask low value of the latest price bar.
|
float |
getAskLow(Instrument instr)
Gets the ask low value of the latest price bar.
|
float |
getAskLow(int index)
Gets the ask low value of the price bar at the given index.
|
float |
getAskLow(int index,
Instrument instr)
Gets the ask low value of the price bar at the given index.
|
float |
getAskOpen()
Gets the open ask value of the latest price bar.
|
float |
getAskOpen(Instrument instr)
Gets the open ask value of the latest price bar for the given instrument.
|
float |
getAskOpen(int index)
Gets the open ask value of the price bar at the given index.
|
float |
getAskOpen(int index,
Instrument instr)
Gets the open ask value of the price bar for the given instrument at the given index.
|
java.awt.Color |
getBarColor(int index,
java.lang.Object key)
Gets the color of the bar at the given index with the given value key.
|
java.awt.Color |
getBarColor(java.lang.Object key)
Gets the color of the latest bar with the given key.
|
Enums.BarData |
getBarData()
Gets the type of data available in this data series.
|
BarSize |
getBarSize()
Gets the size of the bars in this data series.
|
float |
getBidClose()
Gets the close bid value of the latest price bar.
|
float |
getBidClose(Instrument instr)
Gets the close bid value of the latest price bar for the given instrument.
|
float |
getBidClose(int index)
Gets the close bid value of the price bar at the given index.
|
float |
getBidClose(int index,
Instrument instr)
Gets the close bid value of the price bar for the given instrument at the given index.
|
float |
getBidHigh()
Gets the high bid value of the latest price bar.
|
float |
getBidHigh(Instrument instr)
Gets the high bid value of the latest price bar for the given instrument.
|
float |
getBidHigh(int index)
Gets the high bid value of the price bar at the given index.
|
float |
getBidHigh(int index,
Instrument instr)
Gets the high bid value of the price bar for the given instrument at the given index.
|
float |
getBidLow()
Gets the bid low value of the latest price bar.
|
float |
getBidLow(Instrument instr)
Gets the bid low value of the latest price bar.
|
float |
getBidLow(int index)
Gets the bid low value of the price bar at the given index.
|
float |
getBidLow(int index,
Instrument instr)
Gets the bid low value of the price bar at the given index.
|
float |
getBidOpen()
Gets the open bid value of the latest price bar.
|
float |
getBidOpen(Instrument instr)
Gets the open bid value of the latest price bar for the given instrument.
|
float |
getBidOpen(int index)
Gets the open bid value of the price bar at the given index.
|
float |
getBidOpen(int index,
Instrument instr)
Gets the open bid value of the price bar for the given instrument at the given index.
|
java.lang.Boolean |
getBoolean(int index,
java.lang.Object key)
Gets the boolean value for the given key at the given index.
|
boolean |
getBoolean(int index,
java.lang.Object key,
boolean def)
Gets the boolean value at the given index for the given key.
|
java.lang.Boolean |
getBoolean(java.lang.Object key)
Gets the boolean value for the given key for the latest index.
|
boolean |
getBoolean(java.lang.Object key,
boolean def)
Gets the boolean value for the given key for the latest index.
|
float |
getClose()
Gets the close value of the latest price bar.
|
float |
getClose(Instrument instr)
Gets the close value of the latest price bar for the given instrument.
|
float |
getClose(int index)
Gets the close value of the price bar at the given index.
|
float |
getClose(int index,
Instrument instr)
Gets the close value of the price bar for the given instrument at the given index.
|
java.lang.Double |
getDouble(Enums.BarInput key,
Instrument instr)
Gets last numeric value (most recent) in the data series specified by the given key.
|
java.lang.Double |
getDouble(int index,
Enums.BarInput key,
Instrument instr)
Gets the numeric value at the given index specified by the given key for the given instrument.
|
java.lang.Double |
getDouble(int index,
java.lang.Object key)
Gets the numeric value at the given index specified by the given key.
|
double |
getDouble(int index,
java.lang.Object key,
double def)
Gets the numeric value at the given index specified by the given key.
|
java.lang.Double |
getDouble(long startTime,
Enums.BarInput key,
Instrument instr)
Gets the numeric value at the given index specified by the given key.
|
java.lang.Double |
getDouble(long startTime,
java.lang.Object key)
Gets the numeric value at the given index specified by the given key.
|
java.lang.Double |
getDouble(java.lang.Object key)
Gets last numeric value (most recent) in the data series specified by the given key.
|
int |
getEndIndex()
Gets the bar index of the last visible bar on the chart.
|
long |
getEndTime()
Gets the end time of the latest bar.
|
long |
getEndTime(int index)
Gets the end time (in milliseconds since 1970) of the bar at the given index.
|
java.lang.Float |
getFloat(Enums.BarInput key,
Instrument instr)
Gets last numeric value (most recent) in the data series specified by the given key.
|
java.lang.Float |
getFloat(int index,
Enums.BarInput key,
Instrument instr)
Gets the numeric value at the given index specified by the given key.
|
java.lang.Float |
getFloat(int index,
java.lang.Object key)
Gets the numeric value at the given index specified by the given key.
|
float |
getFloat(int index,
java.lang.Object key,
float def)
Gets the numeric value at the given index specified by the given key.
|
java.lang.Float |
getFloat(long startTime,
Enums.BarInput key,
Instrument instr)
Gets the numeric value at the given index specified by the given key.
|
java.lang.Float |
getFloat(long startTime,
java.lang.Object key)
Gets the numeric value at the given index specified by the given key.
|
java.lang.Float |
getFloat(java.lang.Object key)
Gets last numeric value (most recent) in the data series specified by the given key.
|
float |
getHigh()
Gets the high value for the latest price bar.
|
float |
getHigh(Instrument instr)
Gets the high value of the price bar of the given instrument for the latest price bar.
|
float |
getHigh(int index)
Gets the value of the price bar at the given index.
|
float |
getHigh(int index,
Instrument instr)
Gets the high value of the price bar of the given instrument at the give index.
|
Instrument |
getInstrument()
Gets the primary instrument for the data in this data series.
|
int |
getInt(int index,
java.lang.Object key)
Convenience method.
|
int |
getInt(java.lang.Object key)
Convenience method.
|
float |
getLow()
Gets the low value of the latest price bar.
|
float |
getLow(Instrument instr)
Gets the low value of the latest price bar for the given instrument.
|
float |
getLow(int index)
Gets the low value of the price bar at the given index.
|
float |
getLow(int index,
Instrument instr)
Gets the low value of the price bar at the given index for the given instrument.
|
java.lang.Float |
getNegativeDM()
Calculates and returns the Negative Directional Movement (-DM) of the latest price bar.
|
java.lang.Float |
getNegativeDM(Instrument instr)
Calculates and returns the Negative Directional Movement (-DM) of the latest price bar.
|
java.lang.Float |
getNegativeDM(int index)
Calculates and returns the Negative Directional Movement (-DM) of the price bar at the given index.
|
java.lang.Float |
getNegativeDM(int index,
Instrument instr)
Calculates and returns the Negative Directional Movement (-DM) of the price bar at the given index.
|
float |
getOpen()
Gets the open value of the latest price bar.
|
float |
getOpen(Instrument instr)
Gets the open value of the latest price bar for the given instrument.
|
float |
getOpen(int index)
Gets the open value of the price bar at the given index.
|
float |
getOpen(int index,
Instrument instr)
Gets the open value of the price bar for the given instrument at the given index.
|
long |
getOpenInterest()
Gets the open interest of the latest price bar.
|
long |
getOpenInterest(Instrument instr)
Gets the open interest of the latest price bar for the given instrument.
|
long |
getOpenInterest(int index)
Gets the open interest of the price bar at the given index.
|
long |
getOpenInterest(int index,
Instrument instr)
Gets the open interest of the price bar for the given instrument at the given index.
|
java.awt.Color |
getPathColor(int index,
java.lang.Object key)
Gets the color of the path at the given index.
|
java.awt.Color |
getPathColor(java.lang.Object key)
Gets the color of the latest index of the path with the given key.
|
java.lang.Float |
getPositiveDM()
Calculates and returns the Positive Directional Movement (+DM) of the latest price bar.
|
java.lang.Float |
getPositiveDM(Instrument instr)
Calculates and returns the Positive Directional Movement (+DM) of the latest price bar.
|
java.lang.Float |
getPositiveDM(int index)
Calculates and returns the Positive Directional Movement (+DM) of the price bar at the given index.
|
java.lang.Float |
getPositiveDM(int index,
Instrument instr)
Calculates and returns the Positive Directional Movement (+DM) of the price bar at the given index.
|
java.awt.Color |
getPriceBarColor()
Gets the color of the latest price bar.
|
java.awt.Color |
getPriceBarColor(int index)
Gets the color of the price bar at the given index.
|
java.lang.Float |
getRange()
Calculates and returns the range of the price bar at the latest index.
|
java.lang.Float |
getRange(Instrument instr)
Calculates and returns the range of the price bar at the latest index.
|
java.lang.Float |
getRange(int index)
Calculates and returns the range of the price bar at the given index.
|
java.lang.Float |
getRange(int index,
Instrument instr)
Calculates and returns the range of the price bar at the given index.
|
float |
getRealHigh()
Gets the real high value of the latest price bar.
|
float |
getRealHigh(int index)
Gets the real high value of the price bar at the given index (Renko Bars only).
|
float |
getRealLow()
Gets the real low value of the latest price bar (Renko Bars only).
|
float |
getRealLow(int index)
Gets the real low value of the price bar at the given index (Renko Bars only).
|
int |
getStartIndex()
Gets the bar index of the first visible bar on the chart.
|
long |
getStartTime()
Gets the start time (in milliseconds since 1970) of the latest bar.
|
long |
getStartTime(int index)
Gets the start time (in milliseconds since 1970) of the bar at the given index.
|
java.lang.Float |
getTrueRange()
Calculates and returns the True Range of the latest price bar.
|
java.lang.Float |
getTrueRange(Instrument instr)
Calculates and returns the True Range of the latest price bar.
|
java.lang.Float |
getTrueRange(int index)
Calculates and returns the True Range of the price bar at the given index.
|
java.lang.Float |
getTrueRange(int index,
Instrument instr)
Calculates and returns the True Range of the price bar at the given index.
|
java.lang.Float |
getTypicalPrice()
Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the latest price bar.
|
java.lang.Float |
getTypicalPrice(Instrument instr)
Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the latest price bar.
|
java.lang.Float |
getTypicalPrice(int index)
Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the price bar at the given index.
|
java.lang.Float |
getTypicalPrice(int index,
Instrument instr)
Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the price bar at the given index.
|
java.lang.Object |
getValue(Enums.BarInput key,
Instrument instr)
Gets last value (most recent) in the data series specified by the given key.
|
java.lang.Object |
getValue(int index,
Enums.BarInput key,
Instrument instr)
Gets last value (most recent) in the data series specified by the given key.
|
java.lang.Object |
getValue(int index,
java.lang.Object key)
Gets the value at the given index associated with the given key.
|
java.lang.Object |
getValue(java.lang.Object key)
Gets last value (most recent) in the data series specified by the given key.
|
long |
getVisibleEndTime()
Gets the end time of the last visible bar on the chart.
|
long |
getVisibleStartTime()
Gets the start time of the first visible bar on the chart.
|
long |
getVolume()
Gets the volume of the latest price bar.
|
long |
getVolume(Instrument instr)
Gets the volume of the latest price bar for the given instrument.
|
long |
getVolume(int index)
Gets the volume of the price bar at the given index.
|
long |
getVolume(int index,
Instrument instr)
Gets the volume of the price bar for the given instrument at the given index.
|
boolean |
hasData()
Determines if data is available for the primary instrument in this series.
|
boolean |
hasData(Instrument instr)
Determines if data is available for the given instrument in this series.
|
java.lang.Double |
highest(int index,
int period,
Enums.BarInput key,
Instrument instr)
Returns the highest value over the given sequence of values.
|
java.lang.Double |
highest(int index,
int period,
java.lang.Object key)
Returns the highest value over the given sequence of values.
|
java.lang.Double |
highestVisible(Enums.BarInput key,
Instrument instr)
Returns the highest value of the visible bars (between getStartIndex() and getEndIndex()).
|
java.lang.Double |
highestVisible(java.lang.Object key)
Returns the highest value of the visible bars (between getStartIndex() and getEndIndex()).
|
boolean |
isBarComplete(int index)
Determines if the bar at the given index is complete Note: this is only relevant if the index is the last in the series.
|
boolean |
isComplete(int index)
Determines if values stored at the bar at the given index are complete.
|
boolean |
isComplete(int index,
java.lang.Object key)
Determines if the values stored at the given index are complete (for the specified value key).
|
boolean |
isLastBarComplete()
Determines if the values stored at the last bar are complete.
|
boolean |
isLatestData()
Determines if the end index is the latest bar.
|
java.lang.Double |
kama(int index,
int period,
double C,
Enums.BarInput key,
Instrument instr)
Calculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
kama(int index,
int period,
double C,
java.lang.Object key)
Calculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
kama(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
kama(int index,
int period,
java.lang.Object key)
Calculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
lowest(int index,
int period,
Enums.BarInput key,
Instrument instr)
Returns the lowest value over the given sequence of values.
|
java.lang.Double |
lowest(int index,
int period,
java.lang.Object key)
Returns the lowest value over the given sequence of values.
|
java.lang.Double |
lowestVisible(Enums.BarInput key,
Instrument instr)
Returns the lowest value of the visible bars (between getStartIndex() and getEndIndex()).
|
java.lang.Double |
lowestVisible(java.lang.Object key)
Returns the lowest value of the visible bars (between getStartIndex() and getEndIndex()).
|
java.lang.Double |
ma(Enums.MAMethod method,
int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates a Moving Average.
|
java.lang.Double |
ma(Enums.MAMethod method,
int index,
int period,
java.lang.Object key)
Calculates a Moving Average.
|
java.lang.Double |
mema(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Modified Exponential Moving Average.
|
java.lang.Double |
mema(int index,
int period,
java.lang.Object key)
Calculates the Modified Exponential Moving Average.
|
float |
mfm(int index)
Calculates the Money Flow Multiplier.
|
float |
mfm(int index,
Instrument instr)
Calculates the Money Flow Multiplier.
|
java.lang.Double |
roc(int index,
int period,
Enums.BarInput key,
Instrument instr)
Rate Of Change.
|
java.lang.Double |
roc(int index,
int period,
java.lang.Object key)
Rate Of Change.
|
void |
setBarColor(int index,
java.lang.Object key,
java.awt.Color color)
Sets the color of the bar at the given index.
|
void |
setBarColor(java.lang.Object key,
java.awt.Color color)
Sets the color of the bar at the latest index.
|
void |
setBoolean(int index,
java.lang.Object key,
java.lang.Boolean value)
Sets the boolean value for the given index and key.
|
void |
setBoolean(java.lang.Object key,
java.lang.Boolean value)
Sets the boolean value for the latest index and key.
|
void |
setComplete(int index)
Indicate the the values stored at the specified index are complete.
|
void |
setComplete(int index,
boolean b)
Indicate the the values stored at the specified index are complete.
|
void |
setComplete(int index,
java.lang.Object key)
Indicate the the values stored at the specified index are complete for the specified value key (no further computation is required).
|
void |
setComplete(int index,
java.lang.Object key,
boolean b)
Indicate the the values stored at the specified index are complete for the specified value key (no further computation is required).
|
void |
setDouble(int index,
java.lang.Object key,
java.lang.Double value)
Sets a numeric value at the given index and identifies it using the key.
|
void |
setDouble(java.lang.Object key,
java.lang.Double value)
Sets a numeric value at the latest index and identifies it using the key.
|
void |
setFloat(int index,
java.lang.Object key,
java.lang.Float value)
Sets a numeric value at the given index and identifies it using the key.
|
void |
setFloat(java.lang.Object key,
java.lang.Float value)
Sets a numeric value at the latest index and identifies it using the key.
|
void |
setInt(int index,
java.lang.Object key,
int val)
Convenience method.
|
void |
setInt(java.lang.Object key,
int val)
Convenience method.
|
void |
setPathColor(int index,
java.lang.Object key,
java.awt.Color color)
Sets the color of the path at the given index.
|
void |
setPathColor(java.lang.Object key,
java.awt.Color color)
Sets the color of the path at the latest index.
|
void |
setPriceBarColor(java.awt.Color color)
Sets the color of the price bar at the latest index.
|
void |
setPriceBarColor(int index,
java.awt.Color color)
Sets the color of the price bar at the given index.
|
void |
setValue(int index,
java.lang.Object key,
java.lang.Object value)
Sets the value for the given index and key.
|
void |
setValue(java.lang.Object key,
java.lang.Object value)
Sets the value for the latest index and key.
|
int |
size()
Gets the number of elements in this data series.
|
java.lang.Double |
sma(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Simple Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
sma(int index,
int period,
java.lang.Object key)
Calculates the Simple Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
smma(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Smoothed Moving Average.
|
java.lang.Double |
smma(int index,
int period,
java.lang.Object key)
Calculates the Smoothed Moving Average.
|
java.lang.Double |
std(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Standard Deviation (null is returned if there is not enough data).
|
java.lang.Double |
std(int index,
int period,
java.lang.Object key)
Calculates the Standard Deviation (null is returned if there is not enough data).
|
java.lang.Double |
stochasticK(int index,
int period)
Calculates the stochastic 'K' value using price data.
|
java.lang.Double |
stochasticK(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the stochastic 'K' value using the given key.
|
java.lang.Double |
stochasticK(int index,
int period,
Instrument instr)
Calculates the stochastic 'K' value using price data.
|
java.lang.Double |
stochasticK(int index,
int period,
java.lang.Object key)
Calculates the stochastic 'K' value using the given key.
|
java.lang.Double |
sum(int index,
int period,
Enums.BarInput key,
Instrument instr)
Returns the sum of the values over the given sequence of values.
|
java.lang.Double |
sum(int index,
int period,
java.lang.Object key)
Returns the sum of the values over the given sequence of values.
|
java.lang.Double |
tema(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Triple Exponential Moving Average (3*EMA - 3*EMA(EMA) + EMA(EMA(EMA))).
|
java.lang.Double |
tema(int index,
int period,
java.lang.Object key)
Calculates the Triple Exponential Moving Average (3*EMA - 3*EMA(EMA) + EMA(EMA(EMA))).
|
java.lang.Double |
tma(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Triangular Moving Average (SMA(SMA)).
|
java.lang.Double |
tma(int index,
int period,
java.lang.Object key)
Calculates the Triangular Moving Average (SMA(SMA)).
|
java.lang.Double |
vwma(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Volume Weighted Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
vwma(int index,
int period,
java.lang.Object key)
Calculates the Volume Weighted Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
wma(int index,
int period,
Enums.BarInput key,
Instrument instr)
Calculates the Weighted Moving Average (null is returned if there is not enough data).
|
java.lang.Double |
wma(int index,
int period,
java.lang.Object key)
Calculates the Weighted Moving Average (null is returned if there is not enough data).
|
int size()
BarSize getBarSize()
boolean hasData(Instrument instr)
instr
- instrumentboolean hasData()
Enums.BarData getBarData()
Instrument getInstrument()
float getHigh(int index)
index
- bar indexfloat getHigh()
float getHigh(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getHigh(Instrument instr)
instr
- instrumentfloat getAskHigh(int index)
index
- bar indexfloat getAskHigh()
float getAskHigh(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getAskHigh(Instrument instr)
instr
- instrumentfloat getBidHigh(int index)
index
- bar indexfloat getBidHigh()
float getBidHigh(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getBidHigh(Instrument instr)
instr
- instrumentfloat getRealHigh(int index)
index
- bar indexfloat getRealHigh()
float getLow(int index)
index
- bar indexfloat getLow()
float getAskLow(int index)
index
- bar indexfloat getAskLow()
float getBidLow(int index)
index
- bar indexfloat getBidLow()
float getLow(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getLow(Instrument instr)
instr
- instrumentfloat getAskLow(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getAskLow(Instrument instr)
instr
- instrumentfloat getBidLow(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getBidLow(Instrument instr)
instr
- instrumentfloat getRealLow(int index)
index
- bar indexfloat getRealLow()
float getOpen(int index)
index
- bar indexfloat getOpen()
float getAskOpen(int index)
index
- bar indexfloat getAskOpen()
float getBidOpen(int index)
index
- bar indexfloat getBidOpen()
float getOpen(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getOpen(Instrument instr)
instr
- instrumentfloat getAskOpen(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getAskOpen(Instrument instr)
instr
- instrumentfloat getBidOpen(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getBidOpen(Instrument instr)
instr
- instrumentfloat getClose(int index)
index
- bar indexfloat getClose()
float getAskClose(int index)
index
- bar indexfloat getAskClose()
float getBidClose(int index)
index
- bar indexfloat getBidClose()
float getClose(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getClose(Instrument instr)
instr
- instrumentfloat getAskClose(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getAskClose(Instrument instr)
instr
- instrumentfloat getBidClose(int index, Instrument instr)
index
- bar indexinstr
- instrumentfloat getBidClose(Instrument instr)
instr
- instrumentlong getVolume(int index)
index
- bar indexlong getVolume()
long getVolume(int index, Instrument instr)
index
- bar indexinstr
- instrumentlong getVolume(Instrument instr)
instr
- instrumentlong getOpenInterest(int index)
index
- bar indexlong getOpenInterest()
long getOpenInterest(int index, Instrument instr)
index
- bar indexinstr
- instrumentlong getOpenInterest(Instrument instr)
instr
- instrumentlong getStartTime()
long getStartTime(int index)
index
- bar indexlong getEndTime()
long getEndTime(int index)
index
- bar indexint getStartIndex()
long getVisibleStartTime()
int getEndIndex()
long getVisibleEndTime()
boolean isLatestData()
void setComplete(int index)
index
- bar indexvoid setComplete(int index, boolean b)
index
- bar indexb
- true if the bar is completeboolean isComplete(int index)
index
- bar indexboolean isLastBarComplete()
boolean isBarComplete(int index)
index
- bar indexvoid setComplete(int index, java.lang.Object key)
index
- bar indexkey
- value keyvoid setComplete(int index, java.lang.Object key, boolean b)
index
- bar indexkey
- value keyb
- true if the bar is completeboolean isComplete(int index, java.lang.Object key)
index
- bar indexkey
- value keyvoid setDouble(int index, java.lang.Object key, java.lang.Double value)
index
- bar indexkey
- value keyvalue
- void setDouble(java.lang.Object key, java.lang.Double value)
key
- value keyvalue
- double valuejava.lang.Double getDouble(int index, java.lang.Object key)
index
- bar indexkey
- value keyjava.lang.Double getDouble(int index, Enums.BarInput key, Instrument instr)
index
- bar indexkey
- BarInput keyinstr
- instrumentdouble getDouble(int index, java.lang.Object key, double def)
index
- bar indexkey
- value keydef
- default value to return if no value was foundjava.lang.Double getDouble(long startTime, java.lang.Object key)
startTime
- start time of the bar in milliseconds since 1970key
- value keyjava.lang.Double getDouble(long startTime, Enums.BarInput key, Instrument instr)
startTime
- start time of the bar in milliseconds since 1970key
- value keyinstr
- instrumentjava.lang.Double getDouble(java.lang.Object key)
key
- value keyjava.lang.Double getDouble(Enums.BarInput key, Instrument instr)
key
- input keyinstr
- instrumentvoid setFloat(int index, java.lang.Object key, java.lang.Float value)
index
- index of the barkey
- key that identifies the valuevalue
- void setFloat(java.lang.Object key, java.lang.Float value)
key
- key that identifies the valuevalue
- java.lang.Float getFloat(int index, java.lang.Object key)
index
- bar indexkey
- key that identifies the valuejava.lang.Float getFloat(int index, Enums.BarInput key, Instrument instr)
index
- bar indexkey
- input keyinstr
- instrumentfloat getFloat(int index, java.lang.Object key, float def)
index
- bar indexkey
- input keydef
- default value to return if nulljava.lang.Float getFloat(long startTime, java.lang.Object key)
startTime
- start time of the bar in milliseconds since 1970key
- value keyjava.lang.Float getFloat(long startTime, Enums.BarInput key, Instrument instr)
startTime
- milliseconds since 1970key
- bar input keyinstr
- instrumentjava.lang.Float getFloat(java.lang.Object key)
key
- value keyjava.lang.Float getFloat(Enums.BarInput key, Instrument instr)
key
- bar input keyinstr
- instrumentint findIndex(long time)
time
- time in milliseconds since 1970int getInt(int index, java.lang.Object key)
index
- bar indexkey
- value keyint getInt(java.lang.Object key)
key
- value keyvoid setInt(int index, java.lang.Object key, int val)
index
- bar indexkey
- value keyval
- value to assignvoid setInt(java.lang.Object key, int val)
key
- value keyval
- integer valuevoid setBoolean(int index, java.lang.Object key, java.lang.Boolean value)
index
- bar indexkey
- value keyvalue
- boolean value to assignvoid setBoolean(java.lang.Object key, java.lang.Boolean value)
key
- value keyvalue
- boolean value to assignjava.lang.Boolean getBoolean(java.lang.Object key)
key
- value keyboolean getBoolean(java.lang.Object key, boolean def)
key
- value keydef
- default value to returnjava.lang.Boolean getBoolean(int index, java.lang.Object key)
index
- bar indexkey
- value keyboolean getBoolean(int index, java.lang.Object key, boolean def)
index
- bar indexkey
- value keydef
- default value to return if no value is foundvoid setValue(int index, java.lang.Object key, java.lang.Object value)
index
- bar indexkey
- value keyvalue
- value to storevoid setValue(java.lang.Object key, java.lang.Object value)
key
- value keyvalue
- value to storejava.lang.Object getValue(int index, java.lang.Object key)
index
- bar indexkey
- value keyjava.lang.Object getValue(java.lang.Object key)
key
- value keyjava.lang.Object getValue(Enums.BarInput key, Instrument instr)
key
- bar input keyinstr
- instrumentjava.lang.Object getValue(int index, Enums.BarInput key, Instrument instr)
index
- bar indexkey
- input keyinstr
- instrumentvoid setPriceBarColor(int index, java.awt.Color color)
index
- bar indexcolor
- bar colorvoid setPriceBarColor(java.awt.Color color)
color
- bar colorjava.awt.Color getPriceBarColor(int index)
index
- bar indexjava.awt.Color getPriceBarColor()
void setBarColor(int index, java.lang.Object key, java.awt.Color color)
index
- bar indexkey
- bar key (identifies the bar)color
- bar colorvoid setBarColor(java.lang.Object key, java.awt.Color color)
key
- bar key (identifies the bar)color
- bar colorjava.awt.Color getBarColor(int index, java.lang.Object key)
index
- bar indexkey
- bar key (identifies the bar)java.awt.Color getBarColor(java.lang.Object key)
key
- bar key (identifies the bar)void setPathColor(int index, java.lang.Object key, java.awt.Color color)
index
- bar indexkey
- value key (identifies the path)color
- color to assignvoid setPathColor(java.lang.Object key, java.awt.Color color)
key
- path key (identifies the path)color
- color to assignjava.awt.Color getPathColor(int index, java.lang.Object key)
index
- bar indexkey
- path key (identifies the path)java.awt.Color getPathColor(java.lang.Object key)
key
- path key (identifies the path)java.lang.Float getTrueRange(int index)
index
- bar indexjava.lang.Float getTrueRange()
java.lang.Float getTrueRange(int index, Instrument instr)
index
- bar indexinstr
- instrumentjava.lang.Float getTrueRange(Instrument instr)
instr
- instrumentjava.lang.Float getTypicalPrice(int index)
index
- bar indexjava.lang.Float getTypicalPrice()
java.lang.Float getTypicalPrice(int index, Instrument instr)
index
- bar indexinstr
- instrumentjava.lang.Float getTypicalPrice(Instrument instr)
instr
- instrumentjava.lang.Float getRange()
java.lang.Float getRange(Instrument instr)
instr
- instrumentjava.lang.Float getRange(int index)
index
- bar indexjava.lang.Float getRange(int index, Instrument instr)
index
- bar indexinstr
- instrumentjava.lang.Float getPositiveDM()
java.lang.Float getPositiveDM(Instrument instr)
instr
- instrumentjava.lang.Float getPositiveDM(int index)
index
- bar indexjava.lang.Float getPositiveDM(int index, Instrument instr)
index
- bar indexinstr
- instrumentjava.lang.Float getNegativeDM()
java.lang.Float getNegativeDM(int index)
index
- bar indexjava.lang.Float getNegativeDM(Instrument instr)
instr
- instrumentjava.lang.Float getNegativeDM(int index, Instrument instr)
index
- bar indexinstr
- instrumentjava.lang.Double atr(int period)
period
- number of barsjava.lang.Double atr(int period, Instrument instr)
period
- number of barsinstr
- instrumentjava.lang.Double atr(int index, int period)
index
- bar indexperiod
- number of barsjava.lang.Double atr(int index, int period, Instrument instr)
index
- bar indexperiod
- number of barsinstr
- instrumentjava.lang.Double ma(Enums.MAMethod method, int index, int period, java.lang.Object key)
method
- calculation methodindex
- bar index to start atperiod
- number of barskey
- value keyjava.lang.Double ma(Enums.MAMethod method, int index, int period, Enums.BarInput key, Instrument instr)
method
- calculation methodindex
- bar index to start atperiod
- number of barskey
- bar input keyinstr
- instrumentjava.lang.Double stochasticK(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of barskey
- value keyjava.lang.Double stochasticK(int index, int period)
index
- bar indexperiod
- number of barsjava.lang.Double stochasticK(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of barskey
- bar input keyinstr
- instrumentjava.lang.Double stochasticK(int index, int period, Instrument instr)
index
- bar indexperiod
- number of barsinstr
- instrumentfloat mfm(int index)
index
- bar indexfloat mfm(int index, Instrument instr)
index
- bar indexinstr
- instrumentjava.lang.Double roc(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double roc(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double std(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double std(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double sma(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double sma(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double wma(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double wma(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double ema(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double ema(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double dema(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double dema(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double tema(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double tema(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double tma(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double tma(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double mema(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double mema(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double smma(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double smma(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double vwma(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double vwma(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double kama(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double kama(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double kama(int index, int period, double C, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backC
- constantkey
- value keyjava.lang.Double kama(int index, int period, double C, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backC
- constantkey
- bar input keyinstr
- instrumentjava.lang.Double highest(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double lowest(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to look backkey
- value keyjava.lang.Double highestVisible(java.lang.Object key)
key
- value keyjava.lang.Double lowestVisible(java.lang.Object key)
key
- value keyjava.lang.Double highest(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double lowest(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to look backkey
- bar input keyinstr
- instrumentjava.lang.Double highestVisible(Enums.BarInput key, Instrument instr)
key
- bar input keyinstr
- instrumentjava.lang.Double lowestVisible(Enums.BarInput key, Instrument instr)
key
- bar input keyinstr
- instrumentjava.lang.Double sum(int index, int period, java.lang.Object key)
index
- bar indexperiod
- number of bars to sumkey
- value keyjava.lang.Double sum(int index, int period, Enums.BarInput key, Instrument instr)
index
- bar indexperiod
- number of bars to sumkey
- bar input keyinstr
- instrumentjava.util.List<SwingPoint> calcSwingPoints(boolean top, int strength)
top
- true if calculating the top swing pointsstrength
- strength of the swing pointsjava.util.List<SwingPoint> calcSwingPoints(int strength)
strength
- strength of the swing points