Interface DataSeries
public interface DataSeries
Represents a series of price bars that are displayed on a chart.
 Values of the price bars are accessed by specifying the index when retrieving a value.
 Study values are stored in this structure as they are computed by a study.
 This interface also provides many convenience method for calculating moving averages, 
 swing points, highest high, etc.
- 
Method SummaryModifier and TypeMethodDescriptionatr(int period) Calculates the average true range based on the most recent complete bars.atr(int index, int period) Calculates the average true range.atr(int index, int period, Instrument instr) Calculates the average true range.atr(int period, Instrument instr) Calculates the average true range based on the most recent complete bars.calcSwingPoints(boolean top, int strength) Calculates and returns a list of swing points of a given strength or greater.calcSwingPoints(boolean top, int strength, int maxBars) Calculates and returns a list of swing points of a given strength or greater.calcSwingPoints(int strength) Calculates and returns a list of swing points of a given strength or greater.calcSwingPoints(int strength, int maxBars) Calculates and returns a list of swing points of a given strength or greater.dema(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Double Exponential Moving Average (2*EMA - EMA(EMA)).Calculates the Double Exponential Moving Average (2*EMA - EMA(EMA)).ema(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Exponential Moving Average.Calculates the Exponential Moving Average.intfindIndex(long time) Searches for the index that contains the given time.floatGets the ask close value of the latest price bar.floatgetAskClose(int index) Gets the ask close value of the price bar at the given index.floatgetAskClose(int index, Instrument instr) Gets the ask close value of the price bar for the given instrument at the given index.floatgetAskClose(Instrument instr) Gets the ask close value of the latest price bar for the given instrument.floatGets the high ask value of the latest price bar and default instrument.floatgetAskHigh(int index) Gets the high ask value of the price bar at the given index for the default instrument.floatgetAskHigh(int index, Instrument instr) Gets the high ask value of the price bar for the given instrument at the given index.floatgetAskHigh(Instrument instr) Gets the high ask value of the latest price bar for the given instrument.floatGets the ask low value of the latest price bar.floatgetAskLow(int index) Gets the ask low value of the price bar at the given index.floatgetAskLow(int index, Instrument instr) Gets the ask low value of the price bar at the given index.floatgetAskLow(Instrument instr) Gets the ask low value of the latest price bar.floatGets the open ask value of the latest price bar.floatgetAskOpen(int index) Gets the open ask value of the price bar at the given index.floatgetAskOpen(int index, Instrument instr) Gets the open ask value of the price bar for the given instrument at the given index.floatgetAskOpen(Instrument instr) Gets the open ask value of the latest price bar for the given instrument.getBarColor(int index, Object key) Gets the color of the bar at the given index with the given value key.getBarColor(Object key) Gets the color of the latest bar with the given key.Gets the type of data available in this data series.Gets the size of the bars in this data series.floatGets the close bid value of the latest price bar.floatgetBidClose(int index) Gets the close bid value of the price bar at the given index.floatgetBidClose(int index, Instrument instr) Gets the close bid value of the price bar for the given instrument at the given index.floatgetBidClose(Instrument instr) Gets the close bid value of the latest price bar for the given instrument.floatGets the high bid value of the latest price bar.floatgetBidHigh(int index) Gets the high bid value of the price bar at the given index.floatgetBidHigh(int index, Instrument instr) Gets the high bid value of the price bar for the given instrument at the given index.floatgetBidHigh(Instrument instr) Gets the high bid value of the latest price bar for the given instrument.floatGets the bid low value of the latest price bar.floatgetBidLow(int index) Gets the bid low value of the price bar at the given index.floatgetBidLow(int index, Instrument instr) Gets the bid low value of the price bar at the given index.floatgetBidLow(Instrument instr) Gets the bid low value of the latest price bar.floatGets the open bid value of the latest price bar.floatgetBidOpen(int index) Gets the open bid value of the price bar at the given index.floatgetBidOpen(int index, Instrument instr) Gets the open bid value of the price bar for the given instrument at the given index.floatgetBidOpen(Instrument instr) Gets the open bid value of the latest price bar for the given instrument.getBoolean(int index, Object key) Gets the boolean value for the given key at the given index.booleangetBoolean(int index, Object key, boolean def) Gets the boolean value at the given index for the given key.getBoolean(Object key) Gets the boolean value for the given key for the latest index.booleangetBoolean(Object key, boolean def) Gets the boolean value for the given key for the latest index.floatgetClose()Gets the close value of the latest price bar.floatgetClose(int index) Gets the close value of the price bar at the given index.floatgetClose(int index, Instrument instr) Gets the close value of the price bar for the given instrument at the given index.floatgetClose(Instrument instr) Gets the close value of the latest price bar for the given instrument.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.Gets the numeric value at the given index specified by the given key.doubleGets the numeric value at the given index specified by the given key.getDouble(long startTime, Enums.BarInput key, Instrument instr) Gets the numeric value at the given index specified by the given key.Gets the numeric value at the given index specified by the given key.getDouble(Enums.BarInput key, Instrument instr) Gets last numeric value (most recent) in the data series specified by the given key.Gets last numeric value (most recent) in the data series specified by the given key.intGets the bar index of the last visible bar on the chart.longGets the end time of the latest bar.longgetEndTime(int index) Gets the end time (in milliseconds since 1970) of the bar at the given index.longgetEndTime(Instrument instr) Gets the end time (in milliseconds since 1970) of the latest bar for the given instrument.getFloat(int index, Enums.BarInput key, Instrument instr) Gets the numeric value at the given index specified by the given key.Gets the numeric value at the given index specified by the given key.floatGets the numeric value at the given index specified by the given key.getFloat(long startTime, Enums.BarInput key, Instrument instr) Gets the numeric value at the given index specified by the given key.Gets the numeric value at the given index specified by the given key.getFloat(Enums.BarInput key, Instrument instr) Gets last numeric value (most recent) in the data series specified by the given key.Gets last numeric value (most recent) in the data series specified by the given key.default FloatGets last numeric value (most recent) in the data series specified by the given key.floatgetHigh()Gets the high value for the latest price bar.floatgetHigh(int index) Gets the value of the price bar at the given index.floatgetHigh(int index, Instrument instr) Gets the high value of the price bar of the given instrument at the give index.floatgetHigh(Instrument instr) Gets the high value of the price bar of the given instrument for the latest price bar.Gets the primary instrument for the data in this data series.intConvenience method.intConvenience method.floatgetLow()Gets the low value of the latest price bar.floatgetLow(int index) Gets the low value of the price bar at the given index.floatgetLow(int index, Instrument instr) Gets the low value of the price bar at the given index for the given instrument.floatgetLow(Instrument instr) Gets the low value of the latest price bar for the given instrument.Calculates and returns the Negative Directional Movement (-DM) of the latest price bar.getNegativeDM(int index) Calculates and returns the Negative Directional Movement (-DM) of the price bar at the given index.getNegativeDM(int index, Instrument instr) Calculates and returns the Negative Directional Movement (-DM) of the price bar at the given index.getNegativeDM(Instrument instr) Calculates and returns the Negative Directional Movement (-DM) of the latest price bar.floatgetOpen()Gets the open value of the latest price bar.floatgetOpen(int index) Gets the open value of the price bar at the given index.floatgetOpen(int index, Instrument instr) Gets the open value of the price bar for the given instrument at the given index.floatgetOpen(Instrument instr) Gets the open value of the latest price bar for the given instrument.longGets the open interest of the latest price bar.longgetOpenInterest(int index) Gets the open interest of the price bar at the given index.longgetOpenInterest(int index, Instrument instr) Gets the open interest of the price bar for the given instrument at the given index.longgetOpenInterest(Instrument instr) Gets the open interest of the latest price bar for the given instrument.getPathColor(int index, Object key) Gets the color of the path at the given index.getPathColor(Object key) Gets the color of the latest index of the path with the given key.Calculates and returns the Positive Directional Movement (+DM) of the latest price bar.getPositiveDM(int index) Calculates and returns the Positive Directional Movement (+DM) of the price bar at the given index.getPositiveDM(int index, Instrument instr) Calculates and returns the Positive Directional Movement (+DM) of the price bar at the given index.getPositiveDM(Instrument instr) Calculates and returns the Positive Directional Movement (+DM) of the latest price bar.Gets the color of the latest price bar.getPriceBarColor(int index) Gets the color of the price bar at the given index.getRange()Calculates and returns the range of the price bar at the latest index.getRange(int index) Calculates and returns the range of the price bar at the given index.getRange(int index, Instrument instr) Calculates and returns the range of the price bar at the given index.getRange(Instrument instr) Calculates and returns the range of the price bar at the latest index.floatGets the real high value of the latest price bar.floatgetRealHigh(int index) Gets the real high value of the price bar at the given index (Renko Bars only).floatGets the real low value of the latest price bar (Renko Bars only).floatgetRealLow(int index) Gets the real low value of the price bar at the given index (Renko Bars only).intGets the bar index of the first visible bar on the chart.longGets the start time (in milliseconds since 1970) of the latest bar.longgetStartTime(int index) Gets the start time (in milliseconds since 1970) of the bar at the given index.longgetStartTime(Instrument instr) Gets the start time (in milliseconds since 1970) of the latest bar for the given instrument.Calculates and returns the True Range of the latest price bar.getTrueRange(int index) Calculates and returns the True Range of the price bar at the given index.getTrueRange(int index, Instrument instr) Calculates and returns the True Range of the price bar at the given index.getTrueRange(Instrument instr) Calculates and returns the True Range of the latest price bar.Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the latest price bar.getTypicalPrice(int index) Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the price bar at the given index.getTypicalPrice(int index, Instrument instr) Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the price bar at the given index.getTypicalPrice(Instrument instr) Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the latest price bar.getValue(int index, Enums.BarInput key, Instrument instr) Gets last value (most recent) in the data series specified by the given key.Gets the value at the given index associated with the given key.getValue(Enums.BarInput key, Instrument instr) Gets last value (most recent) in the data series specified by the given key.Gets last value (most recent) in the data series specified by the given key.longGets the end time of the last visible bar on the chart.longGets the start time of the first visible bar on the chart.longGets the volume of the latest price bar.longgetVolume(int index) Gets the volume of the price bar at the given index.longgetVolume(int index, Instrument instr) Gets the volume of the price bar for the given instrument at the given index.longgetVolume(Instrument instr) Gets the volume of the latest price bar for the given instrument.floatGets the volume of the latest price bar (as a floating point value).floatgetVolumeAsFloat(int index) Gets the volume of the price bar at the given index (as a floating point value).floatgetVolumeAsFloat(int index, Instrument instr) Gets the volume of the price bar for the given instrument at the given index (as a floating point value).floatgetVolumeAsFloat(Instrument instr) Gets the volume of the latest price bar for the given instrument (as a floating point value).booleanhasData()Determines if data is available for the primary instrument in this series.booleanhasData(Instrument instr) Determines if data is available for the given instrument in this series.highest(int index, int period, Enums.BarInput key, Instrument instr) Returns the highest value over the given sequence of values.Returns the highest value over the given sequence of values.highestVisible(Enums.BarInput key, Instrument instr) Returns the highest value of the visible bars (between getStartIndex() and getEndIndex()).highestVisible(Object key) Returns the highest value of the visible bars (between getStartIndex() and getEndIndex()).booleanisBarComplete(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.booleanisComplete(int index) Determines if values stored at the bar at the given index are complete.booleanisComplete(int index, Object key) Determines if the values stored at the given index are complete (for the specified value key).booleanDetermines if the values stored at the last bar are complete.booleanDetermines if the end index is the latest bar.booleanisPathBreak(int index, Object key) Indicates that there is a break in a series of values that is rendered as a path.booleanisSignalTriggered(int index, Object key) Checks if the given signal has been triggered for the given bar index.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).Calculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data).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).Calculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data).lowest(int index, int period, Enums.BarInput key) Returns the lowest value over the given sequence of values.lowest(int index, int period, Enums.BarInput key, Instrument instr) Returns the lowest value over the given sequence of values.Returns the lowest value over the given sequence of values.lowestVisible(Enums.BarInput key, Instrument instr) Returns the lowest value of the visible bars (between getStartIndex() and getEndIndex()).lowestVisible(Object key) Returns the lowest value of the visible bars (between getStartIndex() and getEndIndex()).ma(Enums.MAMethod method, int index, int period, Enums.BarInput key, Instrument instr) Calculates a Moving Average.ma(Enums.MAMethod method, int index, int period, Object key) Calculates a Moving Average.mema(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Modified Exponential Moving Average.Calculates the Modified Exponential Moving Average.floatmfm(int index) Calculates the Money Flow Multiplier.floatmfm(int index, Instrument instr) Calculates the Money Flow Multiplier.roc(int index, int period, Enums.BarInput key, Instrument instr) Rate Of Change.Rate Of Change.voidsetBarColor(int index, Object key, Color color) Sets the color of the bar at the given index.voidsetBarColor(Object key, Color color) Sets the color of the bar at the latest index.voidsetBoolean(int index, Object key, Boolean value) Sets the boolean value for the given index and key.voidsetBoolean(Object key, Boolean value) Sets the boolean value for the latest index and key.voidsetComplete(int index) Indicate the the values stored at the specified index are complete.voidsetComplete(int index, boolean b) Indicate the the values stored at the specified index are complete.voidsetComplete(int index, Object key) Indicate the the values stored at the specified index are complete for the specified value key (no further computation is required).voidsetComplete(int index, 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).voidSets a numeric value at the given index and identifies it using the key.voidSets a numeric value at the latest index and identifies it using the key.voidSets a numeric value at the given index and identifies it using the key.voidSets a numeric value at the latest index and identifies it using the key.voidConvenience method.voidConvenience method.voidsetPathBreak(int index, Object key, boolean b) Indicates that there is a break in a series of values that is rendered as a path.voidsetPathColor(int index, Object key, Color color) Sets the color of the path at the given index.voidsetPathColor(Object key, Color color) Sets the color of the path at the latest index.voidsetPriceBarColor(int index, Color color) Sets the color of the price bar at the given index.voidsetPriceBarColor(Color color) Sets the color of the price bar at the latest index.voidsetSignalTriggered(int index, Object key, boolean b) Sets the flag indicating that the given signal was triggered for the given bar index.voidSets the value for the given index and key.voidSets the value for the latest index and key.intsize()Gets the number of elements in this data series.sma(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Simple Moving Average (null is returned if there is not enough data).Calculates the Simple Moving Average (null is returned if there is not enough data).smma(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Smoothed Moving Average.Calculates the Smoothed Moving Average.std(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Standard Deviation (null is returned if there is not enough data).Calculates the Standard Deviation (null is returned if there is not enough data).stochasticK(int index, int period) Calculates the stochastic 'K' value using price data.stochasticK(int index, int period, Enums.BarInput key, Instrument instr) Calculates the stochastic 'K' value using the given key.stochasticK(int index, int period, Instrument instr) Calculates the stochastic 'K' value using price data.stochasticK(int index, int period, Object key) Calculates the stochastic 'K' value using the given key.sum(int index, int period, Enums.BarInput key, Instrument instr) Returns the sum of the values over the given sequence of values.Returns the sum of the values over the given sequence of values.tema(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Triple Exponential Moving Average (3*EMA - 3*EMA(EMA) + EMA(EMA(EMA))).Calculates the Triple Exponential Moving Average (3*EMA - 3*EMA(EMA) + EMA(EMA(EMA))).tma(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Triangular Moving Average (SMA(SMA)).Calculates the Triangular Moving Average (SMA(SMA)).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).Calculates the Volume Weighted Moving Average (null is returned if there is not enough data).wma(int index, int period, Enums.BarInput key, Instrument instr) Calculates the Weighted Moving Average (null is returned if there is not enough data).Calculates the Weighted Moving Average (null is returned if there is not enough data).
- 
Method Details- 
sizeint size()Gets the number of elements in this data series.- Returns:
- the number of elements in this data series.
 
- 
getBarSizeBarSize getBarSize()Gets the size of the bars in this data series.- Returns:
- the bar size of this data series.
 
- 
hasDataDetermines if data is available for the given instrument in this series.- Parameters:
- instr- instrument
- Returns:
- true if data is available for this instrument.
 
- 
hasDataboolean hasData()Determines if data is available for the primary instrument in this series.- Returns:
- true if data is available in this series.
 
- 
getBarDataEnums.BarData getBarData()Gets the type of data available in this data series.- Returns:
- the type of bar data in this series (ie Ask, Bid, MidPoint and Last Price)
 
- 
getInstrumentInstrument getInstrument()Gets the primary instrument for the data in this data series.- Returns:
- the primary instrument for this data series.
 
- 
getHighfloat getHigh(int index) Gets the value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the high value of the price bar at the given index.
 
- 
getHighfloat getHigh()Gets the high value for the latest price bar.- Returns:
- the high value of the latest price bar.
 
- 
getHighGets the high value of the price bar of the given instrument at the give index. Note: this works for linear bar sizes only.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the high value of the price bar of the given instrument at the given index.
 
- 
getHighGets the high value of the price bar of the given instrument for the latest price bar. Note: this works for linear bar sizes only. Note: this works for linear bar sizes only.- Parameters:
- instr- instrument
- Returns:
- high bar value for the instrument at the latest index
 
- 
getAskHighfloat getAskHigh(int index) Gets the high ask value of the price bar at the given index for the default instrument.- Parameters:
- index- bar index
- Returns:
- the high ask value of the price bar at the given index.
 
- 
getAskHighfloat getAskHigh()Gets the high ask value of the latest price bar and default instrument.- Returns:
- the high ask value of the latest price bar.
 
- 
getAskHighGets the high ask value of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the high ask value of the price bar for the given instrument at the given index.
 
- 
getAskHighGets the high ask value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the high ask value of the latest price bar for the given instrument.
 
- 
getBidHighfloat getBidHigh(int index) Gets the high bid value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the high bid value of the price bar at the given index.
 
- 
getBidHighfloat getBidHigh()Gets the high bid value of the latest price bar.- Returns:
- the high bid value of the latest price bar.
 
- 
getBidHighGets the high bid value of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the high bid value of the price bar for the given instrument at the given index.
 
- 
getBidHighGets the high bid value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the high bid value of the latest price bar for the given instrument.
 
- 
getRealHighfloat getRealHigh(int index) Gets the real high value of the price bar at the given index (Renko Bars only).- Parameters:
- index- bar index
- Returns:
- the real high value of the price bar at the given index (Renko Bars only).
 
- 
getRealHighfloat getRealHigh()Gets the real high value of the latest price bar.- Returns:
- the real high value of the latest price bar.
 
- 
getLowfloat getLow(int index) Gets the low value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the low value of the price bar at the given index.
 
- 
getLowfloat getLow()Gets the low value of the latest price bar.- Returns:
- the low value of the latest price bar.
 
- 
getAskLowfloat getAskLow(int index) Gets the ask low value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the ask low value of the price bar at the given index.
 
- 
getAskLowfloat getAskLow()Gets the ask low value of the latest price bar.- Returns:
- the ask low value of the latest price bar.
 
- 
getBidLowfloat getBidLow(int index) Gets the bid low value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the bid low value of the price bar at the given index.
 
- 
getBidLowfloat getBidLow()Gets the bid low value of the latest price bar.- Returns:
- the bid low value of the latest price bar.
 
- 
getLowGets the low value of the price bar at the given index for the given instrument.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the low value of the price bar at the given index for the given instrument.
 
- 
getLowGets the low value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the low value of the latest price bar for the given instrument.
 
- 
getAskLowGets the ask low value of the price bar at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the ask low value of the price bar at the given index.
 
- 
getAskLowGets the ask low value of the latest price bar.- Parameters:
- instr- instrument
- Returns:
- the ask low value of the latest price bar.
 
- 
getBidLowGets the bid low value of the price bar at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the bid low value of the price bar at the given index.
 
- 
getBidLowGets the bid low value of the latest price bar.- Parameters:
- instr- instrument
- Returns:
- the bid low value of the latest price bar.
 
- 
getRealLowfloat getRealLow(int index) Gets the real low value of the price bar at the given index (Renko Bars only).- Parameters:
- index- bar index
- Returns:
- the real low value of the price bar at the given index (Renko Bars only).
 
- 
getRealLowfloat getRealLow()Gets the real low value of the latest price bar (Renko Bars only).- Returns:
- the real low value of the latest price bar (Renko Bars only).
 
- 
getOpenfloat getOpen(int index) Gets the open value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the open value of the price bar at the given index.
 
- 
getOpenfloat getOpen()Gets the open value of the latest price bar.- Returns:
- the open value of the latest price bar.
 
- 
getAskOpenfloat getAskOpen(int index) Gets the open ask value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the open ask value of the price bar at the given index.
 
- 
getAskOpenfloat getAskOpen()Gets the open ask value of the latest price bar.- Returns:
- the open ask value of the latest price bar.
 
- 
getBidOpenfloat getBidOpen(int index) Gets the open bid value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the open bid value of the price bar at the given index.
 
- 
getBidOpenfloat getBidOpen()Gets the open bid value of the latest price bar.- Returns:
- the open bid value of the latest price bar.
 
- 
getOpenGets the open value of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the open value of the price bar for the given instrument at the given index.
 
- 
getOpenGets the open value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the open value of the latest price bar for the given instrument.
 
- 
getAskOpenGets the open ask value of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the open ask value of the price bar for the given instrument at the given index.
 
- 
getAskOpenGets the open ask value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the open ask value of the latest price bar for the given instrument.
 
- 
getBidOpenGets the open bid value of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the open bid value of the price bar for the given instrument at the given index.
 
- 
getBidOpenGets the open bid value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the open bid value of the latest price bar for the given instrument.
 
- 
getClosefloat getClose(int index) Gets the close value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the close value of the price bar at the given index.
 
- 
getClosefloat getClose()Gets the close value of the latest price bar.- Returns:
- the close value of the latest price bar.
 
- 
getAskClosefloat getAskClose(int index) Gets the ask close value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the ask close value of the price bar at the given index.
 
- 
getAskClosefloat getAskClose()Gets the ask close value of the latest price bar.- Returns:
- the ask close value of the latest price bar.
 
- 
getBidClosefloat getBidClose(int index) Gets the close bid value of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the close bid value of the price bar at the given index.
 
- 
getBidClosefloat getBidClose()Gets the close bid value of the latest price bar.- Returns:
- the close bid value of the latest price bar.
 
- 
getCloseGets the close value of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the close value of the price bar for the given instrument at the given index.
 
- 
getCloseGets the close value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the close value of the latest price bar for the given instrument.
 
- 
getAskCloseGets the ask close value of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the ask close value of the price bar for the given instrument at the given index.
 
- 
getAskCloseGets the ask close value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the ask close value of the latest price bar for the given instrument.
 
- 
getBidCloseGets the close bid value of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the close bid value of the price bar for the given instrument at the given index.
 
- 
getBidCloseGets the close bid value of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the close bid value of the latest price bar for the given instrument.
 
- 
getVolumelong getVolume(int index) Gets the volume of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the volume of the price bar at the given index.
 
- 
getVolumeAsFloatfloat getVolumeAsFloat(int index) Gets the volume of the price bar at the given index (as a floating point value).- Parameters:
- index- bar index
- Returns:
- the volume of the price bar at the given index.
 
- 
getVolumelong getVolume()Gets the volume of the latest price bar.- Returns:
- the volume of the latest price bar.
 
- 
getVolumeAsFloatfloat getVolumeAsFloat()Gets the volume of the latest price bar (as a floating point value).- Returns:
- the volume of the latest price bar.
 
- 
getVolumeGets the volume of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the volume of the price bar for the given instrument at the given index.
 
- 
getVolumeAsFloatGets the volume of the price bar for the given instrument at the given index (as a floating point value).- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the volume of the price bar for the given instrument at the given index.
 
- 
getVolumeGets the volume of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the volume of the latest price bar for the given instrument.
 
- 
getVolumeAsFloatGets the volume of the latest price bar for the given instrument (as a floating point value).- Parameters:
- instr- instrument
- Returns:
- the volume of the latest price bar for the given instrument.
 
- 
getOpenInterestlong getOpenInterest(int index) Gets the open interest of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- the open interest of the price bar at the given index.
 
- 
getOpenInterestlong getOpenInterest()Gets the open interest of the latest price bar.- Returns:
- the open interest of the latest price bar.
 
- 
getOpenInterestGets the open interest of the price bar for the given instrument at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- the open interest of the price bar for the given instrument at the given index.
 
- 
getOpenInterestGets the open interest of the latest price bar for the given instrument.- Parameters:
- instr- instrument
- Returns:
- the open interest of the latest price bar for the given instrument.
 
- 
getStartTimelong getStartTime()Gets the start time (in milliseconds since 1970) of the latest bar.- Returns:
- the start time (in milliseconds since 1970) of the latest bar.
 
- 
getStartTimeGets the start time (in milliseconds since 1970) of the latest bar for the given instrument.- Returns:
- the start time (in milliseconds since 1970) of the latest bar.
 
- 
getStartTimelong getStartTime(int index) Gets the start time (in milliseconds since 1970) of the bar at the given index.- Parameters:
- index- bar index
- Returns:
- the start time (in milliseconds since 1970) of the bar at the given index.
 
- 
getEndTimelong getEndTime()Gets the end time of the latest bar.- Returns:
- the end time (in milliseconds since 1970) of the latest bar.
 
- 
getEndTimeGets the end time (in milliseconds since 1970) of the latest bar for the given instrument.- Returns:
- the end time (in milliseconds since 1970) of the latest bar.
 
- 
getEndTimelong getEndTime(int index) Gets the end time (in milliseconds since 1970) of the bar at the given index.- Parameters:
- index- bar index
- Returns:
- the end time (in milliseconds since 1970) of the bar at the given index.
 
- 
getStartIndexint getStartIndex()Gets the bar index of the first visible bar on the chart.- Returns:
- the index of the first visible bar on the chart.
 
- 
getVisibleStartTimelong getVisibleStartTime()Gets the start time of the first visible bar on the chart.- Returns:
- the start time of the start index
 
- 
getEndIndexint getEndIndex()Gets the bar index of the last visible bar on the chart.- Returns:
- the index of the last visible bar on the chart.
 
- 
getVisibleEndTimelong getVisibleEndTime()Gets the end time of the last visible bar on the chart.- Returns:
- the end time of the end index
 
- 
isLatestDataboolean isLatestData()Determines if the end index is the latest bar.- Returns:
- true if the endIndex is equal to the latest bar.
 
- 
setCompletevoid setComplete(int index) Indicate the the values stored at the specified index are complete. (no further computation is required)- Parameters:
- index- bar index
 
- 
setCompletevoid setComplete(int index, boolean b) Indicate the the values stored at the specified index are complete. (no further computation is required)- Parameters:
- index- bar index
- b- true if the bar is complete
 
- 
isCompleteboolean isComplete(int index) Determines if values stored at the bar at the given index are complete.- Parameters:
- index- bar index
- Returns:
- true if the values stored at the given index are complete.
 
- 
isLastBarCompleteboolean isLastBarComplete()Determines if the values stored at the last bar are complete.- Returns:
- true if the last bar is completed
 
- 
isBarCompleteboolean 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.- Parameters:
- index- bar index
- Returns:
- true if the bar at the given index is complete.
 
- 
setCompleteIndicate the the values stored at the specified index are complete for the specified value key (no further computation is required).- Parameters:
- index- bar index
- key- value key
 
- 
setCompleteIndicate the the values stored at the specified index are complete for the specified value key (no further computation is required).- Parameters:
- index- bar index
- key- value key
- b- true if the bar is complete
 
- 
isCompleteDetermines if the values stored at the given index are complete (for the specified value key).- Parameters:
- index- bar index
- key- value key
- Returns:
- true if the values stored at the given index are complete (for the specified value key).
 
- 
setDouble
- 
setDouble
- 
getDouble
- 
getDoubleGets the numeric value at the given index specified by the given key for the given instrument.- Parameters:
- index- bar index
- key- BarInput key
- instr- instrument
- Returns:
- numeric value at the given index specified by the given key for the given instrument
 
- 
getDoubleGets the numeric value at the given index specified by the given key. The default value def is returned if the values was not found.- Parameters:
- index- bar index
- key- value key
- def- default value to return if no value was found
- Returns:
- double value at the given index and key
 
- 
getDouble
- 
getDoubleGets the numeric value at the given index specified by the given key.- Parameters:
- startTime- start time of the bar in milliseconds since 1970
- key- value key
- instr- instrument
- Returns:
- value at the given bar and key (null if no value)
 
- 
getDouble
- 
getDoubleGets last numeric value (most recent) in the data series specified by the given key.- Parameters:
- key- input key
- instr- instrument
- Returns:
- most recent number value associated with the given key
 
- 
setFloat
- 
setFloat
- 
getFloat
- 
getFloatGets the numeric value at the given index specified by the given key.- Parameters:
- index- bar index
- key- input key
- instr- instrument
- Returns:
- numeric value associated with the given key, index and instrument
 
- 
getFloatGets the numeric value at the given index specified by the given key. The default value def is returned if the values was not found.- Parameters:
- index- bar index
- key- input key
- def- default value to return if null
- Returns:
- numeric value associated with the given key and instrument (default value if not found)
 
- 
getFloat
- 
getFloatGets the numeric value at the given index specified by the given key.- Parameters:
- startTime- milliseconds since 1970
- key- bar input key
- instr- instrument
- Returns:
- numeric value associated with the given key, start time and instrument
 
- 
getFloat
- 
getFloat
- 
getFloatGets last numeric value (most recent) in the data series specified by the given key.- Parameters:
- key- bar input key
- instr- instrument
- Returns:
- numeric value associated with the given key and instrument (latest index)
 
- 
findIndexint findIndex(long time) Searches for the index that contains the given time.- Parameters:
- time- time in milliseconds since 1970
- Returns:
- index of the bar that contains the given time
 
- 
getIntConvenience method. Gets the value at the given index and converts it to an int. 0 is returned if the value is null.- Parameters:
- index- bar index
- key- value key
- Returns:
- integer value
 
- 
getIntConvenience method. Gets the value at the latest index and converts it to an int. 0 is returned if the value is null.- Parameters:
- key- value key
- Returns:
- integer value assigned to the given key at the latest bar
 
- 
setIntConvenience method. Sets the value at the given index and as an int.- Parameters:
- index- bar index
- key- value key
- val- value to assign
 
- 
setIntConvenience method. Sets the value at the latest index and as an int.- Parameters:
- key- value key
- val- integer value
 
- 
setBoolean
- 
setBoolean
- 
getBoolean
- 
getBooleanGets the boolean value for the given key for the latest index. The value def is returned if there is no value.- Parameters:
- key- value key
- def- default value to return
- Returns:
- boolean value assigned to the given key at the latest index.
 
- 
getBoolean
- 
getBooleanGets the boolean value at the given index for the given key. The value 'def' is returned if a value is not found.- Parameters:
- index- bar index
- key- value key
- def- default value to return if no value is found
- Returns:
- boolean value at the given index for the given key
 
- 
setValue
- 
setValue
- 
getValue
- 
getValue
- 
getValueGets last value (most recent) in the data series specified by the given key.- Parameters:
- key- bar input key
- instr- instrument
- Returns:
- value of the input key for the given instrument at the latest index.
 
- 
getValueGets last value (most recent) in the data series specified by the given key.- Parameters:
- index- bar index
- key- input key
- instr- instrument
- Returns:
- value of the input key for the given instrument at the given index.
 
- 
setPriceBarColorSets the color of the price bar at the given index.- Parameters:
- index- bar index
- color- bar color
 
- 
setPriceBarColorSets the color of the price bar at the latest index.- Parameters:
- color- bar color
 
- 
getPriceBarColorGets the color of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- color assigned to the given bar index
 
- 
getPriceBarColorColor getPriceBarColor()Gets the color of the latest price bar.- Returns:
- color assigned to the latest price bar
 
- 
setBarColor
- 
setBarColor
- 
getBarColor
- 
getBarColor
- 
setPathColor
- 
setPathColor
- 
getPathColor
- 
getPathColor
- 
getTrueRangeCalculates and returns the True Range of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- true range for the price bar at the given index (default instrument)
 
- 
getTrueRangeFloat getTrueRange()Calculates and returns the True Range of the latest price bar.- Returns:
- true range for the latest price bar (default instrument)
 
- 
getTrueRangeCalculates and returns the True Range of the price bar at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- true range for the price bar at the given index and given instrument
 
- 
getTrueRangeCalculates and returns the True Range of the latest price bar.- Parameters:
- instr- instrument
- Returns:
- true range for the latest price bar and given instrument
 
- 
getTypicalPriceCalculates and returns the Typical Price (TP = (High + Low + Close)/3) of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- typical price for the given bar index
 
- 
getTypicalPriceFloat getTypicalPrice()Calculates and returns the Typical Price (TP = (High + Low + Close)/3) of the latest price bar.- Returns:
- typical price for the latest bar
 
- 
getTypicalPriceCalculates and returns the Typical Price (TP = (High + Low + Close)/3) of the price bar at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- typical price for the given bar index and instrument
 
- 
getTypicalPriceCalculates and returns the Typical Price (TP = (High + Low + Close)/3) of the latest price bar.- Parameters:
- instr- instrument
- Returns:
- typical price for the latest bar and instrument
 
- 
getRangeFloat getRange()Calculates and returns the range of the price bar at the latest index.- Returns:
- range of the price bar for the latest index
 
- 
getRangeCalculates and returns the range of the price bar at the latest index.- Parameters:
- instr- instrument
- Returns:
- range of the price bar for the latest index and instrument
 
- 
getRangeCalculates and returns the range of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- range of the price bar for the given index
 
- 
getRangeCalculates and returns the range of the price bar at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- range of the price bar for the given index and instrument
 
- 
getPositiveDMFloat getPositiveDM()Calculates and returns the Positive Directional Movement (+DM) of the latest price bar.- Returns:
- positive DM for the latest price bar
 
- 
getPositiveDMCalculates and returns the Positive Directional Movement (+DM) of the latest price bar.- Parameters:
- instr- instrument
- Returns:
- positive DM for the latest price bar and given instrument
 
- 
getPositiveDMCalculates and returns the Positive Directional Movement (+DM) of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- positive DM for the latest price bar and given instrument
 
- 
getPositiveDMCalculates and returns the Positive Directional Movement (+DM) of the price bar at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- positive DM for the given index and instrument
 
- 
getNegativeDMFloat getNegativeDM()Calculates and returns the Negative Directional Movement (-DM) of the latest price bar.- Returns:
- negative DM for the latest price bar
 
- 
getNegativeDMCalculates and returns the Negative Directional Movement (-DM) of the price bar at the given index.- Parameters:
- index- bar index
- Returns:
- negative DM for the given bar index
 
- 
getNegativeDMCalculates and returns the Negative Directional Movement (-DM) of the latest price bar.- Parameters:
- instr- instrument
- Returns:
- negative DM for the latest price bar and given instrument
 
- 
getNegativeDMCalculates and returns the Negative Directional Movement (-DM) of the price bar at the given index.- Parameters:
- index- bar index
- instr- instrument
- Returns:
- negative DM for the given bar index and instrument
 
- 
atrCalculates the average true range based on the most recent complete bars.- Parameters:
- period- number of bars
- Returns:
- average true range for the given period
 
- 
atrCalculates the average true range based on the most recent complete bars.- Parameters:
- period- number of bars
- instr- instrument
- Returns:
- average true range for the given period and instrument
 
- 
atrCalculates the average true range. Null values and values of Double.NaN are ignored in the calculation. Null is returned if there is not enough data.- Parameters:
- index- bar index
- period- number of bars
- Returns:
- average true range for the given bar index and period
 
- 
atrCalculates the average true range. Null values and values of Double.NaN are ignored in the calculation. Null is returned if there is not enough data.- Parameters:
- index- bar index
- period- number of bars
- instr- instrument
- Returns:
- average true range for the given bar index and period (for the given instrument)
 
- 
maCalculates a Moving Average. Null values and values of Double.NaN are ignored in the calculation. Null is returned if there is not enough data.- Parameters:
- method- calculation method
- index- bar index to start at
- period- number of bars
- key- value key
- Returns:
- computed moving average using the given method, index, period and value key
 
- 
maCalculates a Moving Average. Null values and values of Double.NaN are ignored in the calculation. Null is returned if there is not enough data.- Parameters:
- method- calculation method
- index- bar index to start at
- period- number of bars
- key- bar input key
- instr- instrument
- Returns:
- computed moving average using the given method, index, period, bar input and instrument
 
- 
stochasticKCalculates the stochastic 'K' value using the given key. This is calculated as K = 100*( (value(key, index) - lowest(index, period, key)) / (highest(index, period, key) - lowest(index, period, key)) ) Null is returned if there is not enough data.- Parameters:
- index- bar index
- period- number of bars
- key- value key
- Returns:
- stochasticK value for the given index, period and value key
 
- 
stochasticKCalculates the stochastic 'K' value using price data. This is calculated as K = 100*( (getClose(index) - lowest(index, period, LOW)) / (highest(index, period, HIGH) - lowest(index, period, LOW)) ) Null is returned if there is not enough data.- Parameters:
- index- bar index
- period- number of bars
- Returns:
- stochasticK value for the given index and period
 
- 
stochasticKCalculates the stochastic 'K' value using the given key. This is calculated as K = 100*( (value(key, index) - lowest(index, period, key)) / (highest(index, period, key) - lowest(index, period, key)) ) Null is returned if there is not enough data.- Parameters:
- index- bar index
- period- number of bars
- key- bar input key
- instr- instrument
- Returns:
- stochasticK value for the given index and period
 
- 
stochasticKCalculates the stochastic 'K' value using price data. This is calculated as K = 100*( (getClose(index) - lowest(index, period, LOW)) / (highest(index, period, HIGH) - lowest(index, period, LOW)) ) Null is returned if there is not enough data.- Parameters:
- index- bar index
- period- number of bars
- instr- instrument
- Returns:
- stochasticK value for the given index and period
 
- 
mfmfloat mfm(int index) Calculates the Money Flow Multiplier. This is defined as: [(Close - Low) - (High - Close)]/(High - Low). 0 is returned if (High - Low) == 0- Parameters:
- index- bar index
- Returns:
- money flow multiplier for the given bar index
 
- 
mfmCalculates the Money Flow Multiplier. This is defined as: [(Close - Low) - (High - Close)]/(High - Low). 0 is returned if (High - Low) == 0- Parameters:
- index- bar index
- instr- instrument
- Returns:
- money flow multiplier for the given bar index and instrument
 
- 
rocRate Of Change. Defined as the change between the most recent value and the value 'n' periods back. (Current Value - Value 'n' Periods Ago)/Value 'n' Periods Ago- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- rate of change for the given parameters
 
- 
rocRate Of Change. Defined as the change between the most recent value and the value 'n' periods back. (Current Value - Value 'n' Periods Ago)/Value 'n' Periods Ago- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- rate of change for the given parameters
 
- 
stdCalculates the Standard Deviation (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- standard deviation for the given parameters
 
- 
stdCalculates the Standard Deviation (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- standard deviation for the given parameters
 
- 
smaCalculates the Simple Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Simple Moving Average for the given parameters
 
- 
smaCalculates the Simple Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Simple Moving Average for the given parameters
 
- 
wmaCalculates the Weighted Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Weighted Moving Average for the given parameters
 
- 
wmaCalculates the Weighted Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Weighted Moving Average for the given parameters
 
- 
emaCalculates the Exponential Moving Average. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Exponential Moving Average for the given parameters
 
- 
emaCalculates the Exponential Moving Average. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Exponential Moving Average for the given parameters
 
- 
demaCalculates the Double Exponential Moving Average (2*EMA - EMA(EMA)). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Double Exponential Moving Average for the given parameters
 
- 
demaCalculates the Double Exponential Moving Average (2*EMA - EMA(EMA)). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Double Exponential Moving Average for the given parameters
 
- 
temaCalculates the Triple Exponential Moving Average (3*EMA - 3*EMA(EMA) + EMA(EMA(EMA))). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Triple Exponential Moving Average for the given parameters
 
- 
temaCalculates the Triple Exponential Moving Average (3*EMA - 3*EMA(EMA) + EMA(EMA(EMA))). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Triple Exponential Moving Average for the given parameters
 
- 
tmaCalculates the Triangular Moving Average (SMA(SMA)). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Triangular Moving Average for the given parameters
 
- 
tmaCalculates the Triangular Moving Average (SMA(SMA)). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Triangular Moving Average for the given parameters
 
- 
memaCalculates the Modified Exponential Moving Average. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Modified Exponential Moving Average for the given parameters
 
- 
memaCalculates the Modified Exponential Moving Average. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Modified Exponential Moving Average for the given parameters
 
- 
smma
- 
smmaCalculates the Smoothed Moving Average.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Smoothed Moving Average for the given parameters
 
- 
vwmaCalculates the Volume Weighted Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Volume Weighted Moving Average for the given parameters
 
- 
vwmaCalculates the Volume Weighted Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Volume Weighted Moving Average for the given parameters
 
- 
kamaCalculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- Kaufmann Adaptive Moving average for the given parameters
 
- 
kamaCalculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- Kaufmann Adaptive Moving average for the given parameters
 
- 
kamaCalculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- C- constant
- key- value key
- Returns:
- Kaufmann Adaptive Moving average for the given parameters
 
- 
kamaCalculates the Kaufmann Adaptive Moving Average (null is returned if there is not enough data). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- C- constant
- key- bar input key
- instr- instrument
- Returns:
- Kaufmann Adaptive Moving average for the given parameters
 
- 
highestReturns the highest value over the given sequence of values. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- highest value (of the given key) between the index and index - period bars
 
- 
lowestReturns the lowest value over the given sequence of values. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- value key
- Returns:
- lowest value (of the given key) between the index and index - period bars
 
- 
highestVisible
- 
lowestVisible
- 
highestReturns the highest value over the given sequence of values. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- highest value (of the given bar input) between the index and index - period bars
 
- 
lowestReturns the lowest value over the given sequence of values. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- instr- instrument
- Returns:
- lowest value (of the given bar input) between the index and index - period bars
 
- 
lowestReturns the lowest value over the given sequence of values. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to look back
- key- bar input key
- Returns:
- lowest value (of the given key) between the index and index - period bars
 
- 
highestVisibleReturns the highest value of the visible bars (between getStartIndex() and getEndIndex()). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- key- bar input key
- instr- instrument
- Returns:
- highest value (of the given bar input) between the start and end index (visible bars)
 
- 
lowestVisibleReturns the lowest value of the visible bars (between getStartIndex() and getEndIndex()). Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- key- bar input key
- instr- instrument
- Returns:
- value of the lowest visible bar for the given instrument
 
- 
sum
- 
sumReturns the sum of the values over the given sequence of values. Null values and values of Double.NaN are ignored in the calculation.- Parameters:
- index- bar index
- period- number of bars to sum
- key- bar input key
- instr- instrument
- Returns:
- sum of values
 
- 
calcSwingPointsCalculates and returns a list of swing points of a given strength or greater.- Parameters:
- top- true if calculating the top swing points
- strength- strength of the swing points
- Returns:
- list of swing points
 
- 
calcSwingPointsCalculates and returns a list of swing points of a given strength or greater.- Parameters:
- top- true if calculating the top swing points
- strength- strength of the swing points
- maxBars- maximum number of bars (starting from the latest) to consider
- Returns:
- list of swing points
 
- 
calcSwingPointsCalculates and returns a list of swing points of a given strength or greater.- Parameters:
- strength- strength of the swing points
- Returns:
- list of swing points
 
- 
calcSwingPointsCalculates and returns a list of swing points of a given strength or greater.- Parameters:
- strength- strength of the swing points
- maxBars- maximum number of bars (starting from the latest) to consider
- Returns:
- list of swing points
 
- 
isSignalTriggeredChecks if the given signal has been triggered for the given bar index.- Parameters:
- index- bar index
- key- signal key
- Returns:
- true the signal was triggered
 
- 
setSignalTriggeredSets the flag indicating that the given signal was triggered for the given bar index. This is called by the framework when a signal is raised. Normally this method would not be used unless you want to trigger multiple signals per bar.- Parameters:
- index- bar index
- key- signal key
- b- true the signal was triggered
 
- 
isPathBreakIndicates that there is a break in a series of values that is rendered as a path.
- 
setPathBreakIndicates that there is a break in a series of values that is rendered as a path.- Parameters:
- index-
- key-
- b-
 
 
-