com.dukascopy.api
Interface IIndicators


public interface IIndicators

Contains a set of functions to calculate indicator data

See Also:
Strategy API: Indicators

Nested Class Summary
static class IIndicators.AppliedPrice
          Used to specify which price to use for indicator calculation
static class IIndicators.MaType
          Types of Moving Average
 
Method Summary
 double[][] ac(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Accelerator/Decelerator Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] ac(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, Filter filter, long from, long to)
          Calculates the Accelerator/Decelerator Oscillator for ticks or bars in the specified period.
 double[] ac(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, int shift)
          Calculates the Accelerator/Decelerator Oscillator for a bar specified with the shift parameter.
 double[][] ac(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, long from, long to)
          Calculates the Accelerator/Decelerator Oscillator for ticks or bars in the specified period.
 double[] acos(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric ACos for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] acos(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric ACos for ticks or bars in the specified period.
 double acos(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric ACos for a bar specified with the shift parameter.
 double[] acos(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric ACos for ticks or bars in the specified period.
 double[] ad(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Chaikin A/D Line for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ad(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Chaikin A/D Line for ticks or bars in the specified period.
 double ad(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Chaikin A/D Line for a bar specified with the shift parameter.
 double[] ad(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Chaikin A/D Line for ticks or bars in the specified period.
 double[] add(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Arithmetic Add for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] add(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, Filter filter, long from, long to)
          Calculates the Vector Arithmetic Add for ticks or bars in the specified period.
 double add(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int shift)
          Calculates the Vector Arithmetic Add for a bar specified with the shift parameter.
 double[] add(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, long from, long to)
          Calculates the Vector Arithmetic Add for ticks or bars in the specified period.
 double[] adOsc(Instrument instrument, Period period, OfferSide side, int fastPeriod, int slowPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Chaikin A/D Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] adOsc(Instrument instrument, Period period, OfferSide side, int fastPeriod, int slowPeriod, Filter filter, long from, long to)
          Calculates the Chaikin A/D Oscillator for ticks or bars in the specified period.
 double adOsc(Instrument instrument, Period period, OfferSide side, int fastPeriod, int slowPeriod, int shift)
          Calculates the Chaikin A/D Oscillator for a bar specified with the shift parameter.
 double[] adOsc(Instrument instrument, Period period, OfferSide side, int fastPeriod, int slowPeriod, long from, long to)
          Calculates the Chaikin A/D Oscillator for ticks or bars in the specified period.
 double[] adx(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Average Directional Movement Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] adx(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Average Directional Movement Index for ticks or bars in the specified period.
 double adx(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Average Directional Movement Index for a bar specified with the shift parameter.
 double[] adx(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Average Directional Movement Index for ticks or bars in the specified period.
 double[] adxr(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Average Directional Movement Index Rating for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] adxr(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Average Directional Movement Index Rating for ticks or bars in the specified period.
 double adxr(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Average Directional Movement Index Rating for a bar specified with the shift parameter.
 double[] adxr(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Average Directional Movement Index Rating for ticks or bars in the specified period.
 double[][] alligator(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int jawTimePeriod, int teethTimePeriod, int lipsTimePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Alligator indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] alligator(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int jawTimePeriod, int teethTimePeriod, int lipsTimePeriod, Filter filter, long from, long to)
          Calculates the Alligator indicator for ticks or bars in the specified period.
 double[] alligator(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int jawTimePeriod, int teethTimePeriod, int lipsTimePeriod, int shift)
          Calculates the Alligator indicator for a bar specified with the shift parameter.
 double[][] alligator(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int jawTimePeriod, int teethTimePeriod, int lipsTimePeriod, long from, long to)
          Calculates the Alligator indicator for ticks or bars in the specified period.
 double[] apo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Absolute Price Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] apo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, Filter filter, long from, long to)
          Calculates the Absolute Price Oscillator for ticks or bars in the specified period.
 double apo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, int shift)
          Calculates the Absolute Price Oscillator for a bar specified with the shift parameter.
 double[] apo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, long from, long to)
          Calculates the Absolute Price Oscillator for ticks or bars in the specified period.
 double[][] aroon(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Aroon indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] aroon(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Aroon indicator for ticks or bars in the specified period.
 double[] aroon(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Aroon indicator for a bar specified with the shift parameter.
 double[][] aroon(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Aroon indicator for ticks or bars in the specified period.
 double[] aroonOsc(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Aroon Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] aroonOsc(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Aroon Oscillator for ticks or bars in the specified period.
 double aroonOsc(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Aroon Oscillator for a bar specified with the shift parameter.
 double[] aroonOsc(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Aroon Oscillator for ticks or bars in the specified period.
 double[] asin(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric ASin for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] asin(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric ASin for ticks or bars in the specified period.
 double asin(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric ASin for a bar specified with the shift parameter.
 double[] asin(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric ASin for ticks or bars in the specified period.
 double[] atan(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric ATan for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] atan(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric ATan for ticks or bars in the specified period.
 double atan(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric ATan for a bar specified with the shift parameter.
 double[] atan(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric ATan for ticks or bars in the specified period.
 double[] atr(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Average True Range for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] atr(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Average True Range for ticks or bars in the specified period.
 double atr(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Average True Range for a bar specified with the shift parameter.
 double[] atr(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Average True Range for ticks or bars in the specified period.
 double[] avgPrice(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Average Price for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] avgPrice(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Average Price for ticks or bars in the specified period.
 double avgPrice(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Average Price for a bar specified with the shift parameter.
 double[] avgPrice(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Average Price for ticks or bars in the specified period.
 double[][] awesome(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fasterMaTimePeriod, IIndicators.MaType fasterMaType, int slowerMaTimePeriod, IIndicators.MaType slowerMaType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Awesome Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] awesome(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fasterMaTimePeriod, IIndicators.MaType fasterMaType, int slowerMaTimePeriod, IIndicators.MaType slowerMaType, Filter filter, long from, long to)
          Calculates the Awesome Oscillator for ticks or bars in the specified period.
 double[] awesome(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fasterMaTimePeriod, IIndicators.MaType fasterMaType, int slowerMaTimePeriod, IIndicators.MaType slowerMaType, int shift)
          Calculates the Awesome Oscillator for a bar specified with the shift parameter.
 double[][] awesome(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fasterMaTimePeriod, IIndicators.MaType fasterMaType, int slowerMaTimePeriod, IIndicators.MaType slowerMaType, long from, long to)
          Calculates the Awesome Oscillator for ticks or bars in the specified period.
 double[][] bbands(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDevUp, double nbDevDn, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Bollinger Bands indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] bbands(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDevUp, double nbDevDn, IIndicators.MaType maType, Filter filter, long from, long to)
          Calculates the Bollinger Bands indicator for ticks or bars in the specified period.
 double[] bbands(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDevUp, double nbDevDn, IIndicators.MaType maType, int shift)
          Calculates the Bollinger Bands indicator for a bar specified with the shift parameter.
 double[][] bbands(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDevUp, double nbDevDn, IIndicators.MaType maType, long from, long to)
          Calculates the Bollinger Bands indicator for ticks or bars in the specified period.
 double[] bear(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Bear Power indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] bear(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Bear Power indicator for ticks or bars in the specified period.
 double bear(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Bear Power indicator for a bar specified with the shift parameter.
 double[] bear(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Bear Power indicator for ticks or bars in the specified period.
 double[] beta(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Beta indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] beta(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int timePeriod, Filter filter, long from, long to)
          Calculates the Beta indicator for ticks or bars in the specified period.
 double beta(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int timePeriod, int shift)
          Calculates the Beta indicator for a bar specified with the shift parameter.
 double[] beta(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int timePeriod, long from, long to)
          Calculates the Beta indicator for ticks or bars in the specified period.
 double[] bop(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Balance Of Power indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] bop(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Balance Of Power indicator for ticks or bars in the specified period.
 double bop(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Balance Of Power indicator for a bar specified with the shift parameter.
 double[] bop(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Balance Of Power indicator for ticks or bars in the specified period.
 double[] bull(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Bull Power indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] bull(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Bull Power indicator for ticks or bars in the specified period.
 double bull(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Bull Power indicator for a bar specified with the shift parameter.
 double[] bull(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Bull Power indicator for ticks or bars in the specified period.
 double[] butterworthFilter(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Butterworth Filter indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] butterworthFilter(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Butterworth Filter indicator for ticks or bars in the specified period.
 double butterworthFilter(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Butterworth Filter indicator for a bar specified with the shift parameter.
 double[] butterworthFilter(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Butterworth Filter indicator for ticks or bars in the specified period.
 double[][] bwmfi(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Market Facilitation Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] bwmfi(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Market Facilitation Index for ticks or bars in the specified period.
 double[] bwmfi(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Market Facilitation Index for a bar specified with the shift parameter.
 double[][] bwmfi(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Market Facilitation Index for ticks or bars in the specified period.
 java.lang.Object[] calculateIndicator(IFeedDescriptor feedDescriptor, OfferSide[] offerSides, java.lang.String functionName, IIndicators.AppliedPrice[] inputTypes, java.lang.Object[] optParams, int shift)
          This is a universal function that allows getting values for any indicator available based on any DataType supported by JForex, including user indicators.
 java.lang.Object[] calculateIndicator(IFeedDescriptor feedDescriptor, OfferSide[] offerSides, java.lang.String functionName, IIndicators.AppliedPrice[] inputTypes, java.lang.Object[] optParams, int numberOfBarsBefore, long time, int numberOfBarsAfter)
          This is a universal function that allows getting values for any indicator available based on any DataType supported by JForex, including user indicators.
 java.lang.Object[] calculateIndicator(IFeedDescriptor feedDescriptor, OfferSide[] offerSides, java.lang.String functionName, IIndicators.AppliedPrice[] inputTypes, java.lang.Object[] optParams, long from, long to)
          This is a universal function that allows getting values for any indicator available based on any DataType supported by JForex, including user indicators.
 java.lang.Object[] calculateIndicator(Instrument instrument, Period period, OfferSide[] side, java.lang.String functionName, IIndicators.AppliedPrice[] inputTypes, java.lang.Object[] optParams, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          This is a universal function that allows getting values for any indicator available, including user indicators.
 java.lang.Object[] calculateIndicator(Instrument instrument, Period period, OfferSide[] offerSides, java.lang.String functionName, IIndicators.AppliedPrice[] inputTypes, java.lang.Object[] optParams, Filter filter, long from, long to)
          This is a universal function that allows to get values for any indicator available including user indicators.
 java.lang.Object[] calculateIndicator(Instrument instrument, Period period, OfferSide[] side, java.lang.String functionName, IIndicators.AppliedPrice[] inputTypes, java.lang.Object[] optParams, int shift)
          This is a universal function that allows getting values for any indicator available, including user indicators.
 java.lang.Object[] calculateIndicator(Instrument instrument, Period period, OfferSide[] side, java.lang.String functionName, IIndicators.AppliedPrice[] inputTypes, java.lang.Object[] optParams, long from, long to)
          This is a universal function that allows getting values for any indicator available, including user indicators.
 double[][] camPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Camarilla Pivot Points for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] camPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Camarilla Pivot Points for ticks or bars in the specified period.
 double[] camPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Camarilla Pivot Points for a bar specified with the shift parameter.
 double[][] camPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Camarilla Pivot Points for ticks or bars in the specified period.
 double[] cci(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Commodity Channel Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] cci(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Commodity Channel Index for ticks or bars in the specified period.
 double cci(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Commodity Channel Index for a bar specified with the shift parameter.
 double[] cci(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Commodity Channel Index for ticks or bars in the specified period.
 int[] cdl2Crows(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Two Crows indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdl2Crows(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Two Crows indicator for ticks or bars in the specified period.
 int cdl2Crows(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Two Crows indicator for a bar specified with the shift parameter.
 int[] cdl2Crows(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Two Crows indicator for ticks or bars in the specified period.
 int[] cdl3BlackCrows(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Three Black Crows indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdl3BlackCrows(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Three Black Crows indicator for ticks or bars in the specified period.
 int cdl3BlackCrows(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Three Black Crows indicator for a bar specified with the shift parameter.
 int[] cdl3BlackCrows(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Three Black Crows indicator for ticks or bars in the specified period.
 int[] cdl3Inside(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Three Inside Up/Down indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdl3Inside(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Three Inside Up/Down indicator for ticks or bars in the specified period.
 int cdl3Inside(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Three Inside Up/Down indicator for a bar specified with the shift parameter.
 int[] cdl3Inside(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Three Inside Up/Down indicator for ticks or bars in the specified period.
 int[] cdl3LineStrike(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Three-Line Strike indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdl3LineStrike(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Three-Line Strike indicator for ticks or bars in the specified period.
 int cdl3LineStrike(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Three-Line Strike indicator for a bar specified with the shift parameter.
 int[] cdl3LineStrike(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Three-Line Strike indicator for ticks or bars in the specified period.
 int[] cdl3Outside(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Three Outside Up/Down indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdl3Outside(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Three Outside Up/Down indicator for ticks or bars in the specified period.
 int cdl3Outside(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Three Outside Up/Down indicator for a bar specified with the shift parameter.
 int[] cdl3Outside(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Three Outside Up/Down indicator for ticks or bars in the specified period.
 int[] cdl3StarsInSouth(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Three Stars In The South indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdl3StarsInSouth(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Three Stars In The South indicator for ticks or bars in the specified period.
 int cdl3StarsInSouth(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Three Stars In The South indicator for a bar specified with the shift parameter.
 int[] cdl3StarsInSouth(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Three Stars In The South indicator for ticks or bars in the specified period.
 int[] cdl3WhiteSoldiers(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Three Advancing White Soldiers indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdl3WhiteSoldiers(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Three Advancing White Soldiers indicator for ticks or bars in the specified period.
 int cdl3WhiteSoldiers(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Three Advancing White Soldiers indicator for a bar specified with the shift parameter.
 int[] cdl3WhiteSoldiers(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Three Advancing White Soldiers indicator for ticks or bars in the specified period.
 int[] cdlAbandonedBaby(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Abandoned Baby indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlAbandonedBaby(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, long from, long to)
          Calculates the Abandoned Baby indicator for ticks or bars in the specified period.
 int cdlAbandonedBaby(Instrument instrument, Period period, OfferSide side, double penetration, int shift)
          Calculates the Abandoned Baby indicator for a bar specified with the shift parameter.
 int[] cdlAbandonedBaby(Instrument instrument, Period period, OfferSide side, double penetration, long from, long to)
          Calculates the Abandoned Baby indicator for ticks or bars in the specified period.
 int[] cdlAdvanceBlock(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Advance Block indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlAdvanceBlock(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Advance Block indicator for ticks or bars in the specified period.
 int cdlAdvanceBlock(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Advance Block indicator for a bar specified with the shift parameter.
 int[] cdlAdvanceBlock(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Advance Block indicator for ticks or bars in the specified period.
 int[] cdlBeltHold(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Belt-hold indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlBeltHold(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Belt-hold indicator for ticks or bars in the specified period.
 int cdlBeltHold(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Belt-hold indicator for a bar specified with the shift parameter.
 int[] cdlBeltHold(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Belt-hold indicator for ticks or bars in the specified period.
 int[] cdlBreakAway(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Breakaway indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlBreakAway(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Breakaway indicator for ticks or bars in the specified period.
 int cdlBreakAway(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Breakaway indicator for a bar specified with the shift parameter.
 int[] cdlBreakAway(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Breakaway indicator for ticks or bars in the specified period.
 int[] cdlClosingMarubozu(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Closing Marubozu indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlClosingMarubozu(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Closing Marubozu indicator for ticks or bars in the specified period.
 int cdlClosingMarubozu(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Closing Marubozu indicator for a bar specified with the shift parameter.
 int[] cdlClosingMarubozu(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Closing Marubozu indicator for ticks or bars in the specified period.
 int[] cdlConcealBabySwall(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Concealing Baby Swallow indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlConcealBabySwall(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Concealing Baby Swallow indicator for ticks or bars in the specified period.
 int cdlConcealBabySwall(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Concealing Baby Swallow indicator for a bar specified with the shift parameter.
 int[] cdlConcealBabySwall(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Concealing Baby Swallow indicator for ticks or bars in the specified period.
 int[] cdlCounterattack(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Counterattack indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlCounterattack(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Counterattack indicator for ticks or bars in the specified period.
 int cdlCounterattack(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Counterattack indicator for a bar specified with the shift parameter.
 int[] cdlCounterattack(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Counterattack indicator for ticks or bars in the specified period.
 int[] cdlDarkCloudCover(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Dark Cloud Cover indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlDarkCloudCover(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, long from, long to)
          Calculates the Dark Cloud Cover indicator for ticks or bars in the specified period.
 int cdlDarkCloudCover(Instrument instrument, Period period, OfferSide side, double penetration, int shift)
          Calculates the Dark Cloud Cover indicator for a bar specified with the shift parameter.
 int[] cdlDarkCloudCover(Instrument instrument, Period period, OfferSide side, double penetration, long from, long to)
          Calculates the Dark Cloud Cover indicator for ticks or bars in the specified period.
 int[] cdlDoji(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Doji indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlDoji(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Doji indicator for ticks or bars in the specified period.
 int cdlDoji(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Doji indicator for a bar specified with the shift parameter.
 int[] cdlDoji(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Doji indicator for ticks or bars in the specified period.
 int[] cdlDojiStar(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Doji Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlDojiStar(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Doji Star indicator for ticks or bars in the specified period.
 int cdlDojiStar(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Doji Star indicator for a bar specified with the shift parameter.
 int[] cdlDojiStar(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Doji Star indicator for ticks or bars in the specified period.
 int[] cdlDragonflyDoji(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Dragonfly Doji indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlDragonflyDoji(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Dragonfly Doji indicator for ticks or bars in the specified period.
 int cdlDragonflyDoji(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Dragonfly Doji indicator for a bar specified with the shift parameter.
 int[] cdlDragonflyDoji(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Dragonfly Doji indicator for ticks or bars in the specified period.
 int[] cdlEngulfing(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Engulfing Pattern indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlEngulfing(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Engulfing Pattern indicator for ticks or bars in the specified period.
 int cdlEngulfing(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Engulfing Pattern indicator for a bar specified with the shift parameter.
 int[] cdlEngulfing(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Engulfing Pattern indicator for ticks or bars in the specified period.
 int[] cdlEveningDojiStar(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Evening Doji Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlEveningDojiStar(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, long from, long to)
          Calculates the Evening Doji Star indicator for ticks or bars in the specified period.
 int cdlEveningDojiStar(Instrument instrument, Period period, OfferSide side, double penetration, int shift)
          Calculates the Evening Doji Star indicator for a bar specified with the shift parameter.
 int[] cdlEveningDojiStar(Instrument instrument, Period period, OfferSide side, double penetration, long from, long to)
          Calculates the Evening Doji Star indicator for ticks or bars in the specified period.
 int[] cdlEveningStar(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Evening Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlEveningStar(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, long from, long to)
          Calculates the Evening Star indicator for ticks or bars in the specified period.
 int cdlEveningStar(Instrument instrument, Period period, OfferSide side, double penetration, int shift)
          Calculates the Evening Star indicator for a bar specified with the shift parameter.
 int[] cdlEveningStar(Instrument instrument, Period period, OfferSide side, double penetration, long from, long to)
          Calculates the Evening Star indicator for ticks or bars in the specified period.
 int[] cdlGapSideSideWhite(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Up/Down-gap side-by-side white lines indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlGapSideSideWhite(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Up/Down-gap side-by-side white lines indicator for ticks or bars in the specified period.
 int cdlGapSideSideWhite(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Up/Down-gap side-by-side white lines indicator for a bar specified with the shift parameter.
 int[] cdlGapSideSideWhite(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Up/Down-gap side-by-side white lines indicator for ticks or bars in the specified period.
 int[] cdlGravestoneDoji(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Gravestone Doji indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlGravestoneDoji(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Gravestone Doji indicator for ticks or bars in the specified period.
 int cdlGravestoneDoji(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Gravestone Doji indicator for a bar specified with the shift parameter.
 int[] cdlGravestoneDoji(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Gravestone Doji indicator for ticks or bars in the specified period.
 int[] cdlHammer(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hammer indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlHammer(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Hammer indicator for ticks or bars in the specified period.
 int cdlHammer(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Hammer indicator for a bar specified with the shift parameter.
 int[] cdlHammer(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Hammer indicator for ticks or bars in the specified period.
 int[] cdlHangingMan(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hanging Man indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlHangingMan(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Hanging Man indicator for ticks or bars in the specified period.
 int cdlHangingMan(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Hanging Man indicator for a bar specified with the shift parameter.
 int[] cdlHangingMan(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Hanging Man indicator for ticks or bars in the specified period.
 int[] cdlHarami(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Harami Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlHarami(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Harami Pattern for ticks or bars in the specified period.
 int cdlHarami(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Harami Pattern for a bar specified with the shift parameter.
 int[] cdlHarami(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Harami Pattern for ticks or bars in the specified period.
 int[] cdlHaramiCross(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Harami Cross Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlHaramiCross(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Harami Cross Pattern for ticks or bars in the specified period.
 int cdlHaramiCross(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Harami Cross Pattern for a bar specified with the shift parameter.
 int[] cdlHaramiCross(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Harami Cross Pattern for ticks or bars in the specified period.
 int[] cdlHighWave(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the High-Wave Candle indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlHighWave(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the High-Wave Candle indicator for ticks or bars in the specified period.
 int cdlHighWave(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the High-Wave Candle indicator a bar specified with the shift parameter.
 int[] cdlHighWave(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the High-Wave Candle indicator for ticks or bars in the specified period.
 int[] cdlHikkake(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hikkake Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlHikkake(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Hikkake Pattern for ticks or bars in the specified period.
 int cdlHikkake(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Hikkake Pattern for a bar specified with the shift parameter.
 int[] cdlHikkake(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Hikkake Pattern for ticks or bars in the specified period.
 int[] cdlHikkakeMod(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Modified Hikkake Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlHikkakeMod(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Modified Hikkake Pattern for ticks or bars in the specified period.
 int cdlHikkakeMod(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Modified Hikkake Pattern for a bar specified with the shift parameter.
 int[] cdlHikkakeMod(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Modified Hikkake Pattern for ticks or bars in the specified period.
 int[] cdlHomingPigeon(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Homing Pigeon indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlHomingPigeon(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Homing Pigeon indicator for ticks or bars in the specified period.
 int cdlHomingPigeon(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Homing Pigeon indicator for a bar specified with the shift parameter.
 int[] cdlHomingPigeon(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Homing Pigeon indicator for ticks or bars in the specified period.
 int[] cdlIdentical3Crows(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Identical Three Crows indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlIdentical3Crows(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Identical Three Crows indicator for ticks or bars in the specified period.
 int cdlIdentical3Crows(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Identical Three Crows indicator for a bar specified with the shift parameter.
 int[] cdlIdentical3Crows(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Identical Three Crows indicator for ticks or bars in the specified period.
 int[] cdlInNeck(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the In-Neck Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlInNeck(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the In-Neck Pattern for ticks or bars in the specified period.
 int cdlInNeck(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the In-Neck Pattern for a bar specified with the shift parameter.
 int[] cdlInNeck(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the In-Neck Pattern for ticks or bars in the specified period.
 int[] cdlInvertedHammer(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Inverted Hammer indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlInvertedHammer(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Inverted Hammer indicator for ticks or bars in the specified period.
 int cdlInvertedHammer(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Inverted Hammer indicator for a bar specified with the shift parameter.
 int[] cdlInvertedHammer(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Inverted Hammer indicator for ticks or bars in the specified period.
 int[] cdlKicking(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Kicking indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlKicking(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Kicking indicator for ticks or bars in the specified period.
 int cdlKicking(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Kicking indicator for a bar specified with the shift parameter.
 int[] cdlKicking(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Kicking indicator for ticks or bars in the specified period.
 int[] cdlKickingByLength(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Kicking - bull/bear determined by the longer marubozu indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlKickingByLength(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Kicking - bull/bear determined by the longer marubozu indicator for ticks or bars in the specified period.
 int cdlKickingByLength(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Kicking - bull/bear determined by the longer marubozu indicator for a bar specified with the shift parameter.
 int[] cdlKickingByLength(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Kicking - bull/bear determined by the longer marubozu indicator for ticks or bars in the specified period.
 int[] cdlLadderBottom(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Ladder Bottom indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlLadderBottom(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Ladder Bottom indicator for ticks or bars in the specified period.
 int cdlLadderBottom(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Ladder Bottom indicator for a bar specified with the shift parameter.
 int[] cdlLadderBottom(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Ladder Bottom indicator for ticks or bars in the specified period.
 int[] cdlLadderBotton(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Deprecated. replaced by cdlLadderBottom(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
 int[] cdlLadderBotton(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Deprecated. replaced by cdlLadderBottom(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
 int cdlLadderBotton(Instrument instrument, Period period, OfferSide side, int shift)
          Deprecated. replaced by cdlLadderBottom(Instrument instrument, Period period, OfferSide side, int shift)
 int[] cdlLadderBotton(Instrument instrument, Period period, OfferSide side, long from, long to)
          Deprecated. replaced by cdlLadderBottom(Instrument instrument, Period period, OfferSide side, long from, long to)
 int[] cdlLongLeggedDoji(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Long Legged Doji indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlLongLeggedDoji(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Long Legged Doji indicator for ticks or bars in the specified period.
 int cdlLongLeggedDoji(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Long Legged Doji indicator for a bar specified with the shift parameter.
 int[] cdlLongLeggedDoji(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Long Legged Doji indicator for ticks or bars in the specified period.
 int[] cdlLongLine(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Long Line Candle indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlLongLine(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Long Line Candle indicator for ticks or bars in the specified period.
 int cdlLongLine(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Long Line Candle indicator for a bar specified with the shift parameter.
 int[] cdlLongLine(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Long Line Candle indicator for ticks or bars in the specified period.
 int[] cdlMarubozu(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Marubozu indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlMarubozu(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Marubozu indicator for ticks or bars in the specified period.
 int cdlMarubozu(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Marubozu indicator for a bar specified with the shift parameter.
 int[] cdlMarubozu(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Marubozu indicator for ticks or bars in the specified period.
 int[] cdlMatchingLow(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Matching Low indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlMatchingLow(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Matching Low indicator for ticks or bars in the specified period.
 int cdlMatchingLow(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Matching Low indicator for a bar specified with the shift parameter.
 int[] cdlMatchingLow(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Matching Low indicator for ticks or bars in the specified period.
 int[] cdlMathold(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Mat Hold indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlMathold(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, long from, long to)
          Calculates the Mat Hold indicator for ticks or bars in the specified period.
 int cdlMathold(Instrument instrument, Period period, OfferSide side, double penetration, int shift)
          Calculates the Mat Hold indicator for a bar specified with the shift parameter.
 int[] cdlMathold(Instrument instrument, Period period, OfferSide side, double penetration, long from, long to)
          Calculates the Mat Hold indicator for ticks or bars in the specified period.
 int[] cdlMorningDojiStar(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Morning Doji Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlMorningDojiStar(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, long from, long to)
          Calculates the Morning Doji Star indicator for ticks or bars in the specified period.
 int cdlMorningDojiStar(Instrument instrument, Period period, OfferSide side, double penetration, int shift)
          Calculates the Morning Doji Star indicator for a bar specified with the shift parameter.
 int[] cdlMorningDojiStar(Instrument instrument, Period period, OfferSide side, double penetration, long from, long to)
          Calculates the Morning Doji Star indicator for ticks or bars in the specified period.
 int[] cdlMorningStar(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Morning Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlMorningStar(Instrument instrument, Period period, OfferSide side, double penetration, Filter filter, long from, long to)
          Calculates the Morning Star indicator for ticks or bars in the specified period.
 int cdlMorningStar(Instrument instrument, Period period, OfferSide side, double penetration, int shift)
          Calculates the Morning Star indicator for a bar specified with the shift parameter.
 int[] cdlMorningStar(Instrument instrument, Period period, OfferSide side, double penetration, long from, long to)
          Calculates the Morning Star indicator for ticks or bars in the specified period.
 int[] cdlOnNeck(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the On-Neck Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlOnNeck(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the On-Neck Pattern for ticks or bars in the specified period.
 int cdlOnNeck(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the On-Neck Pattern for a bar specified with the shift parameter.
 int[] cdlOnNeck(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the On-Neck Pattern for ticks or bars in the specified period.
 int[] cdlPiercing(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Piercing Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlPiercing(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Piercing Pattern for ticks or bars in the specified period.
 int cdlPiercing(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Piercing Pattern for a bar specified with the shift parameter.
 int[] cdlPiercing(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Piercing Pattern for ticks or bars in the specified period.
 int[] cdlRickshawMan(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Rickshaw Man indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlRickshawMan(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Rickshaw Man indicator for ticks or bars in the specified period.
 int cdlRickshawMan(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Rickshaw Man indicator for a bar specified with the shift parameter.
 int[] cdlRickshawMan(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Rickshaw Man indicator for ticks or bars in the specified period.
 int[] cdlRiseFall3Methods(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Rising/Falling Three Methods indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlRiseFall3Methods(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Rising/Falling Three Methods indicator for ticks or bars in the specified period.
 int cdlRiseFall3Methods(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Rising/Falling Three Methods indicator for a bar specified with the shift parameter.
 int[] cdlRiseFall3Methods(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Rising/Falling Three Methods indicator for ticks or bars in the specified period.
 int[] cdlSeparatingLines(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Separating Lines indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlSeparatingLines(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Separating Lines indicator for ticks or bars in the specified period.
 int cdlSeparatingLines(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Separating Lines indicator for a bar specified with the shift parameter.
 int[] cdlSeparatingLines(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Separating Lines indicator for ticks or bars in the specified period.
 int[] cdlShootingStar(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Shooting Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlShootingStar(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Shooting Star indicator for ticks or bars in the specified period.
 int cdlShootingStar(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Shooting Star indicator for a bar specified with the shift parameter.
 int[] cdlShootingStar(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Shooting Star indicator for ticks or bars in the specified period.
 int[] cdlShortLine(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Short Line Candle indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlShortLine(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Short Line Candle indicator for ticks or bars in the specified period.
 int cdlShortLine(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Short Line Candle indicator for a bar specified with the shift parameter.
 int[] cdlShortLine(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Short Line Candle indicator for ticks or bars in the specified period.
 int[] cdlSpinningTop(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Spinning Top indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlSpinningTop(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Spinning Top indicator for ticks or bars in the specified period.
 int cdlSpinningTop(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Spinning Top indicator for a bar specified with the shift parameter.
 int[] cdlSpinningTop(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Spinning Top indicator for ticks or bars in the specified period.
 int[] cdlStalledPattern(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Stalled Pattern indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlStalledPattern(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Stalled Pattern indicator for ticks or bars in the specified period.
 int cdlStalledPattern(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Stalled Pattern indicator for a bar specified with the shift parameter.
 int[] cdlStalledPattern(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Stalled Pattern indicator for ticks or bars in the specified period.
 int[] cdlStickSandwich(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Stick Sandwich indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlStickSandwich(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Stick Sandwich indicator for ticks or bars in the specified period.
 int cdlStickSandwich(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Stick Sandwich indicator for a bar specified with the shift parameter.
 int[] cdlStickSandwich(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Stick Sandwich indicator for ticks or bars in the specified period.
 int[] cdlTakuri(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Takuri indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlTakuri(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Takuri indicator for ticks or bars in the specified period.
 int cdlTakuri(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Takuri indicator for a bar specified with the shift parameter.
 int[] cdlTakuri(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Takuri indicator for ticks or bars in the specified period.
 int[] cdlTasukiGap(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Tasuki Gap indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlTasukiGap(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Tasuki Gap indicator for ticks or bars in the specified period.
 int cdlTasukiGap(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Tasuki Gap indicator for a bar specified with the shift parameter.
 int[] cdlTasukiGap(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Tasuki Gap indicator for ticks or bars in the specified period.
 int[] cdlThrusting(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Thrusting Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlThrusting(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Thrusting Pattern for ticks or bars in the specified period.
 int cdlThrusting(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Thrusting Pattern for a bar specified with the shift parameter.
 int[] cdlThrusting(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Thrusting Pattern for ticks or bars in the specified period.
 int[] cdlTristar(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Tristar Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlTristar(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Tristar Pattern for ticks or bars in the specified period.
 int cdlTristar(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Tristar Pattern for a bar specified with the shift parameter.
 int[] cdlTristar(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Tristar Pattern for ticks or bars in the specified period.
 int[] cdlUnique3River(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Unique 3 River indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlUnique3River(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Unique 3 River indicator for ticks or bars in the specified period.
 int cdlUnique3River(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Unique 3 River indicator for a bar specified with the shift parameter.
 int[] cdlUnique3River(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Unique 3 River indicator for ticks or bars in the specified period.
 int[] cdlUpsideGap2Crows(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Upside Gap Two Crows indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlUpsideGap2Crows(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Upside Gap Two Crows indicator for ticks or bars in the specified period.
 int cdlUpsideGap2Crows(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Upside Gap Two Crows indicator for a bar specified with the shift parameter.
 int[] cdlUpsideGap2Crows(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Upside Gap Two Crows indicator for ticks or bars in the specified period.
 int[] cdlXsideGap3Methods(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Upside/Downside Gap Three Methods for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] cdlXsideGap3Methods(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Upside/Downside Gap Three Methods for ticks or bars in the specified period.
 int cdlXsideGap3Methods(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Upside/Downside Gap Three Methods for a bar specified with the shift parameter.
 int[] cdlXsideGap3Methods(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Upside/Downside Gap Three Methods for ticks or bars in the specified period.
 double[] ceil(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Ceil indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ceil(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Ceil indicator for ticks or bars in the specified period.
 double ceil(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Ceil indicator for a bar specified with the shift parameter.
 double[] ceil(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Ceil indicator for ticks or bars in the specified period.
 double[] cmo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Chande Momentum Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] cmo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Chande Momentum Oscillator for ticks or bars in the specified period.
 double cmo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Chande Momentum Oscillator for a bar specified with the shift parameter.
 double[] cmo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Chande Momentum Oscillator for ticks or bars in the specified period.
 double[][] cog(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int smoothPeriod, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Center Of Gravity indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] cog(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int smoothPeriod, IIndicators.MaType maType, Filter filter, long from, long to)
          Calculates the Center Of Gravity indicator for ticks or bars in the specified period.
 double[] cog(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int smoothPeriod, IIndicators.MaType maType, int shift)
          Calculates the Center Of Gravity indicator for a bar specified with the shift parameter.
 double[][] cog(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int smoothPeriod, IIndicators.MaType maType, long from, long to)
          Calculates the Center Of Gravity indicator for ticks or bars in the specified period.
 double[] correl(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Pearson's Correlation Coefficient for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] correl(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int timePeriod, Filter filter, long from, long to)
          Calculates the Pearson's Correlation Coefficient for ticks or bars in the specified period.
 double correl(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int timePeriod, int shift)
          Calculates the Pearson's Correlation Coefficient for a bar specified with the shift parameter.
 double[] correl(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int timePeriod, long from, long to)
          Calculates the Pearson's Correlation Coefficient for ticks or bars in the specified period.
 double[] cos(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric Cos for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] cos(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric Cos for ticks or bars in the specified period.
 double cos(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric Cos for a bar specified with the shift parameter.
 double[] cos(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric Cos for ticks or bars in the specified period.
 double[] cosh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric Cosh for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] cosh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric Cosh for ticks or bars in the specified period.
 double cosh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric Cosh for a bar specified with the shift parameter.
 double[] cosh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric Cosh for ticks or bars in the specified period.
 double[] dema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Double Exponential Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] dema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Double Exponential Moving Average for ticks or bars in the specified period.
 double dema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Double Exponential Moving Average for a bar specified with the shift parameter.
 double[] dema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Double Exponential Moving Average for ticks or bars in the specified period.
 double[] div(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Arithmetic Div for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] div(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, Filter filter, long from, long to)
          Calculates the Vector Arithmetic Div for ticks or bars in the specified period.
 double div(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int shift)
          Calculates the Vector Arithmetic Div for a bar specified with the shift parameter.
 double[] div(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, long from, long to)
          Calculates the Vector Arithmetic Div for ticks or bars in the specified period.
 double[][] dmi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Average Directional Movement Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] dmi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Average Directional Movement Index for ticks or bars in the specified period.
 double[] dmi(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Average Directional Movement Index for a bar specified with the shift parameter.
 double[][] dmi(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Average Directional Movement Index for ticks or bars in the specified period.
 double[][] donchian(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Donchian Channel indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] donchian(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Donchian Channel indicator for ticks or bars in the specified period.
 double[] donchian(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Donchian Channel indicator for a bar specified with the shift parameter.
 double[][] donchian(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Donchian Channel indicator for ticks or bars in the specified period.
 double[] dx(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Directional Movement Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] dx(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Directional Movement Index for ticks or bars in the specified period.
 double dx(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Directional Movement Index for a bar specified with the shift parameter.
 double[] dx(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Directional Movement Index for ticks or bars in the specified period.
 double[] ema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Exponential Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Exponential Moving Average for ticks or bars in the specified period.
 double ema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Exponential Moving Average for a bar specified with the shift parameter.
 double[] ema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Exponential Moving Average for ticks or bars in the specified period.
 double[][] emaEnvelope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double deviation, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the EMA Envelope indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] emaEnvelope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double deviation, Filter filter, long from, long to)
          Calculates the EMA Envelope indicator for ticks or bars in the specified period.
 double[] emaEnvelope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double deviation, int shift)
          Calculates the EMA Envelope indicator for a bar specified with the shift parameter.
 double[][] emaEnvelope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double deviation, long from, long to)
          Calculates the EMA Envelope indicator for ticks or bars in the specified period.
 double[] exp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Arithmetic Exp indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] exp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Arithmetic Exp indicator for ticks or bars in the specified period.
 double exp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Arithmetic Exp indicator for a bar specified with the shift parameter.
 double[] exp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Arithmetic Exp indicator for ticks or bars in the specified period.
 double[][] fibPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Fibonacci Pivot Points for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] fibPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Fibonacci Pivot Points for ticks or bars in the specified period.
 double[] fibPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Fibonacci Pivot Points for a bar specified with the shift parameter.
 double[][] fibPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Fibonacci Pivot Points for ticks or bars in the specified period.
 double[] floor(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Floor indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] floor(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Floor indicator for ticks or bars in the specified period.
 double floor(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Floor indicator for a bar specified with the shift parameter.
 double[] floor(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Floor indicator for ticks or bars in the specified period.
 double[] force(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Force Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] force(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, Filter filter, long from, long to)
          Calculates the Force Index for ticks or bars in the specified period.
 double force(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, int shift)
          Calculates the Force Index for a bar specified with the shift parameter.
 double[] force(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, long from, long to)
          Calculates the Force Index for ticks or bars in the specified period.
 double[][] fractal(Instrument instrument, Period period, OfferSide side, int barsOnSides, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Fractal indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] fractal(Instrument instrument, Period period, OfferSide side, int barsOnSides, Filter filter, long from, long to)
          Calculates the Fractal indicator for ticks or bars in the specified period.
 double[] fractal(Instrument instrument, Period period, OfferSide side, int barsOnSides, int shift)
          Calculates the Fractal indicator for a bar specified with the shift parameter.
 double[][] fractal(Instrument instrument, Period period, OfferSide side, int barsOnSides, long from, long to)
          Calculates the Fractal indicator for ticks or bars in the specified period.
 double[][] fractalLines(Instrument instrument, Period period, OfferSide side, int barsOnSides, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Fractal lines indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] fractalLines(Instrument instrument, Period period, OfferSide side, int barsOnSides, Filter filter, long from, long to)
          Calculates the Fractal lines indicator for ticks or bars in the specified period.
 double[] fractalLines(Instrument instrument, Period period, OfferSide side, int barsOnSides, int shift)
          Calculates the Fractal lines indicator for a bar specified with the shift parameter.
 double[][] fractalLines(Instrument instrument, Period period, OfferSide side, int barsOnSides, long from, long to)
          Calculates the Fractal lines indicator for ticks or bars in the specified period.
 double[][] gator(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int jawTimePeriod, int teethTimePeriod, int lipsTimePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Gator Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] gator(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int jawTimePeriod, int teethTimePeriod, int lipsTimePeriod, Filter filter, long from, long to)
          Calculates the Gator Oscillator for ticks or bars in the specified period.
 double[] gator(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int jawTimePeriod, int teethTimePeriod, int lipsTimePeriod, int shift)
          Calculates the Gator Oscillator for a bar specified with the shift parameter.
 double[][] gator(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int jawTimePeriod, int teethTimePeriod, int lipsTimePeriod, long from, long to)
          Calculates the Gator Oscillator for ticks or bars in the specified period.
 java.util.Collection<java.lang.String> getAllNames()
          Returns a list of all indicator names
 java.util.Collection<java.lang.String> getGroups()
          Returns a list of indicator groups
 IIndicator getIndicator(java.lang.String name)
          Returns the indicator with the specified name
 java.util.Collection<java.lang.String> getNames(java.lang.String groupName)
          Returns indicator names that belong to the specified group
 double[][] heikenAshi(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Deprecated. replaced by heikinAshi(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
 double[] heikenAshi(Instrument instrument, Period period, OfferSide side, int shift)
          Deprecated. replaced by heikinAshi(Instrument instrument, Period period, OfferSide side, int shift)
 double[][] heikenAshi(Instrument instrument, Period period, OfferSide side, long from, long to)
          Deprecated. replaced by heikinAshi(Instrument instrument, Period period, OfferSide side, long from, long to)
 double[][] heikinAshi(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Heikin Ashi indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] heikinAshi(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Heikin Ashi indicator for ticks or bars in the specified period.
 double[] heikinAshi(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Heikin Ashi indicator for a bar specified with the shift parameter.
 double[][] heikinAshi(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Heikin Ashi indicator for ticks or bars in the specified period.
 double[] hma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hull Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] hma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Hull Moving Average indicator for ticks or bars in the specified period.
 double hma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Hull Moving Average indicator for a bar specified with the shift parameter.
 double[] hma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Hull Moving Average indicator for ticks or bars in the specified period.
 double[] ht_dcperiod(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hilbert Transform - Dominant Cycle Period indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ht_dcperiod(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Hilbert Transform - Dominant Cycle Period indicator for ticks or bars in the specified period.
 double ht_dcperiod(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Hilbert Transform - Dominant Cycle Period indicator for a bar specified with the shift parameter.
 double[] ht_dcperiod(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Hilbert Transform - Dominant Cycle Period indicator for ticks or bars in the specified period.
 double[] ht_dcphase(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hilbert Transform - Dominant Cycle Phase for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ht_dcphase(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Hilbert Transform - Dominant Cycle Phase for ticks or bars in the specified period.
 double ht_dcphase(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Hilbert Transform - Dominant Cycle Phase for a bar specified with the shift parameter.
 double[] ht_dcphase(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Hilbert Transform - Dominant Cycle Phase for ticks or bars in the specified period.
 double[][] ht_phasor(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hilbert Transform - Phasor Components indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] ht_phasor(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Hilbert Transform - Phasor Components indicator for ticks or bars in the specified period.
 double[] ht_phasor(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Hilbert Transform - Phasor Components indicator for a bar specified with the shift parameter.
 double[][] ht_phasor(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Hilbert Transform - Phasor Components indicator for ticks or bars in the specified period.
 double[][] ht_sine(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hilbert Transform - SineWave indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] ht_sine(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Hilbert Transform - SineWave indicator for ticks or bars in the specified period.
 double[] ht_sine(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Hilbert Transform - SineWave indicator for a bar specified with the shift parameter.
 double[][] ht_sine(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Hilbert Transform - SineWave indicator for ticks or bars in the specified period.
 double[] ht_trendline(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hilbert Transform - Instantaneous Trendline indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ht_trendline(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Hilbert Transform - Instantaneous Trendline indicator for ticks or bars in the specified period.
 double ht_trendline(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Hilbert Transform - Instantaneous Trendline indicator for a bar specified with the shift parameter.
 double[] ht_trendline(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Hilbert Transform - Instantaneous Trendline indicator for ticks or bars in the specified period.
 int[] ht_trendmode(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Hilbert Transform - Trend vs Cycle Mode indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[] ht_trendmode(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Hilbert Transform - Trend vs Cycle Mode indicator for ticks or bars in the specified period.
 int ht_trendmode(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Hilbert Transform - Trend vs Cycle Mode indicator for a bar specified with the shift parameter.
 int[] ht_trendmode(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Hilbert Transform - Trend vs Cycle Mode indicator for ticks or bars in the specified period.
 double[][] ichimoku(Instrument instrument, Period period, OfferSide side, int tenkan, int kijun, int senkou, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Ichimoku indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] ichimoku(Instrument instrument, Period period, OfferSide side, int tenkan, int kijun, int senkou, Filter filter, long from, long to)
          Calculates the Ichimoku indicator for ticks or bars in the specified period.
 double[] ichimoku(Instrument instrument, Period period, OfferSide side, int tenkan, int kijun, int senkou, int shift)
          Calculates the Ichimoku indicator for a bar specified with the shift parameter.
 double[][] ichimoku(Instrument instrument, Period period, OfferSide side, int tenkan, int kijun, int senkou, long from, long to)
          Calculates the Ichimoku indicator for ticks or bars in the specified period.
 double[] kairi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Kairi indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] kairi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, Filter filter, long from, long to)
          Calculates the Kairi indicator for ticks or bars in the specified period.
 double kairi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, int shift)
          Calculates the Kairi indicator for a bar specified with the shift parameter.
 double[] kairi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, long from, long to)
          Calculates the Kairi indicator for ticks or bars in the specified period.
 double[] kama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Deprecated. replaced by kama(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
 double[] kama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Deprecated. replaced by kama(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, Filter filter, long from, long to)
 double kama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Deprecated. replaced by kama(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, int shift)
 double[] kama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Kaufman Adaptive Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] kama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, Filter filter, long from, long to)
          Calculates the Kaufman Adaptive Moving Average for ticks or bars in the specified period.
 double kama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, int shift)
          Calculates the Kaufman Adaptive Moving Average for a bar specified with the shift parameter.
 double[] kama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, long from, long to)
          Calculates the Kaufman Adaptive Moving Average for ticks or bars in the specified period.
 double[] kama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Deprecated. replaced by kama(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, long from, long to)
 double[][] keltner(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Keltner Channel indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] keltner(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Keltner Channel indicator for ticks or bars in the specified period.
 double[] keltner(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Keltner Channel indicator for a bar specified with the shift parameter.
 double[][] keltner(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Keltner Channel indicator for ticks or bars in the specified period.
 double[] lagACS1(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int ma, double gamma, int lookback, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Laguerre-ACS1 indicator for ticks or bars in the specified period.
 double[] lagACS1(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int ma, double gamma, int lookback, Filter filter, long from, long to)
          Calculates the Laguerre-ACS1 indicator for ticks or bars in the specified period.
 double lagACS1(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int ma, double gamma, int lookback, int shift)
          Calculates the Laguerre-ACS1 indicator for a bar specified with the shift parameter.
 double[] lagACS1(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int ma, double gamma, int lookback, long from, long to)
          Calculates the Laguerre-ACS1 indicator for ticks or bars in the specified period.
 double[] lasacs1(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int ma, double gamma, int lookback, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Deprecated. replaced by lagACS1(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int ma, double gamma, int lookback, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
 double lasacs1(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int ma, double gamma, int lookback, int shift)
          Deprecated. replaced by lagACS1(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int ma, double gamma, int lookback, int shift)
 double[] lasacs1(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int ma, double gamma, int lookback, long from, long to)
          Deprecated. replaced by lagACS1(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int ma, double gamma, int lookback, long from, long to)
 double[] linearReg(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Linear Regression indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] linearReg(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Linear Regression indicator for ticks or bars in the specified period.
 double linearReg(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Linear Regression indicator for a bar specified with the shift parameter.
 double[] linearReg(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Linear Regression indicator for ticks or bars in the specified period.
 double[] linearRegAngle(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Linear Regression Angle indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] linearRegAngle(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Linear Regression Angle indicator for ticks or bars in the specified period.
 double linearRegAngle(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Linear Regression Angle indicator for a bar specified with the shift parameter.
 double[] linearRegAngle(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Linear Regression Angle indicator for ticks or bars in the specified period.
 double[] linearRegIntercept(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Linear Regression Intercept indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] linearRegIntercept(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Linear Regression Intercept indicator for ticks or bars in the specified period.
 double linearRegIntercept(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Linear Regression Intercept indicator for a bar specified with the shift parameter.
 double[] linearRegIntercept(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Linear Regression Intercept indicator for ticks or bars in the specified period.
 double[] linearRegSlope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Linear Regression Slope indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] linearRegSlope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Linear Regression Slope indicator for ticks or bars in the specified period.
 double linearRegSlope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Linear Regression Slope indicator for a bar specified with the shift parameter.
 double[] linearRegSlope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Linear Regression Slope indicator for ticks or bars in the specified period.
 double[] ln(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Log Natural for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ln(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Log Natural for ticks or bars in the specified period.
 double ln(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Log Natural for a bar specified with the shift parameter.
 double[] ln(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Log Natural for ticks or bars in the specified period.
 double[] log10(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Log10 for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] log10(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Log10 for ticks or bars in the specified period.
 double log10(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Log10 for a bar specified with the shift parameter.
 double[] log10(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Log10 for ticks or bars in the specified period.
 double[] lwma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Linear Weighted Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] lwma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Linear Weighted Moving Average indicator for ticks or bars in the specified period.
 double lwma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Linear Weighted Moving Average indicator for a bar specified with the shift parameter.
 double[] lwma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Linear Weighted Moving Average indicator for ticks or bars in the specified period.
 double[] ma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, Filter filter, long from, long to)
          Calculates the Moving Average for ticks or bars in the specified period.
 double ma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, int shift)
          Calculates the Moving Average for a bar specified with the shift parameter.
 double[] ma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, IIndicators.MaType maType, long from, long to)
          Calculates the Moving Average for ticks or bars in the specified period.
 double[][] macd(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, int signalPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Moving Average Convergence/Divergence indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] macd(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, int signalPeriod, Filter filter, long from, long to)
          Calculates the Moving Average Convergence/Divergence indicator for ticks or bars in the specified period.
 double[] macd(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, int signalPeriod, int shift)
          Calculates the Moving Average Convergence/Divergence indicator for a bar specified with the shift parameter.
 double[][] macd(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, int signalPeriod, long from, long to)
          Calculates the Moving Average Convergence/Divergence indicator for ticks or bars in the specified period.
 double[][] macdExt(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, IIndicators.MaType fastMaType, int slowPeriod, IIndicators.MaType slowMaType, int signalPeriod, IIndicators.MaType signalMaType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the MACD with controllable MA type indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] macdExt(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, IIndicators.MaType fastMaType, int slowPeriod, IIndicators.MaType slowMaType, int signalPeriod, IIndicators.MaType signalMaType, Filter filter, long from, long to)
          Calculates the MACD with controllable MA type indicator for ticks or bars in the specified period.
 double[] macdExt(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, IIndicators.MaType fastMaType, int slowPeriod, IIndicators.MaType slowMaType, int signalPeriod, IIndicators.MaType signalMaType, int shift)
          Calculates the MACD with controllable MA type indicator for a bar specified with the shift parameter.
 double[][] macdExt(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, IIndicators.MaType fastMaType, int slowPeriod, IIndicators.MaType slowMaType, int signalPeriod, IIndicators.MaType signalMaType, long from, long to)
          Calculates the MACD with controllable MA type indicator for ticks or bars in the specified period.
 double[][] macdFix(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int signalPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Moving Average Convergence/Divergence Fix indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] macdFix(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int signalPeriod, Filter filter, long from, long to)
          Calculates the Moving Average Convergence/Divergence Fix indicator for ticks or bars in the specified period.
 double[] macdFix(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int signalPeriod, int shift)
          Calculates the Moving Average Convergence/Divergence Fix indicator for a bar specified with the shift parameter.
 double[][] macdFix(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int signalPeriod, long from, long to)
          Calculates the Moving Average Convergence/Divergence Fix indicator for ticks or bars in the specified period.
 double[][] maEnvelope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double deviation, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the MA Envelope indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] maEnvelope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double deviation, Filter filter, long from, long to)
          Calculates the MA Envelope indicator for ticks or bars in the specified period.
 double[] maEnvelope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double deviation, int shift)
          Calculates the MA Envelope indicator for a bar specified with the shift parameter.
 double[][] maEnvelope(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double deviation, long from, long to)
          Calculates the MA Envelope indicator for ticks or bars in the specified period.
 double[][] mama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, double fastLimit, double slowLimit, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the MESA Adaptive Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] mama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, double fastLimit, double slowLimit, Filter filter, long from, long to)
          Calculates the MESA Adaptive Moving Average indicator for ticks or bars in the specified period.
 double[] mama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, double fastLimit, double slowLimit, int shift)
          Calculates the MESA Adaptive Moving Average indicator for a bar specified with the shift parameter.
 double[][] mama(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, double fastLimit, double slowLimit, long from, long to)
          Calculates the MESA Adaptive Moving Average indicator for ticks or bars in the specified period.
 double[] mavp(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int minPeriod, int maxPeriod, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Moving average with variable period indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] mavp(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int minPeriod, int maxPeriod, IIndicators.MaType maType, Filter filter, long from, long to)
          Calculates the Moving average with variable period indicator for ticks or bars in the specified period.
 double mavp(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int minPeriod, int maxPeriod, IIndicators.MaType maType, int shift)
          Calculates the Moving average with variable period indicator for a bar specified with the shift parameter.
 double[] mavp(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int minPeriod, int maxPeriod, IIndicators.MaType maType, long from, long to)
          Calculates the Moving average with variable period indicator for ticks or bars in the specified period.
 double[] max(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Highest value over a specified period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] max(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Highest value over a specified period for ticks or bars in the specified period.
 double max(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Highest value over a specified period for a bar specified with the shift parameter.
 double[] max(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Highest value over a specified period for ticks or bars in the specified period.
 double[] medPrice(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Median Price for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] medPrice(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Median Price for ticks or bars in the specified period.
 double medPrice(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Median Price for a bar specified with the shift parameter.
 double[] medPrice(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Median Price for ticks or bars in the specified period.
 double[] mfi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Money Flow Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] mfi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Money Flow Index for ticks or bars in the specified period.
 double mfi(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Money Flow Index for a bar specified with the shift parameter.
 double[] mfi(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Money Flow Index for ticks or bars in the specified period.
 double[] midPoint(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the MidPoint over period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] midPoint(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the MidPoint over period for ticks or bars in the specified period.
 double midPoint(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the MidPoint over period for a bar specified with the shift parameter.
 double[] midPoint(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the MidPoint over period for ticks or bars in the specified period.
 double[] midPrice(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Midpoint Price over period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] midPrice(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Midpoint Price over period for ticks or bars in the specified period.
 double midPrice(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Midpoint Price over period for a bar specified with the shift parameter.
 double[] midPrice(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Midpoint Price over period for ticks or bars in the specified period.
 double[] min(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the lowest value over a specified period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] min(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the lowest value over a specified period for ticks or bars in the specified period.
 double min(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the lowest value over a specified period for a bar specified with the shift parameter.
 double[] min(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the lowest value over a specified period for ticks or bars in the specified period.
 double[][] minMax(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the lowest and the highest values over a specified period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] minMax(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the lowest and the highest values over a specified period for ticks or bars in the specified period.
 double[] minMax(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the lowest and the highest values over a specified period for a bar specified with the shift parameter.
 double[][] minMax(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the lowest and the highest values over a specified period for ticks or bars in the specified period.
 double[] minusDi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Minus Directional Indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] minusDi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Minus Directional Indicator for ticks or bars in the specified period.
 double minusDi(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Minus Directional Indicator for a bar specified with the shift parameter.
 double[] minusDi(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Minus Directional Indicator for ticks or bars in the specified period.
 double[] minusDm(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Minus Directional Movement indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] minusDm(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Minus Directional Movement indicator for ticks or bars in the specified period.
 double minusDm(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Minus Directional Movement indicator for a bar specified with the shift parameter.
 double[] minusDm(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Minus Directional Movement indicator for ticks or bars in the specified period.
 double[] mom(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Momentum indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] mom(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Momentum indicator for ticks or bars in the specified period.
 double mom(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Momentum indicator for a bar specified with the shift parameter.
 double[] mom(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Momentum indicator for ticks or bars in the specified period.
 double[] mult(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Arithmetic Mult for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] mult(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, Filter filter, long from, long to)
          Calculates the Vector Arithmetic Mult for ticks or bars in the specified period.
 double mult(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int shift)
          Calculates the Vector Arithmetic Mult for a bar specified with the shift parameter.
 double[] mult(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, long from, long to)
          Calculates the Vector Arithmetic Mult for ticks or bars in the specified period.
 double[][] murrey(Instrument instrument, Period period, OfferSide side, int nPeriod, int timePeriod, int stepBack, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Murrey Channels indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] murrey(Instrument instrument, Period period, OfferSide side, int nPeriod, int timePeriod, int stepBack, Filter filter, long from, long to)
          Calculates the Murrey Channels indicator for ticks or bars in the specified period.
 double[] murrey(Instrument instrument, Period period, OfferSide side, int nPeriod, int timePeriod, int stepBack, int shift)
          Calculates the Murrey Channels indicator for a bar specified with the shift parameter.
 double[][] murrey(Instrument instrument, Period period, OfferSide side, int nPeriod, int timePeriod, int stepBack, long from, long to)
          Calculates the Murrey Channels indicator for ticks or bars in the specified period.
 double[] natr(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Normalized Average True Range indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] natr(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Normalized Average True Range indicator for ticks or bars in the specified period.
 double natr(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Normalized Average True Range indicator for a bar specified with the shift parameter.
 double[] natr(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Normalized Average True Range indicator for ticks or bars in the specified period.
 double[] obv(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, OfferSide sideForPriceV, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the On Balance Volume for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] obv(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, OfferSide sideForPriceV, Filter filter, long from, long to)
          Calculates the On Balance Volume for ticks or bars in the specified period.
 double obv(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, OfferSide sideForPriceV, int shift)
          Calculates the On Balance Volume for a bar specified with the shift parameter.
 double[] obv(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, OfferSide sideForPriceV, long from, long to)
          Calculates the On Balance Volume for ticks or bars in the specified period.
 double[] osma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fast_ema_period, int slow_ema_period, int signal_period, Filter filter, long from, long to)
          Calculates the Moving Average of Oscillator for ticks or bars in the specified period.
 double osma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fast_ema_period, int slow_ema_period, int signal_period, int shift)
          Calculates the Moving Average of Oscillator for a bar specified with the shift parameter.
 double[] osma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fast_ema_period, int slow_ema_period, int signal_period, long from, long to)
          Calculates the Moving Average of Oscillator for ticks or bars in the specified period.
 double[] osma(Instrument instrument, Period period, OfferSide side, int fast_ema_period, int slow_ema_period, int signal_period, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Moving Average of Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, boolean showHistoricalLevels, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Deprecated. replaced by pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
 double[][] pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, boolean showHistoricalLevels, Filter filter, long from, long to)
          Deprecated. replaced by pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
 double[] pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, boolean showHistoricalLevels, int shift)
          Deprecated. replaced by pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
 double[][] pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, boolean showHistoricalLevels, long from, long to)
          Deprecated. replaced by pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
 double[][] pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Pivot points indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Pivot points indicator for ticks or bars in the specified period.
 double[] pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Pivot points indicator for a bar specified with the shift parameter.
 double[][] pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Pivot points indicator for ticks or bars in the specified period.
 double[] plusDi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Plus Directional Indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] plusDi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Plus Directional Indicator for ticks or bars in the specified period.
 double plusDi(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Plus Directional Indicator for a bar specified with the shift parameter.
 double[] plusDi(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Plus Directional Indicator for ticks or bars in the specified period.
 double[] plusDm(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Plus Directional Movement indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] plusDm(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Plus Directional Movement indicator for ticks or bars in the specified period.
 double plusDm(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Plus Directional Movement indicator for a bar specified with the shift parameter.
 double[] plusDm(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Plus Directional Movement indicator for ticks or bars in the specified period.
 double[] ppo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Percentage Price Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ppo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, Filter filter, long from, long to)
          Calculates the Percentage Price Oscillator for ticks or bars in the specified period.
 double ppo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, int shift)
          Calculates the Percentage Price Oscillator for a bar specified with the shift parameter.
 double[] ppo(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, long from, long to)
          Calculates the Percentage Price Oscillator for ticks or bars in the specified period.
 double[] prchannel(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Deprecated. replaced by prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
 double prchannel(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, int shift)
          Deprecated. replaced by prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
 double[] prchannel(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int fastPeriod, int slowPeriod, IIndicators.MaType maType, long from, long to)
          Deprecated. replaced by prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
 double[] prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Price Channel indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Price Channel indicator for ticks or bars in the specified period.
 double prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Price Channel indicator for a bar specified with the shift parameter.
 double[] prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Price Channel indicator for ticks or bars in the specified period.
 double[] rci(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Rank Correlation Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] rci(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Rank Correlation Index for ticks or bars in the specified period.
 double rci(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Rank Correlation Index for a bar specified with the shift parameter.
 double[] rci(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Rank Correlation Index for ticks or bars in the specified period.
 java.lang.String registerCustomIndicator(java.lang.Class<? extends IIndicator> indicatorClass)
          Register custom indicator by class
 java.lang.String registerCustomIndicator(java.io.File compiledCustomIndcatorFile)
          Attempts to open and register a custom indicator in the system.
 void registerDownloadableIndicator(java.lang.String id, java.lang.String name)
          Attempts to open and register a downloadable indicator in the system.
 double[] rmi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int momentumPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Relative Momentum Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] rmi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int momentumPeriod, Filter filter, long from, long to)
          Calculates the Relative Momentum Index for ticks or bars in the specified period.
 double rmi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int momentumPeriod, int shift)
          Calculates the Relative Momentum Index for a bar specified with the shift parameter.
 double[] rmi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int momentumPeriod, long from, long to)
          Calculates the Relative Momentum Index for ticks or bars in the specified period.
 double[] roc(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Rate of change indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] roc(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Rate of change indicator for ticks or bars in the specified period.
 double roc(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Rate of change indicator for a bar specified with the shift parameter.
 double[] roc(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Rate of change indicator for ticks or bars in the specified period.
 double[] rocp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Rate of change Percentage indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] rocp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Rate of change Percentage indicator for ticks or bars in the specified period.
 double rocp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Rate of change Percentage indicator for a bar specified with the shift parameter.
 double[] rocp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Rate of change Percentage indicator for ticks or bars in the specified period.
 double[] rocr(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Rate of change ratio: (price/prevPrice) for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] rocr(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Rate of change ratio: (price/prevPrice) for ticks or bars in the specified period.
 double rocr(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Rate of change ratio: (price/prevPrice) for a bar specified with the shift parameter.
 double[] rocr(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Rate of change ratio: (price/prevPrice) for ticks or bars in the specified period.
 double[] rocr100(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Rate of change ratio 100 scale indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] rocr100(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Rate of change ratio 100 scale indicator for ticks or bars in the specified period.
 double rocr100(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Rate of change ratio 100 scale indicator for a bar specified with the shift parameter.
 double[] rocr100(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Rate of change ratio 100 scale indicator for ticks or bars in the specified period.
 double[] rsi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Relative Strength Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] rsi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Relative Strength Index for ticks or bars in the specified period.
 double rsi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Relative Strength Index for a bar specified with the shift parameter.
 double[] rsi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Relative Strength Index for ticks or bars in the specified period.
 double[][] rvi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Relative Vigor Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] rvi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Relative Vigor Index for ticks or bars in the specified period.
 double[] rvi(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Relative Vigor Index for a bar specified with the shift parameter.
 double[][] rvi(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Relative Vigor Index for ticks or bars in the specified period.
 double[] sar(Instrument instrument, Period period, OfferSide side, double acceleration, double maximum, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Parabolic SAR indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double sar(Instrument instrument, Period period, OfferSide side, double acceleration, double maximum, int shift)
          Calculates the Parabolic SAR indicator for a bar specified with the shift parameter.
 double[] sar(Instrument instrument, Period period, OfferSide side, double acceleration, double maximum, long from, long to)
          Calculates the Parabolic SAR indicator for ticks or bars in the specified period.
 double[] sarExt(Instrument instrument, Period period, OfferSide side, double startValue, double offsetOnReverse, double accelerationInitLong, double accelerationLong, double accelerationMaxLong, double accelerationInitShort, double accelerationShort, double accelerationMaxShort, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Parabolic SAR - Extended indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double sarExt(Instrument instrument, Period period, OfferSide side, double startValue, double offsetOnReverse, double accelerationInitLong, double accelerationLong, double accelerationMaxLong, double accelerationInitShort, double accelerationShort, double accelerationMaxShort, int shift)
          Calculates the Parabolic SAR - Extended indicator for a bar specified with the shift parameter.
 double[] sarExt(Instrument instrument, Period period, OfferSide side, double startValue, double offsetOnReverse, double accelerationInitLong, double accelerationLong, double accelerationMaxLong, double accelerationInitShort, double accelerationShort, double accelerationMaxShort, long from, long to)
          Calculates the Parabolic SAR - Extended indicator for ticks or bars in the specified period.
 double[] sin(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric Sin for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] sin(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric Sin for ticks or bars in the specified period.
 double sin(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric Sin for a bar specified with the shift parameter.
 double[] sin(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric Sin for ticks or bars in the specified period.
 double[] sinh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric Sinh for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] sinh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric Sinh for ticks or bars in the specified period.
 double sinh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric Sinh for a bar specified with the shift parameter.
 double[] sinh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric Sinh for ticks or bars in the specified period.
 double[] sma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Simple Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] sma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Simple Moving Average for ticks or bars in the specified period.
 double sma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Simple Moving Average for a bar specified with the shift parameter.
 double[] sma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Simple Moving Average for ticks or bars in the specified period.
 double[][] smi(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int slowKPeriod, int slowDPeriod, int smoothingPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Stochastic Momentum Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] smi(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int slowKPeriod, int slowDPeriod, int smoothingPeriod, Filter filter, long from, long to)
          Calculates the Stochastic Momentum Index for ticks or bars in the specified period.
 double[] smi(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int slowKPeriod, int slowDPeriod, int smoothingPeriod, int shift)
          Calculates the Stochastic Momentum Index for a bar specified with the shift parameter.
 double[][] smi(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int slowKPeriod, int slowDPeriod, int smoothingPeriod, long from, long to)
          Calculates the Stochastic Momentum Index for ticks or bars in the specified period.
 double[] smma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Smoothed Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] smma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Smoothed Moving Average for ticks or bars in the specified period.
 double smma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Smoothed Moving Average indicator for a bar specified with the shift parameter.
 double[] smma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Smoothed Moving Average for ticks or bars in the specified period.
 double[] sqrt(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Square Root for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] sqrt(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Square Root for ticks or bars in the specified period.
 double sqrt(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Square Root for a bar specified with the shift parameter.
 double[] sqrt(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Square Root for ticks or bars in the specified period.
 double[] stdDev(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDev, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Standard Deviation for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] stdDev(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDev, Filter filter, long from, long to)
          Calculates the Standard Deviation for ticks or bars in the specified period.
 double stdDev(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDev, int shift)
          Calculates the Standard Deviation for a bar specified with the shift parameter.
 double[] stdDev(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDev, long from, long to)
          Calculates the Standard Deviation for ticks or bars in the specified period.
 double[][] stoch(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int slowKPeriod, IIndicators.MaType slowKMaType, int slowDPeriod, IIndicators.MaType slowDMaType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Stochastic indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] stoch(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int slowKPeriod, IIndicators.MaType slowKMaType, int slowDPeriod, IIndicators.MaType slowDMaType, Filter filter, long from, long to)
          Calculates the Stochastic indicator for ticks or bars in the specified period.
 double[] stoch(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int slowKPeriod, IIndicators.MaType slowKMaType, int slowDPeriod, IIndicators.MaType slowDMaType, int shift)
          Calculates the Stochastic indicator for a bar specified with the shift parameter.
 double[][] stoch(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int slowKPeriod, IIndicators.MaType slowKMaType, int slowDPeriod, IIndicators.MaType slowDMaType, long from, long to)
          Calculates the Stochastic indicator for ticks or bars in the specified period.
 double[][] stochF(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int fastDPeriod, IIndicators.MaType fastDMaType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Stochastic Fast indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] stochF(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int fastDPeriod, IIndicators.MaType fastDMaType, Filter filter, long from, long to)
          Calculates the Stochastic Fast indicator for ticks or bars in the specified period.
 double[] stochF(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int fastDPeriod, IIndicators.MaType fastDMaType, int shift)
          Calculates the Stochastic Fast indicator for a bar specified with the shift parameter.
 double[][] stochF(Instrument instrument, Period period, OfferSide side, int fastKPeriod, int fastDPeriod, IIndicators.MaType fastDMaType, long from, long to)
          Calculates the Stochastic Fast indicator for ticks or bars in the specified period.
 double[][] stochRsi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int fastKPeriod, int fastDPeriod, IIndicators.MaType fastDMaType, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Stochastic Relative Strength Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] stochRsi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int fastKPeriod, int fastDPeriod, IIndicators.MaType fastDMaType, Filter filter, long from, long to)
          Calculates the Stochastic Relative Strength Index for ticks or bars in the specified period.
 double[] stochRsi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int fastKPeriod, int fastDPeriod, IIndicators.MaType fastDMaType, int shift)
          Calculates the Stochastic Relative Strength Index for a bar specified with the shift parameter.
 double[][] stochRsi(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int fastKPeriod, int fastDPeriod, IIndicators.MaType fastDMaType, long from, long to)
          Calculates the Stochastic Relative Strength Index for ticks or bars in the specified period.
 double[] sub(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Arithmetic Substraction for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] sub(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, Filter filter, long from, long to)
          Calculates the Vector Arithmetic Substraction for ticks or bars in the specified period.
 double sub(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, int shift)
          Calculates the Vector Arithmetic Substraction for a bar specified with the shift parameter.
 double[] sub(Instrument instrument, Period period, OfferSide side1, IIndicators.AppliedPrice appliedPrice1, OfferSide side2, IIndicators.AppliedPrice appliedPrice2, long from, long to)
          Calculates the Vector Arithmetic Substraction for ticks or bars in the specified period.
 double[] sum(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Summation for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] sum(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Summation for ticks or bars in the specified period.
 double sum(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Summation for a bar specified with the shift parameter.
 double[] sum(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Summation for ticks or bars in the specified period.
 double[][] supportResistance(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Support and Resistance indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] supportResistance(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Support and Resistance indicator for ticks or bars in the specified period.
 double[] supportResistance(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Support and Resistance indicator for a bar specified with the shift parameter.
 double[][] supportResistance(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Support and Resistance indicator for ticks or bars in the specified period.
 double[] t3(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double vFactor, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Triple Exponential Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] t3(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double vFactor, Filter filter, long from, long to)
          Calculates the Triple Exponential Moving Average for ticks or bars in the specified period.
 double t3(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double vFactor, int shift)
          Calculates the Triple Exponential Moving Average for a bar specified with the shift parameter.
 double[] t3(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double vFactor, long from, long to)
          Calculates the Triple Exponential Moving Average for ticks or bars in the specified period.
 double[] tan(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric Tan for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] tan(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric Tan for ticks or bars in the specified period.
 double tan(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric Tan for a bar specified with the shift parameter.
 double[] tan(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric Tan for ticks or bars in the specified period.
 double[] tanh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Vector Trigonometric Tanh for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] tanh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, Filter filter, long from, long to)
          Calculates the Vector Trigonometric Tanh for ticks or bars in the specified period.
 double tanh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Vector Trigonometric Tanh for a bar specified with the shift parameter.
 double[] tanh(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, long from, long to)
          Calculates the Vector Trigonometric Tanh for ticks or bars in the specified period.
 double[] tbop(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Thrust Outside Bar indicator for a bar specified with the shift parameter.
 double[] tbp(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int shift)
          Calculates the Thrust Bar indicator for a bar specified with the shift parameter.
 double[][] td_i(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Tom DeMark Indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] td_i(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Tom DeMark Indicator for ticks or bars in the specified period.
 double[] td_i(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Tom DeMark Indicator for a bar specified with the shift parameter.
 double[][] td_i(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Tom DeMark Indicator for ticks or bars in the specified period.
 int[][] td_s(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the TD Sequential indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 int[][] td_s(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the TD Sequential indicator for ticks or bars in the specified period.
 int[] td_s(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the TD Sequential indicator for a bar specified with the shift parameter.
 int[][] td_s(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the TD Sequential indicator for ticks or bars in the specified period.
 double[] tema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Triple Exponential Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] tema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Triple Exponential Moving Average indicator for ticks or bars in the specified period.
 double tema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Triple Exponential Moving Average indicator for a bar specified with the shift parameter.
 double[] tema(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Triple Exponential Moving Average indicator for ticks or bars in the specified period.
 double[] trange(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the True Range indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] trange(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the True Range indicator for ticks or bars in the specified period.
 double trange(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the True Range indicator for a bar specified with the shift parameter.
 double[] trange(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the True Range indicator for ticks or bars in the specified period.
 double[][] trendEnv(Instrument instrument, Period period, OfferSide side, int timePeriod, double deviation, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Trend Envelope indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] trendEnv(Instrument instrument, Period period, OfferSide side, int timePeriod, double deviation, Filter filter, long from, long to)
          Calculates the Trend Envelope indicator for ticks or bars in the specified period.
 double[] trendEnv(Instrument instrument, Period period, OfferSide side, int timePeriod, double deviation, int shift)
          Calculates the Trend Envelope indicator for a bar specified with the shift parameter.
 double[][] trendEnv(Instrument instrument, Period period, OfferSide side, int timePeriod, double deviation, long from, long to)
          Calculates the Trend Envelope indicator for ticks or bars in the specified period.
 double[] trima(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Triangular Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] trima(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Triangular Moving Average indicator for ticks or bars in the specified period.
 double trima(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Triangular Moving Average indicator for a bar specified with the shift parameter.
 double[] trima(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Triangular Moving Average indicator for ticks or bars in the specified period.
 double[] trix(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] trix(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA indicator for ticks or bars in the specified period.
 double trix(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA indicator for a bar specified with the shift parameter.
 double[] trix(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA indicator for ticks or bars in the specified period.
 double[] tsf(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Time Series Forecast indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] tsf(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Time Series Forecast indicator for ticks or bars in the specified period.
 double tsf(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Time Series Forecast indicator for a bar specified with the shift parameter.
 double[] tsf(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Time Series Forecast indicator for ticks or bars in the specified period.
 double[] tvs(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Time Segmented Volume for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] tvs(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Time Segmented Volume for ticks or bars in the specified period.
 double tvs(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Time Segmented Volume for a bar specified with the shift parameter.
 double[] tvs(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Time Segmented Volume for ticks or bars in the specified period.
 double[] typPrice(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Typical Price for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] typPrice(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Typical Price for ticks or bars in the specified period.
 double typPrice(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Typical Price for a bar specified with the shift parameter.
 double[] typPrice(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Typical Price for ticks or bars in the specified period.
 double[] ultOsc(Instrument instrument, Period period, OfferSide side, int timePeriod1, int timePeriod2, int timePeriod3, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Ultimate Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] ultOsc(Instrument instrument, Period period, OfferSide side, int timePeriod1, int timePeriod2, int timePeriod3, Filter filter, long from, long to)
          Calculates the Ultimate Oscillator for ticks or bars in the specified period.
 double ultOsc(Instrument instrument, Period period, OfferSide side, int timePeriod1, int timePeriod2, int timePeriod3, int shift)
          Calculates the Ultimate Oscillator for a bar specified with the shift parameter.
 double[] ultOsc(Instrument instrument, Period period, OfferSide side, int timePeriod1, int timePeriod2, int timePeriod3, long from, long to)
          Calculates the Ultimate Oscillator for ticks or bars in the specified period.
 double[] var(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDev, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Variance indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] var(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDev, Filter filter, long from, long to)
          Calculates the Variance indicator for ticks or bars in the specified period.
 double var(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDev, int shift)
          Calculates the Variance indicator for a bar specified with the shift parameter.
 double[] var(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, double nbDev, long from, long to)
          Calculates the Variance indicator for ticks or bars in the specified period.
 double[] volume(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates volume for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] volume(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates volume for ticks or bars in the specified period.
 double volume(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates volume for a bar specified with the shift parameter.
 double[] volume(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates volume for ticks or bars in the specified period.
 double[] volumeWAP(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Volume Weighted Average Price for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] volumeWAP(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Volume Weighted Average Price for ticks or bars in the specified period.
 double volumeWAP(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Volume Weighted Average Price for a bar specified with the shift parameter.
 double[] volumeWAP(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Volume Weighted Average Price for ticks or bars in the specified period.
 double[] waddahAttar(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Waddah Attar Trend indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] waddahAttar(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Waddah Attar Trend indicator for ticks or bars in the specified period.
 double waddahAttar(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Waddah Attar Trend indicator for a bar specified with the shift parameter.
 double[] waddahAttar(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Waddah Attar Trend indicator for ticks or bars in the specified period.
 double[] wclPrice(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Weighted Close Price indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] wclPrice(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the Weighted Close Price indicator for ticks or bars in the specified period.
 double wclPrice(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the Weighted Close Price indicator for a bar specified with the shift parameter.
 double[] wclPrice(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the Weighted Close Price indicator for ticks or bars in the specified period.
 double[] willr(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Williams' %R indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] willr(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Williams' %R indicator for ticks or bars in the specified period.
 double willr(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Williams' %R indicator for a bar specified with the shift parameter.
 double[] willr(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Williams' %R indicator for ticks or bars in the specified period.
 double[] wma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Weighted Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] wma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, Filter filter, long from, long to)
          Calculates the Weighted Moving Average for ticks or bars in the specified period.
 double wma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, int shift)
          Calculates the Weighted Moving Average indicator for a bar specified with the shift parameter.
 double[] wma(Instrument instrument, Period period, OfferSide side, IIndicators.AppliedPrice appliedPrice, int timePeriod, long from, long to)
          Calculates the Weighted Moving Average for ticks or bars in the specified period.
 double[][] woodPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the Woodie Pivot indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[][] woodPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)
          Calculates the Woodie Pivot indicator for ticks or bars in the specified period.
 double[] woodPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
          Calculates the Woodie Pivot indicator for a bar specified with the shift parameter.
 double[][] woodPivot(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
          Calculates the Woodie Pivot indicator for ticks or bars in the specified period.
 java.lang.Object[] wsmTime(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the World Stock Market Time indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 java.lang.Object[] wsmTime(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)
          Calculates the World Stock Market Time indicator for ticks or bars in the specified period.
 java.lang.Object[] wsmTime(Instrument instrument, Period period, OfferSide side, int shift)
          Calculates the World Stock Market Time indicator for a bar specified with the shift parameter.
 java.lang.Object[] wsmTime(Instrument instrument, Period period, OfferSide side, long from, long to)
          Calculates the World Stock Market Time indicator for ticks or bars in the specified period.
 double[] zigzag(Instrument instrument, Period period, OfferSide side, int extDepth, int extDeviation, int extBackstep, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
          Calculates the ZigZag indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.
 double[] zigzag(Instrument instrument, Period period, OfferSide side, int extDepth, int extDeviation, int extBackstep, Filter filter, long from, long to)
          Calculates the ZigZag indicator for ticks or bars in the specified period.
 double zigzag(Instrument instrument, Period period, OfferSide side, int extDepth, int extDeviation, int extBackstep, int shift)
          Calculates the ZigZag indicator for a bar specified with the shift parameter.
 double[] zigzag(Instrument instrument, Period period, OfferSide side, int extDepth, int extDeviation, int extBackstep, long from, long to)
          Calculates the ZigZag indicator for ticks or bars in the specified period.
 

Method Detail

getGroups

java.util.Collection<java.lang.String> getGroups()
Returns a list of indicator groups

Returns:
a list of indicator groups

getNames

java.util.Collection<java.lang.String> getNames(java.lang.String groupName)
Returns indicator names that belong to the specified group

Parameters:
groupName - indicator group
Returns:
indicator names

getAllNames

java.util.Collection<java.lang.String> getAllNames()
Returns a list of all indicator names

Returns:
a list of all indicator names

getIndicator

IIndicator getIndicator(java.lang.String name)
Returns the indicator with the specified name

Parameters:
name - name of the indicator
Returns:
indicator

registerCustomIndicator

java.lang.String registerCustomIndicator(java.io.File compiledCustomIndcatorFile)
                                         throws JFException
Attempts to open and register a custom indicator in the system. If operation is successful then the indicator will appear in the list returned by the getAllNames() method and can be called by calculateIndicator(com.dukascopy.api.Instrument, com.dukascopy.api.Period, com.dukascopy.api.OfferSide[], java.lang.String, com.dukascopy.api.IIndicators.AppliedPrice[], java.lang.Object[], int) functions

Parameters:
compiledCustomIndcatorFile - file with the compiled indicator (the one with .jfx extension)
Throws:
JFException - when the indicator does not exist or can not be instantiated or does not pass the validation

registerCustomIndicator

java.lang.String registerCustomIndicator(java.lang.Class<? extends IIndicator> indicatorClass)
                                         throws JFException
Register custom indicator by class

Parameters:
indicatorClass - - indicator class must implement IIndicator interface
Throws:
JFException - in case of any error

registerDownloadableIndicator

void registerDownloadableIndicator(java.lang.String id,
                                   java.lang.String name)
                                   throws JFException
Attempts to open and register a downloadable indicator in the system. If operation is successful then the indicator will appear in the list returned by the getAllNames() method and can be called by calculateIndicator(com.dukascopy.api.Instrument, com.dukascopy.api.Period, com.dukascopy.api.OfferSide[], java.lang.String, com.dukascopy.api.IIndicators.AppliedPrice[], java.lang.Object[], int) functions

Parameters:
id - indicator version identifier
name - name of the indicator
Throws:
JFException - when the given indicator version does not exist or can not be downloaded or can not be instantiated or does not pass the validation

calculateIndicator

java.lang.Object[] calculateIndicator(Instrument instrument,
                                      Period period,
                                      OfferSide[] side,
                                      java.lang.String functionName,
                                      IIndicators.AppliedPrice[] inputTypes,
                                      java.lang.Object[] optParams,
                                      int shift)
                                      throws JFException
This is a universal function that allows getting values for any indicator available, including user indicators.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
functionName - name of the indicator
inputTypes - type of the input data for every input that indicator requires or null if input is PRICE
optParams - array of optional parameters consisting of Doubles and Integers
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
array of doubles or integers for every indicator output.
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

Note: type conversion may be used in order to work with the result of indicator calculation. For example,

 Object[] result = indicators.calculateIndicator(Instrument.EURUSD, 
 	Period.ONE_HOUR, new OfferSide[] {OfferSide.ASK}, "MINMAX",  
 	new AppliedPrice[]{AppliedPrice.CLOSE}, 
 	new Object[]{5}, 1);    
 double min = (Double)(result[0]);
 double max = (Double)(result[1]);
 

calculateIndicator

java.lang.Object[] calculateIndicator(Instrument instrument,
                                      Period period,
                                      OfferSide[] side,
                                      java.lang.String functionName,
                                      IIndicators.AppliedPrice[] inputTypes,
                                      java.lang.Object[] optParams,
                                      long from,
                                      long to)
                                      throws JFException
This is a universal function that allows getting values for any indicator available, including user indicators.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bars
functionName - name of the function
inputTypes - type of the input data for every input that indicator requires or null if input is PRICE
optParams - array of optional parameters consisting of Doubles and Integers
from - start time of the first bar
to - start time of the last bar that should be included in calculation
Returns:
array of arrays of doubles or integers for every indicator output
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

Note: type conversion may be used in order to work with the result of indicator calculation. For example,

 long from = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 2).getTime(); 
 long to = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 1).getTime();
	    
 Object[] result = indicators.calculateIndicator(Instrument.EURUSD, 
 	Period.ONE_HOUR, new OfferSide[] {OfferSide.ASK}, "MINMAX", 
 	new AppliedPrice[]{AppliedPrice.CLOSE}, new Object[]{5}, from, to);
		
 double minFrom = ((double[])result[0])[0];
 double maxFrom = ((double[])result[1])[0];
 double minTo = ((double[])result[0])[1];
 double maxTo = ((double[])result[1])[1];
 

calculateIndicator

java.lang.Object[] calculateIndicator(Instrument instrument,
                                      Period period,
                                      OfferSide[] side,
                                      java.lang.String functionName,
                                      IIndicators.AppliedPrice[] inputTypes,
                                      java.lang.Object[] optParams,
                                      Filter filter,
                                      int numberOfCandlesBefore,
                                      long time,
                                      int numberOfCandlesAfter)
                                      throws JFException
This is a universal function that allows getting values for any indicator available, including user indicators.

Parameters:
instrument - instrument of the bars
period - period of the bars
side - Bid or Ask side of the bars
functionName - name of the function
inputTypes - type of the input data for every input that indicator requires or null if input is PRICE
optParams - array of optional parameters consisting of Doubles and Integers
filter - filter allows to filter candles
numberOfCandlesBefore - how much candles to load before and including candle with time specified in time parameter
time - time of the last candles in period specified in numberOfCandlesBefore parameter or/and time of the candle prior first candle in period specified with numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (not including) candle with time specified in time parameter
Returns:
array of arrays of doubles or integers for every indicator output
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

Note: type conversion may be used in order to work with the result of indicator calculation. For example,

 long time = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 1).getTime(); 
		
 Object[] result = indicators.calculateIndicator(Instrument.EURUSD, 
 	Period.ONE_HOUR, new OfferSide[] {OfferSide.ASK}, "MINMAX", 
 	new AppliedPrice[]{AppliedPrice.CLOSE}, new Object[]{5}, Filter.ALL_FLATS, 2, time, 0);
		 
 double minFrom = ((double[])result[0])[0];
 double maxFrom = ((double[])result[1])[0];
 double minTo = ((double[])result[0])[1];
 double maxTo = ((double[])result[1])[1];
 

calculateIndicator

java.lang.Object[] calculateIndicator(IFeedDescriptor feedDescriptor,
                                      OfferSide[] offerSides,
                                      java.lang.String functionName,
                                      IIndicators.AppliedPrice[] inputTypes,
                                      java.lang.Object[] optParams,
                                      long from,
                                      long to)
                                      throws JFException
This is a universal function that allows getting values for any indicator available based on any DataType supported by JForex, including user indicators.

Parameters:
feedDescriptor - feed descriptor IFeedDescriptor which will be used to calculate indicator
offerSides - bid or ask side of the bars
functionName - name of the function
inputTypes - type of the input data for every input that indicator requires or null if input is PRICE
optParams - array of optional parameters consisting of Doubles and Integers
from - start time of the first bar
to - start time of the last bar that should be included in calculation
Returns:
array of arrays of doubles, integers or objects for every indicator output
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

Note: type conversion may be used in order to work with the result of indicator calculation. For example,

 FeedDescriptor feedDescriptor = new FeedDescriptor();
 		
 feedDescriptor.setDataType(DataType.TIME_PERIOD_AGGREGATION);		
 feedDescriptor.setFilter(Filter.NO_FILTER);
 feedDescriptor.setInstrument(Instrument.EURUSD);
 feedDescriptor.setPeriod(Period.ONE_HOUR);
 		
 long timeFrom = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 2).getTime(); 
 long timeTo = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 1).getTime();
 		
 Object[] result = indicators.calculateIndicator(feedDescriptor, 
 new OfferSide[] {OfferSide.ASK}, "MINMAX", 
 new AppliedPrice[]{AppliedPrice.CLOSE}, new Object[]{5}, timeFrom, timeTo);
 			 
 double minFrom = ((double[])result[0])[0];
 double maxFrom = ((double[])result[1])[0];
 double minTo = ((double[])result[0])[1];
 double maxTo = ((double[])result[1])[1];
 

calculateIndicator

java.lang.Object[] calculateIndicator(IFeedDescriptor feedDescriptor,
                                      OfferSide[] offerSides,
                                      java.lang.String functionName,
                                      IIndicators.AppliedPrice[] inputTypes,
                                      java.lang.Object[] optParams,
                                      int shift)
                                      throws JFException
This is a universal function that allows getting values for any indicator available based on any DataType supported by JForex, including user indicators.

Parameters:
feedDescriptor - feed descriptor IFeedDescriptor which will be used to calculate indicator
offerSides - bid or ask side of the bar
functionName - name of the function
inputTypes - type of the input data for every input that indicator requires or null if input is PRICE
optParams - array of optional parameters consisting of Doubles and Integers
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
array of arrays of doubles, integers or objects for every indicator output
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

Note: type conversion may be used in order to work with the result of indicator calculation. For example,

 FeedDescriptor feedDescriptor = new FeedDescriptor();
 		
 feedDescriptor.setDataType(DataType.TIME_PERIOD_AGGREGATION);		
 feedDescriptor.setFilter(Filter.NO_FILTER);
 feedDescriptor.setInstrument(Instrument.EURUSD);
 feedDescriptor.setPeriod(Period.ONE_HOUR);
 		
 Object[] result = indicators.calculateIndicator(feedDescriptor, 
 new OfferSide[] {OfferSide.ASK}, "MINMAX", 
 new AppliedPrice[]{AppliedPrice.CLOSE}, new Object[]{5}, 1);    
 
 double min = (Double)(result[0]);
 double max = (Double)(result[1]);		
 

calculateIndicator

java.lang.Object[] calculateIndicator(IFeedDescriptor feedDescriptor,
                                      OfferSide[] offerSides,
                                      java.lang.String functionName,
                                      IIndicators.AppliedPrice[] inputTypes,
                                      java.lang.Object[] optParams,
                                      int numberOfBarsBefore,
                                      long time,
                                      int numberOfBarsAfter)
                                      throws JFException
This is a universal function that allows getting values for any indicator available based on any DataType supported by JForex, including user indicators.

Parameters:
feedDescriptor - feed descriptor IFeedDescriptor which will be used to calculate indicator
offerSides - bid or ask side of the bar
functionName - name of the function
inputTypes - type of the input data for every input that indicator requires or null if input is PRICE
optParams - array of optional parameters consisting of Doubles and Integers
numberOfBarsBefore - how much candles to load before and including bar with time specified in time parameter
time - of the last bar in period specified in numberOfBarsBefore parameter or/and time of the bar prior to the first bar in period specified with numberOfBarsAfter parameter
numberOfBarsAfter - how much bars to load after (not including) bar with time specified in time parameter
Returns:
array of arrays of doubles, integers or objects for every indicator output
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

Note: type conversion may be used in order to work with the result of indicator calculation. For example,

 FeedDescriptor feedDescriptor = new FeedDescriptor();
 		
 feedDescriptor.setDataType(DataType.TIME_PERIOD_AGGREGATION);		
 feedDescriptor.setFilter(Filter.NO_FILTER);
 feedDescriptor.setInstrument(Instrument.EURUSD);
 feedDescriptor.setPeriod(Period.ONE_HOUR);
 		
 long time = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 1).getTime(); 
 		
 Object[] result = indicators.calculateIndicator(feedDescriptor, 
 new OfferSide[] {OfferSide.ASK}, "MINMAX", 
 new AppliedPrice[]{AppliedPrice.CLOSE}, new Object[]{5}, 2, time, 0);		 
 
 double minFrom = ((double[])result[0])[0];
 double maxFrom = ((double[])result[1])[0];
 double minTo = ((double[])result[0])[1];
 double maxTo = ((double[])result[1])[1];		
 

calculateIndicator

java.lang.Object[] calculateIndicator(Instrument instrument,
                                      Period period,
                                      OfferSide[] offerSides,
                                      java.lang.String functionName,
                                      IIndicators.AppliedPrice[] inputTypes,
                                      java.lang.Object[] optParams,
                                      Filter filter,
                                      long from,
                                      long to)
                                      throws JFException
This is a universal function that allows to get values for any indicator available including user indicators.

Parameters:
instrument - instrument of the bars
period - period of the bars
offerSides - bid or ask side of the bars
functionName - name of the function
inputTypes - type of the input data for every input that indicator requires or null if input is PRICE
filter - filter allows to filter candles
optParams - array of optional parameters consisting of Doubles and Integers
from - start time of the first bar that should be included in calculation
to - start time of the last bar that should be included in calculation
Returns:
array of arrays of doubles, integers or objects for every indicator output
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

Note: type conversion may be used in order to work with the result of indicator calculation. For example,

 long timeFrom = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 2).getTime(); 
 long timeTo = history.getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 1).getTime();
 	    
 Object[] result = indicators.calculateIndicator(Instrument.EURUSD, 
  	Period.ONE_HOUR, new OfferSide[] {OfferSide.ASK}, "MINMAX", 
  	new AppliedPrice[]{AppliedPrice.CLOSE}, new Object[]{5}, Filter.ALL_FLATS, timeFrom, timeTo);
		 
 double minFrom = ((double[])result[0])[0];
 double maxFrom = ((double[])result[1])[0];
 double minTo = ((double[])result[0])[1];
 double maxTo = ((double[])result[1])[1];

acos

double acos(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int shift)
            throws JFException
Calculates the Vector Trigonometric ACos for a bar specified with the shift parameter.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

acos

double[] acos(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric ACos for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

acos

double[] acos(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Trigonometric ACos for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

acos

double[] acos(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric ACos for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ac

double[] ac(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int fastPeriod,
            int slowPeriod,
            int shift)
            throws JFException
Calculates the Accelerator/Decelerator Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - fast period
slowPeriod - slow period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ac

double[][] ac(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int fastPeriod,
              int slowPeriod,
              long from,
              long to)
              throws JFException
Calculates the Accelerator/Decelerator Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - fast period
slowPeriod - slow period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ac

double[][] ac(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int fastPeriod,
              int slowPeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Accelerator/Decelerator Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - fast period
slowPeriod - slow period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ac

double[][] ac(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int fastPeriod,
              int slowPeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Accelerator/Decelerator Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - bar instrument
period - bar period
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - fast period
slowPeriod - slow period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ad

double ad(Instrument instrument,
          Period period,
          OfferSide side,
          int shift)
          throws JFException
Calculates the Chaikin A/D Line for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ad

double[] ad(Instrument instrument,
            Period period,
            OfferSide side,
            long from,
            long to)
            throws JFException
Calculates the Chaikin A/D Line for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ad

double[] ad(Instrument instrument,
            Period period,
            OfferSide side,
            Filter filter,
            int numberOfCandlesBefore,
            long time,
            int numberOfCandlesAfter)
            throws JFException
Calculates the Chaikin A/D Line for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ad

double[] ad(Instrument instrument,
            Period period,
            OfferSide side,
            Filter filter,
            long from,
            long to)
            throws JFException
Calculates the Chaikin A/D Line for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

add

double add(Instrument instrument,
           Period period,
           OfferSide side1,
           IIndicators.AppliedPrice appliedPrice1,
           OfferSide side2,
           IIndicators.AppliedPrice appliedPrice2,
           int shift)
           throws JFException
Calculates the Vector Arithmetic Add for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

add

double[] add(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             long from,
             long to)
             throws JFException
Calculates the Vector Arithmetic Add for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

add

double[] add(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Vector Arithmetic Add for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

add

double[] add(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Vector Arithmetic Add for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adOsc

double adOsc(Instrument instrument,
             Period period,
             OfferSide side,
             int fastPeriod,
             int slowPeriod,
             int shift)
             throws JFException
Calculates the Chaikin A/D Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastPeriod - fast period value
slowPeriod - slow period value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adOsc

double[] adOsc(Instrument instrument,
               Period period,
               OfferSide side,
               int fastPeriod,
               int slowPeriod,
               long from,
               long to)
               throws JFException
Calculates the Chaikin A/D Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastPeriod - fast period value
slowPeriod - slow period value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adOsc

double[] adOsc(Instrument instrument,
               Period period,
               OfferSide side,
               int fastPeriod,
               int slowPeriod,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Chaikin A/D Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastPeriod - fast period value
slowPeriod - slow period value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adOsc

double[] adOsc(Instrument instrument,
               Period period,
               OfferSide side,
               int fastPeriod,
               int slowPeriod,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Chaikin A/D Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastPeriod - fast period value
slowPeriod - slow period value
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adx

double adx(Instrument instrument,
           Period period,
           OfferSide side,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Average Directional Movement Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adx

double[] adx(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Average Directional Movement Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adx

double[] adx(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Average Directional Movement Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adx

double[] adx(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Average Directional Movement Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adxr

double adxr(Instrument instrument,
            Period period,
            OfferSide side,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Average Directional Movement Index Rating for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adxr

double[] adxr(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Average Directional Movement Index Rating for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adxr

double[] adxr(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Average Directional Movement Index Rating for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

adxr

double[] adxr(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Average Directional Movement Index Rating for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

alligator

double[] alligator(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int jawTimePeriod,
                   int teethTimePeriod,
                   int lipsTimePeriod,
                   int shift)
                   throws JFException
Calculates the Alligator indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
jawTimePeriod - jaw time period
teethTimePeriod - teeth time period
lipsTimePeriod - lips time period
timePeriod - time period value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Alligator indicator

alligator

double[][] alligator(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     int jawTimePeriod,
                     int teethTimePeriod,
                     int lipsTimePeriod,
                     long from,
                     long to)
                     throws JFException
Calculates the Alligator indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
jawTimePeriod - jaw time period
teethTimePeriod - teeth time period
lipsTimePeriod - lips time period
timePeriod - time period value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Alligator indicator

alligator

double[][] alligator(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     int jawTimePeriod,
                     int teethTimePeriod,
                     int lipsTimePeriod,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Alligator indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
jawTimePeriod - jaw time period
teethTimePeriod - teeth time period
lipsTimePeriod - lips time period
timePeriod - time period value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Alligator indicator

alligator

double[][] alligator(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     int jawTimePeriod,
                     int teethTimePeriod,
                     int lipsTimePeriod,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Alligator indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
jawTimePeriod - jaw time period
teethTimePeriod - teeth time period
lipsTimePeriod - lips time period
timePeriod - time period value
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Alligator indicator

apo

double apo(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int fastPeriod,
           int slowPeriod,
           IIndicators.MaType maType,
           int shift)
           throws JFException
Calculates the Absolute Price Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - fast period value
slowPeriod - slow period value
maType - moving average type
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

apo

double[] apo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int fastPeriod,
             int slowPeriod,
             IIndicators.MaType maType,
             long from,
             long to)
             throws JFException
Calculates the Absolute Price Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - fast period value
slowPeriod - slow period value
maType - moving average type
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

apo

double[] apo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int fastPeriod,
             int slowPeriod,
             IIndicators.MaType maType,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Absolute Price Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - fast period value
slowPeriod - slow period value
maType - moving average type
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

apo

double[] apo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int fastPeriod,
             int slowPeriod,
             IIndicators.MaType maType,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Absolute Price Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - fast period value
slowPeriod - slow period value
maType - moving average type
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

aroon

double[] aroon(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               int shift)
               throws JFException
Calculates the Aroon indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

aroon

double[][] aroon(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 long from,
                 long to)
                 throws JFException
Calculates the Aroon indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

aroon

double[][] aroon(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Aroon indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

aroon

double[][] aroon(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Aroon indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

aroonOsc

double aroonOsc(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                int shift)
                throws JFException
Calculates the Aroon Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

aroonOsc

double[] aroonOsc(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  long from,
                  long to)
                  throws JFException
Calculates the Aroon Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

aroonOsc

double[] aroonOsc(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Aroon Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

aroonOsc

double[] aroonOsc(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Aroon Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

asin

double asin(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int shift)
            throws JFException
Calculates the Vector Trigonometric ASin for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

asin

double[] asin(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric ASin for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

asin

double[] asin(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Trigonometric ASin for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

asin

double[] asin(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric ASin for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

atan

double atan(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int shift)
            throws JFException
Calculates the Vector Trigonometric ATan for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

atan

double[] atan(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric ATan for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

atan

double[] atan(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Trigonometric ATan for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

atan

double[] atan(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric ATan for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

atr

double atr(Instrument instrument,
           Period period,
           OfferSide side,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Average True Range for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

atr

double[] atr(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Average True Range for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

atr

double[] atr(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Average True Range for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

atr

double[] atr(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Average True Range for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period value
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

avgPrice

double avgPrice(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Average Price for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Average Price

avgPrice

double[] avgPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Average Price for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Average Price

avgPrice

double[] avgPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Average Price for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Average Price

avgPrice

double[] avgPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Average Price for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.s

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Average Price

awesome

double[] awesome(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int fasterMaTimePeriod,
                 IIndicators.MaType fasterMaType,
                 int slowerMaTimePeriod,
                 IIndicators.MaType slowerMaType,
                 int shift)
                 throws JFException
Calculates the Awesome Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fasterMaTimePeriod - faster moving average time period
fasterMaType - faster moving average type
slowerMaTimePeriod - slower moving average time period
slowerMaType - slower moving average type
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

awesome

double[][] awesome(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int fasterMaTimePeriod,
                   IIndicators.MaType fasterMaType,
                   int slowerMaTimePeriod,
                   IIndicators.MaType slowerMaType,
                   long from,
                   long to)
                   throws JFException
Calculates the Awesome Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fasterMaTimePeriod - faster moving average time period
fasterMaType - faster moving average type
slowerMaTimePeriod - slower moving average time period
slowerMaType - slower moving average type
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

awesome

double[][] awesome(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int fasterMaTimePeriod,
                   IIndicators.MaType fasterMaType,
                   int slowerMaTimePeriod,
                   IIndicators.MaType slowerMaType,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Awesome Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fasterMaTimePeriod - faster moving average time period
fasterMaType - faster moving average type
slowerMaTimePeriod - slower moving average time period
slowerMaType - slower moving average type
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

awesome

double[][] awesome(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int fasterMaTimePeriod,
                   IIndicators.MaType fasterMaType,
                   int slowerMaTimePeriod,
                   IIndicators.MaType slowerMaType,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Awesome Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fasterMaTimePeriod - faster moving average time period
fasterMaType - faster moving average type
slowerMaTimePeriod - slower moving average time period
slowerMaType - slower moving average type
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bbands

double[] bbands(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int timePeriod,
                double nbDevUp,
                double nbDevDn,
                IIndicators.MaType maType,
                int shift)
                throws JFException
Calculates the Bollinger Bands indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
nbDevUp - number of standard deviations up
nbDevDn - number of standard deviations down
maType - type of moving average
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Bollinger Bands indicator

bbands

double[][] bbands(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  double nbDevUp,
                  double nbDevDn,
                  IIndicators.MaType maType,
                  long from,
                  long to)
                  throws JFException
Calculates the Bollinger Bands indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
nbDevUp - number of standard deviations up
nbDevDn - number of standard deviations down
maType - type of moving average
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Bollinger Bands indicator

bbands

double[][] bbands(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  double nbDevUp,
                  double nbDevDn,
                  IIndicators.MaType maType,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Bollinger Bands indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
nbDevUp - number of standard deviations up
nbDevDn - number of standard deviations down
maType - type of moving average
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Bollinger Bands indicator

bbands

double[][] bbands(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  double nbDevUp,
                  double nbDevDn,
                  IIndicators.MaType maType,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Bollinger Bands indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
nbDevUp - number of standard deviations up
nbDevDn - number of standard deviations down
maType - type of moving average
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Bollinger Bands indicator

beta

double beta(Instrument instrument,
            Period period,
            OfferSide side1,
            IIndicators.AppliedPrice appliedPrice1,
            OfferSide side2,
            IIndicators.AppliedPrice appliedPrice2,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Beta indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Beta indicator

beta

double[] beta(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Beta indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Beta indicator

beta

double[] beta(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Beta indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Beta indicator

beta

double[] beta(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Beta indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Beta indicator

bear

double bear(Instrument instrument,
            Period period,
            OfferSide side,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Bear Power indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bear

double[] bear(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Bear Power indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bear

double[] bear(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Bear Power indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bear

double[] bear(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Bear Power indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bull

double bull(Instrument instrument,
            Period period,
            OfferSide side,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Bull Power indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bull

double[] bull(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Bull Power indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bull

double[] bull(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Bull Power indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bull

double[] bull(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Bull Power indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

butterworthFilter

double butterworthFilter(Instrument instrument,
                         Period period,
                         OfferSide side,
                         IIndicators.AppliedPrice appliedPrice,
                         int timePeriod,
                         int shift)
                         throws JFException
Calculates the Butterworth Filter indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Butterworth Filter indicator

butterworthFilter

double[] butterworthFilter(Instrument instrument,
                           Period period,
                           OfferSide side,
                           IIndicators.AppliedPrice appliedPrice,
                           int timePeriod,
                           long from,
                           long to)
                           throws JFException
Calculates the Butterworth Filter indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Butterworth Filter indicator

butterworthFilter

double[] butterworthFilter(Instrument instrument,
                           Period period,
                           OfferSide side,
                           IIndicators.AppliedPrice appliedPrice,
                           int timePeriod,
                           Filter filter,
                           int numberOfCandlesBefore,
                           long time,
                           int numberOfCandlesAfter)
                           throws JFException
Calculates the Butterworth Filter indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Butterworth Filter indicator

butterworthFilter

double[] butterworthFilter(Instrument instrument,
                           Period period,
                           OfferSide side,
                           IIndicators.AppliedPrice appliedPrice,
                           int timePeriod,
                           Filter filter,
                           long from,
                           long to)
                           throws JFException
Calculates the Butterworth Filter indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Butterworth Filter indicator

bwmfi

double[] bwmfi(Instrument instrument,
               Period period,
               OfferSide side,
               int shift)
               throws JFException
Calculates the Market Facilitation Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Market Facilitation Index

bwmfi

double[][] bwmfi(Instrument instrument,
                 Period period,
                 OfferSide side,
                 long from,
                 long to)
                 throws JFException
Calculates the Market Facilitation Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Market Facilitation Index

bwmfi

double[][] bwmfi(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Market Facilitation Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Market Facilitation Index

bwmfi

double[][] bwmfi(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Market Facilitation Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Market Facilitation Index

bop

double bop(Instrument instrument,
           Period period,
           OfferSide side,
           int shift)
           throws JFException
Calculates the Balance Of Power indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bop

double[] bop(Instrument instrument,
             Period period,
             OfferSide side,
             long from,
             long to)
             throws JFException
Calculates the Balance Of Power indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bop

double[] bop(Instrument instrument,
             Period period,
             OfferSide side,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Balance Of Power indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

bop

double[] bop(Instrument instrument,
             Period period,
             OfferSide side,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Balance Of Power indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

camPivot

double[] camPivot(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  int shift)
                  throws JFException
Calculates the Camarilla Pivot Points for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

camPivot

double[][] camPivot(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    long from,
                    long to)
                    throws JFException
Calculates the Camarilla Pivot Points for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

camPivot

double[][] camPivot(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Camarilla Pivot Points for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

camPivot

double[][] camPivot(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Camarilla Pivot Points for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cci

double cci(Instrument instrument,
           Period period,
           OfferSide side,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Commodity Channel Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cci

double[] cci(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Commodity Channel Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cci

double[] cci(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Commodity Channel Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cci

double[] cci(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Commodity Channel Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl2Crows

int cdl2Crows(Instrument instrument,
              Period period,
              OfferSide side,
              int shift)
              throws JFException
Calculates the Two Crows indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl2Crows

int[] cdl2Crows(Instrument instrument,
                Period period,
                OfferSide side,
                long from,
                long to)
                throws JFException
Calculates the Two Crows indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl2Crows

int[] cdl2Crows(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Two Crows indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl2Crows

int[] cdl2Crows(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Two Crows indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3BlackCrows

int cdl3BlackCrows(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int shift)
                   throws JFException
Calculates the Three Black Crows indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3BlackCrows

int[] cdl3BlackCrows(Instrument instrument,
                     Period period,
                     OfferSide side,
                     long from,
                     long to)
                     throws JFException
Calculates the Three Black Crows indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3BlackCrows

int[] cdl3BlackCrows(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Three Black Crows indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3BlackCrows

int[] cdl3BlackCrows(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Three Black Crows indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3Inside

int cdl3Inside(Instrument instrument,
               Period period,
               OfferSide side,
               int shift)
               throws JFException
Calculates the Three Inside Up/Down indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3Inside

int[] cdl3Inside(Instrument instrument,
                 Period period,
                 OfferSide side,
                 long from,
                 long to)
                 throws JFException
Calculates the Three Inside Up/Down indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3Inside

int[] cdl3Inside(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Three Inside Up/Down indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3Inside

int[] cdl3Inside(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Three Inside Up/Down indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3LineStrike

int cdl3LineStrike(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int shift)
                   throws JFException
Calculates the Three-Line Strike indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3LineStrike

int[] cdl3LineStrike(Instrument instrument,
                     Period period,
                     OfferSide side,
                     long from,
                     long to)
                     throws JFException
Calculates the Three-Line Strike indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3LineStrike

int[] cdl3LineStrike(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Three-Line Strike indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3LineStrike

int[] cdl3LineStrike(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Three-Line Strike indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3Outside

int cdl3Outside(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Three Outside Up/Down indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3Outside

int[] cdl3Outside(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Three Outside Up/Down indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3Outside

int[] cdl3Outside(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Three Outside Up/Down indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3Outside

int[] cdl3Outside(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Three Outside Up/Down indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3StarsInSouth

int cdl3StarsInSouth(Instrument instrument,
                     Period period,
                     OfferSide side,
                     int shift)
                     throws JFException
Calculates the Three Stars In The South indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3StarsInSouth

int[] cdl3StarsInSouth(Instrument instrument,
                       Period period,
                       OfferSide side,
                       long from,
                       long to)
                       throws JFException
Calculates the Three Stars In The South indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3StarsInSouth

int[] cdl3StarsInSouth(Instrument instrument,
                       Period period,
                       OfferSide side,
                       Filter filter,
                       int numberOfCandlesBefore,
                       long time,
                       int numberOfCandlesAfter)
                       throws JFException
Calculates the Three Stars In The South indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3StarsInSouth

int[] cdl3StarsInSouth(Instrument instrument,
                       Period period,
                       OfferSide side,
                       Filter filter,
                       long from,
                       long to)
                       throws JFException
Calculates the Three Stars In The South indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3WhiteSoldiers

int cdl3WhiteSoldiers(Instrument instrument,
                      Period period,
                      OfferSide side,
                      int shift)
                      throws JFException
Calculates the Three Advancing White Soldiers indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3WhiteSoldiers

int[] cdl3WhiteSoldiers(Instrument instrument,
                        Period period,
                        OfferSide side,
                        long from,
                        long to)
                        throws JFException
Calculates the Three Advancing White Soldiers indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3WhiteSoldiers

int[] cdl3WhiteSoldiers(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Three Advancing White Soldiers indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdl3WhiteSoldiers

int[] cdl3WhiteSoldiers(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Three Advancing White Soldiers indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlAbandonedBaby

int cdlAbandonedBaby(Instrument instrument,
                     Period period,
                     OfferSide side,
                     double penetration,
                     int shift)
                     throws JFException
Calculates the Abandoned Baby indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - percentage of penetration of a candle within another candle
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlAbandonedBaby

int[] cdlAbandonedBaby(Instrument instrument,
                       Period period,
                       OfferSide side,
                       double penetration,
                       long from,
                       long to)
                       throws JFException
Calculates the Abandoned Baby indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - percentage of penetration of a candle within another candle
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlAbandonedBaby

int[] cdlAbandonedBaby(Instrument instrument,
                       Period period,
                       OfferSide side,
                       double penetration,
                       Filter filter,
                       int numberOfCandlesBefore,
                       long time,
                       int numberOfCandlesAfter)
                       throws JFException
Calculates the Abandoned Baby indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - percentage of penetration of a candle within another candle
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlAbandonedBaby

int[] cdlAbandonedBaby(Instrument instrument,
                       Period period,
                       OfferSide side,
                       double penetration,
                       Filter filter,
                       long from,
                       long to)
                       throws JFException
Calculates the Abandoned Baby indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - percentage of penetration of a candle within another candle
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlAdvanceBlock

int cdlAdvanceBlock(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int shift)
                    throws JFException
Calculates the Advance Block indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlAdvanceBlock

int[] cdlAdvanceBlock(Instrument instrument,
                      Period period,
                      OfferSide side,
                      long from,
                      long to)
                      throws JFException
Calculates the Advance Block indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlAdvanceBlock

int[] cdlAdvanceBlock(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Calculates the Advance Block indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlAdvanceBlock

int[] cdlAdvanceBlock(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Calculates the Advance Block indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlBeltHold

int cdlBeltHold(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Belt-hold indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlBeltHold

int[] cdlBeltHold(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Belt-hold indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bare
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlBeltHold

int[] cdlBeltHold(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Belt-hold indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlBeltHold

int[] cdlBeltHold(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Belt-hold indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlBreakAway

int cdlBreakAway(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int shift)
                 throws JFException
Calculates the Breakaway indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlBreakAway

int[] cdlBreakAway(Instrument instrument,
                   Period period,
                   OfferSide side,
                   long from,
                   long to)
                   throws JFException
Calculates the Breakaway indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlBreakAway

int[] cdlBreakAway(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Breakaway indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlBreakAway

int[] cdlBreakAway(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Breakaway indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlClosingMarubozu

int cdlClosingMarubozu(Instrument instrument,
                       Period period,
                       OfferSide side,
                       int shift)
                       throws JFException
Calculates the Closing Marubozu indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlClosingMarubozu

int[] cdlClosingMarubozu(Instrument instrument,
                         Period period,
                         OfferSide side,
                         long from,
                         long to)
                         throws JFException
Calculates the Closing Marubozu indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlClosingMarubozu

int[] cdlClosingMarubozu(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         int numberOfCandlesBefore,
                         long time,
                         int numberOfCandlesAfter)
                         throws JFException
Calculates the Closing Marubozu indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlClosingMarubozu

int[] cdlClosingMarubozu(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         long from,
                         long to)
                         throws JFException
Calculates the Closing Marubozu indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlConcealBabySwall

int cdlConcealBabySwall(Instrument instrument,
                        Period period,
                        OfferSide side,
                        int shift)
                        throws JFException
Calculates the Concealing Baby Swallow indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlConcealBabySwall

int[] cdlConcealBabySwall(Instrument instrument,
                          Period period,
                          OfferSide side,
                          long from,
                          long to)
                          throws JFException
Calculates the Concealing Baby Swallow indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlConcealBabySwall

int[] cdlConcealBabySwall(Instrument instrument,
                          Period period,
                          OfferSide side,
                          Filter filter,
                          int numberOfCandlesBefore,
                          long time,
                          int numberOfCandlesAfter)
                          throws JFException
Calculates the Concealing Baby Swallow indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlConcealBabySwall

int[] cdlConcealBabySwall(Instrument instrument,
                          Period period,
                          OfferSide side,
                          Filter filter,
                          long from,
                          long to)
                          throws JFException
Calculates the Concealing Baby Swallow indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlCounterattack

int cdlCounterattack(Instrument instrument,
                     Period period,
                     OfferSide side,
                     int shift)
                     throws JFException
Calculates the Counterattack indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlCounterattack

int[] cdlCounterattack(Instrument instrument,
                       Period period,
                       OfferSide side,
                       long from,
                       long to)
                       throws JFException
Calculates the Counterattack indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlCounterattack

int[] cdlCounterattack(Instrument instrument,
                       Period period,
                       OfferSide side,
                       Filter filter,
                       int numberOfCandlesBefore,
                       long time,
                       int numberOfCandlesAfter)
                       throws JFException
Calculates the Counterattack indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlCounterattack

int[] cdlCounterattack(Instrument instrument,
                       Period period,
                       OfferSide side,
                       Filter filter,
                       long from,
                       long to)
                       throws JFException
Calculates the Counterattack indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDarkCloudCover

int cdlDarkCloudCover(Instrument instrument,
                      Period period,
                      OfferSide side,
                      double penetration,
                      int shift)
                      throws JFException
Calculates the Dark Cloud Cover indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDarkCloudCover

int[] cdlDarkCloudCover(Instrument instrument,
                        Period period,
                        OfferSide side,
                        double penetration,
                        long from,
                        long to)
                        throws JFException
Calculates the Dark Cloud Cover indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDarkCloudCover

int[] cdlDarkCloudCover(Instrument instrument,
                        Period period,
                        OfferSide side,
                        double penetration,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Dark Cloud Cover indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDarkCloudCover

int[] cdlDarkCloudCover(Instrument instrument,
                        Period period,
                        OfferSide side,
                        double penetration,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Dark Cloud Cover indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDoji

int cdlDoji(Instrument instrument,
            Period period,
            OfferSide side,
            int shift)
            throws JFException
Calculates the Doji indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDoji

int[] cdlDoji(Instrument instrument,
              Period period,
              OfferSide side,
              long from,
              long to)
              throws JFException
Calculates the Doji indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDoji

int[] cdlDoji(Instrument instrument,
              Period period,
              OfferSide side,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Doji indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDoji

int[] cdlDoji(Instrument instrument,
              Period period,
              OfferSide side,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Doji indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDojiStar

int cdlDojiStar(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Doji Star indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDojiStar

int[] cdlDojiStar(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Doji Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDojiStar

int[] cdlDojiStar(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Doji Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDojiStar

int[] cdlDojiStar(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Doji Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDragonflyDoji

int cdlDragonflyDoji(Instrument instrument,
                     Period period,
                     OfferSide side,
                     int shift)
                     throws JFException
Calculates the Dragonfly Doji indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDragonflyDoji

int[] cdlDragonflyDoji(Instrument instrument,
                       Period period,
                       OfferSide side,
                       long from,
                       long to)
                       throws JFException
Calculates the Dragonfly Doji indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDragonflyDoji

int[] cdlDragonflyDoji(Instrument instrument,
                       Period period,
                       OfferSide side,
                       Filter filter,
                       int numberOfCandlesBefore,
                       long time,
                       int numberOfCandlesAfter)
                       throws JFException
Calculates the Dragonfly Doji indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlDragonflyDoji

int[] cdlDragonflyDoji(Instrument instrument,
                       Period period,
                       OfferSide side,
                       Filter filter,
                       long from,
                       long to)
                       throws JFException
Calculates the Dragonfly Doji indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEngulfing

int cdlEngulfing(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int shift)
                 throws JFException
Calculates the Engulfing Pattern indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEngulfing

int[] cdlEngulfing(Instrument instrument,
                   Period period,
                   OfferSide side,
                   long from,
                   long to)
                   throws JFException
Calculates the Engulfing Pattern indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEngulfing

int[] cdlEngulfing(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Engulfing Pattern indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEngulfing

int[] cdlEngulfing(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Engulfing Pattern indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEveningDojiStar

int cdlEveningDojiStar(Instrument instrument,
                       Period period,
                       OfferSide side,
                       double penetration,
                       int shift)
                       throws JFException
Calculates the Evening Doji Star indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEveningDojiStar

int[] cdlEveningDojiStar(Instrument instrument,
                         Period period,
                         OfferSide side,
                         double penetration,
                         long from,
                         long to)
                         throws JFException
Calculates the Evening Doji Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEveningDojiStar

int[] cdlEveningDojiStar(Instrument instrument,
                         Period period,
                         OfferSide side,
                         double penetration,
                         Filter filter,
                         int numberOfCandlesBefore,
                         long time,
                         int numberOfCandlesAfter)
                         throws JFException
Calculates the Evening Doji Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEveningDojiStar

int[] cdlEveningDojiStar(Instrument instrument,
                         Period period,
                         OfferSide side,
                         double penetration,
                         Filter filter,
                         long from,
                         long to)
                         throws JFException
Calculates the Evening Doji Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEveningStar

int cdlEveningStar(Instrument instrument,
                   Period period,
                   OfferSide side,
                   double penetration,
                   int shift)
                   throws JFException
Calculates the Evening Star indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEveningStar

int[] cdlEveningStar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     double penetration,
                     long from,
                     long to)
                     throws JFException
Calculates the Evening Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEveningStar

int[] cdlEveningStar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     double penetration,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Evening Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlEveningStar

int[] cdlEveningStar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     double penetration,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Evening Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlGapSideSideWhite

int cdlGapSideSideWhite(Instrument instrument,
                        Period period,
                        OfferSide side,
                        int shift)
                        throws JFException
Calculates the Up/Down-gap side-by-side white lines indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlGapSideSideWhite

int[] cdlGapSideSideWhite(Instrument instrument,
                          Period period,
                          OfferSide side,
                          long from,
                          long to)
                          throws JFException
Calculates the Up/Down-gap side-by-side white lines indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlGapSideSideWhite

int[] cdlGapSideSideWhite(Instrument instrument,
                          Period period,
                          OfferSide side,
                          Filter filter,
                          int numberOfCandlesBefore,
                          long time,
                          int numberOfCandlesAfter)
                          throws JFException
Calculates the Up/Down-gap side-by-side white lines indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlGapSideSideWhite

int[] cdlGapSideSideWhite(Instrument instrument,
                          Period period,
                          OfferSide side,
                          Filter filter,
                          long from,
                          long to)
                          throws JFException
Calculates the Up/Down-gap side-by-side white lines indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlGravestoneDoji

int cdlGravestoneDoji(Instrument instrument,
                      Period period,
                      OfferSide side,
                      int shift)
                      throws JFException
Calculates the Gravestone Doji indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlGravestoneDoji

int[] cdlGravestoneDoji(Instrument instrument,
                        Period period,
                        OfferSide side,
                        long from,
                        long to)
                        throws JFException
Calculates the Gravestone Doji indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlGravestoneDoji

int[] cdlGravestoneDoji(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Gravestone Doji indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlGravestoneDoji

int[] cdlGravestoneDoji(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Gravestone Doji indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHammer

int cdlHammer(Instrument instrument,
              Period period,
              OfferSide side,
              int shift)
              throws JFException
Calculates the Hammer indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHammer

int[] cdlHammer(Instrument instrument,
                Period period,
                OfferSide side,
                long from,
                long to)
                throws JFException
Calculates the Hammer indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHammer

int[] cdlHammer(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Hammer indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHammer

int[] cdlHammer(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Hammer indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHangingMan

int cdlHangingMan(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int shift)
                  throws JFException
Calculates the Hanging Man indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHangingMan

int[] cdlHangingMan(Instrument instrument,
                    Period period,
                    OfferSide side,
                    long from,
                    long to)
                    throws JFException
Calculates the Hanging Man indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHangingMan

int[] cdlHangingMan(Instrument instrument,
                    Period period,
                    OfferSide side,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Hanging Man indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHangingMan

int[] cdlHangingMan(Instrument instrument,
                    Period period,
                    OfferSide side,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Hanging Man indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHarami

int cdlHarami(Instrument instrument,
              Period period,
              OfferSide side,
              int shift)
              throws JFException
Calculates the Harami Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHarami

int[] cdlHarami(Instrument instrument,
                Period period,
                OfferSide side,
                long from,
                long to)
                throws JFException
Calculates the Harami Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHarami

int[] cdlHarami(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Harami Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHarami

int[] cdlHarami(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Harami Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHaramiCross

int cdlHaramiCross(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int shift)
                   throws JFException
Calculates the Harami Cross Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHaramiCross

int[] cdlHaramiCross(Instrument instrument,
                     Period period,
                     OfferSide side,
                     long from,
                     long to)
                     throws JFException
Calculates the Harami Cross Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHaramiCross

int[] cdlHaramiCross(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Harami Cross Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHaramiCross

int[] cdlHaramiCross(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Harami Cross Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHighWave

int cdlHighWave(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the High-Wave Candle indicator a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHighWave

int[] cdlHighWave(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the High-Wave Candle indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHighWave

int[] cdlHighWave(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the High-Wave Candle indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHighWave

int[] cdlHighWave(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the High-Wave Candle indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHikkake

int cdlHikkake(Instrument instrument,
               Period period,
               OfferSide side,
               int shift)
               throws JFException
Calculates the Hikkake Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHikkake

int[] cdlHikkake(Instrument instrument,
                 Period period,
                 OfferSide side,
                 long from,
                 long to)
                 throws JFException
Calculates the Hikkake Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHikkake

int[] cdlHikkake(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Hikkake Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHikkake

int[] cdlHikkake(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Hikkake Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHikkakeMod

int cdlHikkakeMod(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int shift)
                  throws JFException
Calculates the Modified Hikkake Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHikkakeMod

int[] cdlHikkakeMod(Instrument instrument,
                    Period period,
                    OfferSide side,
                    long from,
                    long to)
                    throws JFException
Calculates the Modified Hikkake Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHikkakeMod

int[] cdlHikkakeMod(Instrument instrument,
                    Period period,
                    OfferSide side,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Modified Hikkake Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHikkakeMod

int[] cdlHikkakeMod(Instrument instrument,
                    Period period,
                    OfferSide side,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Modified Hikkake Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHomingPigeon

int cdlHomingPigeon(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int shift)
                    throws JFException
Calculates the Homing Pigeon indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHomingPigeon

int[] cdlHomingPigeon(Instrument instrument,
                      Period period,
                      OfferSide side,
                      long from,
                      long to)
                      throws JFException
Calculates the Homing Pigeon indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHomingPigeon

int[] cdlHomingPigeon(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Calculates the Homing Pigeon indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlHomingPigeon

int[] cdlHomingPigeon(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Calculates the Homing Pigeon indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlIdentical3Crows

int cdlIdentical3Crows(Instrument instrument,
                       Period period,
                       OfferSide side,
                       int shift)
                       throws JFException
Calculates the Identical Three Crows indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlIdentical3Crows

int[] cdlIdentical3Crows(Instrument instrument,
                         Period period,
                         OfferSide side,
                         long from,
                         long to)
                         throws JFException
Calculates the Identical Three Crows indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlIdentical3Crows

int[] cdlIdentical3Crows(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         int numberOfCandlesBefore,
                         long time,
                         int numberOfCandlesAfter)
                         throws JFException
Calculates the Identical Three Crows indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlIdentical3Crows

int[] cdlIdentical3Crows(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         long from,
                         long to)
                         throws JFException
Calculates the Identical Three Crows indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlInNeck

int cdlInNeck(Instrument instrument,
              Period period,
              OfferSide side,
              int shift)
              throws JFException
Calculates the In-Neck Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlInNeck

int[] cdlInNeck(Instrument instrument,
                Period period,
                OfferSide side,
                long from,
                long to)
                throws JFException
Calculates the In-Neck Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlInNeck

int[] cdlInNeck(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the In-Neck Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlInNeck

int[] cdlInNeck(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the In-Neck Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlInvertedHammer

int cdlInvertedHammer(Instrument instrument,
                      Period period,
                      OfferSide side,
                      int shift)
                      throws JFException
Calculates the Inverted Hammer indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlInvertedHammer

int[] cdlInvertedHammer(Instrument instrument,
                        Period period,
                        OfferSide side,
                        long from,
                        long to)
                        throws JFException
Calculates the Inverted Hammer indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlInvertedHammer

int[] cdlInvertedHammer(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Inverted Hammer indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlInvertedHammer

int[] cdlInvertedHammer(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Inverted Hammer indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlKicking

int cdlKicking(Instrument instrument,
               Period period,
               OfferSide side,
               int shift)
               throws JFException
Calculates the Kicking indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlKicking

int[] cdlKicking(Instrument instrument,
                 Period period,
                 OfferSide side,
                 long from,
                 long to)
                 throws JFException
Calculates the Kicking indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlKicking

int[] cdlKicking(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Kicking indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlKicking

int[] cdlKicking(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Kicking indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlKickingByLength

int cdlKickingByLength(Instrument instrument,
                       Period period,
                       OfferSide side,
                       int shift)
                       throws JFException
Calculates the Kicking - bull/bear determined by the longer marubozu indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlKickingByLength

int[] cdlKickingByLength(Instrument instrument,
                         Period period,
                         OfferSide side,
                         long from,
                         long to)
                         throws JFException
Calculates the Kicking - bull/bear determined by the longer marubozu indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlKickingByLength

int[] cdlKickingByLength(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         int numberOfCandlesBefore,
                         long time,
                         int numberOfCandlesAfter)
                         throws JFException
Calculates the Kicking - bull/bear determined by the longer marubozu indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlKickingByLength

int[] cdlKickingByLength(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         long from,
                         long to)
                         throws JFException
Calculates the Kicking - bull/bear determined by the longer marubozu indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLadderBotton

int cdlLadderBotton(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int shift)
                    throws JFException
Deprecated. replaced by cdlLadderBottom(Instrument instrument, Period period, OfferSide side, int shift)

Throws:
JFException

cdlLadderBotton

int[] cdlLadderBotton(Instrument instrument,
                      Period period,
                      OfferSide side,
                      long from,
                      long to)
                      throws JFException
Deprecated. replaced by cdlLadderBottom(Instrument instrument, Period period, OfferSide side, long from, long to)

Throws:
JFException

cdlLadderBotton

int[] cdlLadderBotton(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Deprecated. replaced by cdlLadderBottom(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)

Throws:
JFException

cdlLadderBotton

int[] cdlLadderBotton(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Deprecated. replaced by cdlLadderBottom(Instrument instrument, Period period, OfferSide side, Filter filter, long from, long to)

Throws:
JFException

cdlLadderBottom

int cdlLadderBottom(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int shift)
                    throws JFException
Calculates the Ladder Bottom indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLadderBottom

int[] cdlLadderBottom(Instrument instrument,
                      Period period,
                      OfferSide side,
                      long from,
                      long to)
                      throws JFException
Calculates the Ladder Bottom indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLadderBottom

int[] cdlLadderBottom(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Calculates the Ladder Bottom indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLadderBottom

int[] cdlLadderBottom(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Calculates the Ladder Bottom indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLongLeggedDoji

int cdlLongLeggedDoji(Instrument instrument,
                      Period period,
                      OfferSide side,
                      int shift)
                      throws JFException
Calculates the Long Legged Doji indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLongLeggedDoji

int[] cdlLongLeggedDoji(Instrument instrument,
                        Period period,
                        OfferSide side,
                        long from,
                        long to)
                        throws JFException
Calculates the Long Legged Doji indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLongLeggedDoji

int[] cdlLongLeggedDoji(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Long Legged Doji indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLongLeggedDoji

int[] cdlLongLeggedDoji(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Long Legged Doji indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLongLine

int cdlLongLine(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Long Line Candle indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLongLine

int[] cdlLongLine(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Long Line Candle indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLongLine

int[] cdlLongLine(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Long Line Candle indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlLongLine

int[] cdlLongLine(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Long Line Candle indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMarubozu

int cdlMarubozu(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Marubozu indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMarubozu

int[] cdlMarubozu(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Marubozu indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMarubozu

int[] cdlMarubozu(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Marubozu indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMarubozu

int[] cdlMarubozu(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Marubozu indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMatchingLow

int cdlMatchingLow(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int shift)
                   throws JFException
Calculates the Matching Low indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMatchingLow

int[] cdlMatchingLow(Instrument instrument,
                     Period period,
                     OfferSide side,
                     long from,
                     long to)
                     throws JFException
Calculates the Matching Low indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMatchingLow

int[] cdlMatchingLow(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Matching Low indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMatchingLow

int[] cdlMatchingLow(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Matching Low indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMathold

int cdlMathold(Instrument instrument,
               Period period,
               OfferSide side,
               double penetration,
               int shift)
               throws JFException
Calculates the Mat Hold indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMathold

int[] cdlMathold(Instrument instrument,
                 Period period,
                 OfferSide side,
                 double penetration,
                 long from,
                 long to)
                 throws JFException
Calculates the Mat Hold indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMathold

int[] cdlMathold(Instrument instrument,
                 Period period,
                 OfferSide side,
                 double penetration,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Mat Hold indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMathold

int[] cdlMathold(Instrument instrument,
                 Period period,
                 OfferSide side,
                 double penetration,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Mat Hold indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMorningDojiStar

int cdlMorningDojiStar(Instrument instrument,
                       Period period,
                       OfferSide side,
                       double penetration,
                       int shift)
                       throws JFException
Calculates the Morning Doji Star indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMorningDojiStar

int[] cdlMorningDojiStar(Instrument instrument,
                         Period period,
                         OfferSide side,
                         double penetration,
                         long from,
                         long to)
                         throws JFException
Calculates the Morning Doji Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMorningDojiStar

int[] cdlMorningDojiStar(Instrument instrument,
                         Period period,
                         OfferSide side,
                         double penetration,
                         Filter filter,
                         int numberOfCandlesBefore,
                         long time,
                         int numberOfCandlesAfter)
                         throws JFException
Calculates the Morning Doji Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMorningDojiStar

int[] cdlMorningDojiStar(Instrument instrument,
                         Period period,
                         OfferSide side,
                         double penetration,
                         Filter filter,
                         long from,
                         long to)
                         throws JFException
Calculates the Morning Doji Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMorningStar

int cdlMorningStar(Instrument instrument,
                   Period period,
                   OfferSide side,
                   double penetration,
                   int shift)
                   throws JFException
Calculates the Morning Star indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMorningStar

int[] cdlMorningStar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     double penetration,
                     long from,
                     long to)
                     throws JFException
Calculates the Morning Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMorningStar

int[] cdlMorningStar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     double penetration,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Morning Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlMorningStar

int[] cdlMorningStar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     double penetration,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Morning Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
penetration - Percentage of penetration of a candle within another candle
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlOnNeck

int cdlOnNeck(Instrument instrument,
              Period period,
              OfferSide side,
              int shift)
              throws JFException
Calculates the On-Neck Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlOnNeck

int[] cdlOnNeck(Instrument instrument,
                Period period,
                OfferSide side,
                long from,
                long to)
                throws JFException
Calculates the On-Neck Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlOnNeck

int[] cdlOnNeck(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the On-Neck Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlOnNeck

int[] cdlOnNeck(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the On-Neck Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlPiercing

int cdlPiercing(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Piercing Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlPiercing

int[] cdlPiercing(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Piercing Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.s

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlPiercing

int[] cdlPiercing(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Piercing Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlPiercing

int[] cdlPiercing(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Piercing Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlRickshawMan

int cdlRickshawMan(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int shift)
                   throws JFException
Calculates the Rickshaw Man indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlRickshawMan

int[] cdlRickshawMan(Instrument instrument,
                     Period period,
                     OfferSide side,
                     long from,
                     long to)
                     throws JFException
Calculates the Rickshaw Man indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlRickshawMan

int[] cdlRickshawMan(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Rickshaw Man indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlRickshawMan

int[] cdlRickshawMan(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Rickshaw Man indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlRiseFall3Methods

int cdlRiseFall3Methods(Instrument instrument,
                        Period period,
                        OfferSide side,
                        int shift)
                        throws JFException
Calculates the Rising/Falling Three Methods indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlRiseFall3Methods

int[] cdlRiseFall3Methods(Instrument instrument,
                          Period period,
                          OfferSide side,
                          long from,
                          long to)
                          throws JFException
Calculates the Rising/Falling Three Methods indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlRiseFall3Methods

int[] cdlRiseFall3Methods(Instrument instrument,
                          Period period,
                          OfferSide side,
                          Filter filter,
                          int numberOfCandlesBefore,
                          long time,
                          int numberOfCandlesAfter)
                          throws JFException
Calculates the Rising/Falling Three Methods indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlRiseFall3Methods

int[] cdlRiseFall3Methods(Instrument instrument,
                          Period period,
                          OfferSide side,
                          Filter filter,
                          long from,
                          long to)
                          throws JFException
Calculates the Rising/Falling Three Methods indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlSeparatingLines

int cdlSeparatingLines(Instrument instrument,
                       Period period,
                       OfferSide side,
                       int shift)
                       throws JFException
Calculates the Separating Lines indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlSeparatingLines

int[] cdlSeparatingLines(Instrument instrument,
                         Period period,
                         OfferSide side,
                         long from,
                         long to)
                         throws JFException
Calculates the Separating Lines indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlSeparatingLines

int[] cdlSeparatingLines(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         int numberOfCandlesBefore,
                         long time,
                         int numberOfCandlesAfter)
                         throws JFException
Calculates the Separating Lines indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlSeparatingLines

int[] cdlSeparatingLines(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         long from,
                         long to)
                         throws JFException
Calculates the Separating Lines indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlShootingStar

int cdlShootingStar(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int shift)
                    throws JFException
Calculates the Shooting Star indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlShootingStar

int[] cdlShootingStar(Instrument instrument,
                      Period period,
                      OfferSide side,
                      long from,
                      long to)
                      throws JFException
Calculates the Shooting Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlShootingStar

int[] cdlShootingStar(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Calculates the Shooting Star indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlShootingStar

int[] cdlShootingStar(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Calculates the Shooting Star indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlShortLine

int cdlShortLine(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int shift)
                 throws JFException
Calculates the Short Line Candle indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlShortLine

int[] cdlShortLine(Instrument instrument,
                   Period period,
                   OfferSide side,
                   long from,
                   long to)
                   throws JFException
Calculates the Short Line Candle indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlShortLine

int[] cdlShortLine(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Short Line Candle indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlShortLine

int[] cdlShortLine(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Short Line Candle indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlSpinningTop

int cdlSpinningTop(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int shift)
                   throws JFException
Calculates the Spinning Top indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlSpinningTop

int[] cdlSpinningTop(Instrument instrument,
                     Period period,
                     OfferSide side,
                     long from,
                     long to)
                     throws JFException
Calculates the Spinning Top indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlSpinningTop

int[] cdlSpinningTop(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Spinning Top indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlSpinningTop

int[] cdlSpinningTop(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Spinning Top indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlStalledPattern

int cdlStalledPattern(Instrument instrument,
                      Period period,
                      OfferSide side,
                      int shift)
                      throws JFException
Calculates the Stalled Pattern indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlStalledPattern

int[] cdlStalledPattern(Instrument instrument,
                        Period period,
                        OfferSide side,
                        long from,
                        long to)
                        throws JFException
Calculates the Stalled Pattern indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlStalledPattern

int[] cdlStalledPattern(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Stalled Pattern indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlStalledPattern

int[] cdlStalledPattern(Instrument instrument,
                        Period period,
                        OfferSide side,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Stalled Pattern indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlStickSandwich

int cdlStickSandwich(Instrument instrument,
                     Period period,
                     OfferSide side,
                     int shift)
                     throws JFException
Calculates the Stick Sandwich indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlStickSandwich

int[] cdlStickSandwich(Instrument instrument,
                       Period period,
                       OfferSide side,
                       long from,
                       long to)
                       throws JFException
Calculates the Stick Sandwich indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlStickSandwich

int[] cdlStickSandwich(Instrument instrument,
                       Period period,
                       OfferSide side,
                       Filter filter,
                       int numberOfCandlesBefore,
                       long time,
                       int numberOfCandlesAfter)
                       throws JFException
Calculates the Stick Sandwich indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlStickSandwich

int[] cdlStickSandwich(Instrument instrument,
                       Period period,
                       OfferSide side,
                       Filter filter,
                       long from,
                       long to)
                       throws JFException
Calculates the Stick Sandwich indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTakuri

int cdlTakuri(Instrument instrument,
              Period period,
              OfferSide side,
              int shift)
              throws JFException
Calculates the Takuri indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTakuri

int[] cdlTakuri(Instrument instrument,
                Period period,
                OfferSide side,
                long from,
                long to)
                throws JFException
Calculates the Takuri indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTakuri

int[] cdlTakuri(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Takuri indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTakuri

int[] cdlTakuri(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Takuri indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTasukiGap

int cdlTasukiGap(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int shift)
                 throws JFException
Calculates the Tasuki Gap indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTasukiGap

int[] cdlTasukiGap(Instrument instrument,
                   Period period,
                   OfferSide side,
                   long from,
                   long to)
                   throws JFException
Calculates the Tasuki Gap indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTasukiGap

int[] cdlTasukiGap(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Tasuki Gap indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTasukiGap

int[] cdlTasukiGap(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Tasuki Gap indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlThrusting

int cdlThrusting(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int shift)
                 throws JFException
Calculates the Thrusting Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlThrusting

int[] cdlThrusting(Instrument instrument,
                   Period period,
                   OfferSide side,
                   long from,
                   long to)
                   throws JFException
Calculates the Thrusting Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlThrusting

int[] cdlThrusting(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Thrusting Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlThrusting

int[] cdlThrusting(Instrument instrument,
                   Period period,
                   OfferSide side,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Thrusting Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTristar

int cdlTristar(Instrument instrument,
               Period period,
               OfferSide side,
               int shift)
               throws JFException
Calculates the Tristar Pattern for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTristar

int[] cdlTristar(Instrument instrument,
                 Period period,
                 OfferSide side,
                 long from,
                 long to)
                 throws JFException
Calculates the Tristar Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTristar

int[] cdlTristar(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Tristar Pattern for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlTristar

int[] cdlTristar(Instrument instrument,
                 Period period,
                 OfferSide side,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Tristar Pattern for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlUnique3River

int cdlUnique3River(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int shift)
                    throws JFException
Calculates the Unique 3 River indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlUnique3River

int[] cdlUnique3River(Instrument instrument,
                      Period period,
                      OfferSide side,
                      long from,
                      long to)
                      throws JFException
Calculates the Unique 3 River indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlUnique3River

int[] cdlUnique3River(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Calculates the Unique 3 River indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlUnique3River

int[] cdlUnique3River(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Calculates the Unique 3 River indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlUpsideGap2Crows

int cdlUpsideGap2Crows(Instrument instrument,
                       Period period,
                       OfferSide side,
                       int shift)
                       throws JFException
Calculates the Upside Gap Two Crows indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlUpsideGap2Crows

int[] cdlUpsideGap2Crows(Instrument instrument,
                         Period period,
                         OfferSide side,
                         long from,
                         long to)
                         throws JFException
Calculates the Upside Gap Two Crows indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlUpsideGap2Crows

int[] cdlUpsideGap2Crows(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         int numberOfCandlesBefore,
                         long time,
                         int numberOfCandlesAfter)
                         throws JFException
Calculates the Upside Gap Two Crows indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlUpsideGap2Crows

int[] cdlUpsideGap2Crows(Instrument instrument,
                         Period period,
                         OfferSide side,
                         Filter filter,
                         long from,
                         long to)
                         throws JFException
Calculates the Upside Gap Two Crows indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlXsideGap3Methods

int cdlXsideGap3Methods(Instrument instrument,
                        Period period,
                        OfferSide side,
                        int shift)
                        throws JFException
Calculates the Upside/Downside Gap Three Methods for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlXsideGap3Methods

int[] cdlXsideGap3Methods(Instrument instrument,
                          Period period,
                          OfferSide side,
                          long from,
                          long to)
                          throws JFException
Calculates the Upside/Downside Gap Three Methods for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlXsideGap3Methods

int[] cdlXsideGap3Methods(Instrument instrument,
                          Period period,
                          OfferSide side,
                          Filter filter,
                          int numberOfCandlesBefore,
                          long time,
                          int numberOfCandlesAfter)
                          throws JFException
Calculates the Upside/Downside Gap Three Methods for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cdlXsideGap3Methods

int[] cdlXsideGap3Methods(Instrument instrument,
                          Period period,
                          OfferSide side,
                          Filter filter,
                          long from,
                          long to)
                          throws JFException
Calculates the Upside/Downside Gap Three Methods for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ceil

double ceil(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int shift)
            throws JFException
Calculates the Vector Ceil indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ceil

double[] ceil(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              long from,
              long to)
              throws JFException
Calculates the Vector Ceil indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ceil

double[] ceil(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Ceil indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ceil

double[] ceil(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Ceil indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cmo

double cmo(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Chande Momentum Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cmo

double[] cmo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Chande Momentum Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cmo

double[] cmo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Chande Momentum Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cmo

double[] cmo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Chande Momentum Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cog

double[] cog(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             int smoothPeriod,
             IIndicators.MaType maType,
             int shift)
             throws JFException
Calculates the Center Of Gravity indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
smoothPeriod - smoothing period
maType - type of moving average
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cog

double[][] cog(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               int smoothPeriod,
               IIndicators.MaType maType,
               long from,
               long to)
               throws JFException
Calculates the Center Of Gravity indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
smoothPeriod - smoothing period
maType - type of moving average
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cog

double[][] cog(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               int smoothPeriod,
               IIndicators.MaType maType,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Center Of Gravity indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
smoothPeriod - smoothing period
maType - type of moving average
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cog

double[][] cog(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               int smoothPeriod,
               IIndicators.MaType maType,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Center Of Gravity indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
smoothPeriod - smoothing period
maType - type of moving average
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

correl

double correl(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              int timePeriod,
              int shift)
              throws JFException
Calculates the Pearson's Correlation Coefficient for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

correl

double[] correl(Instrument instrument,
                Period period,
                OfferSide side1,
                IIndicators.AppliedPrice appliedPrice1,
                OfferSide side2,
                IIndicators.AppliedPrice appliedPrice2,
                int timePeriod,
                long from,
                long to)
                throws JFException
Calculates the Pearson's Correlation Coefficient for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

correl

double[] correl(Instrument instrument,
                Period period,
                OfferSide side1,
                IIndicators.AppliedPrice appliedPrice1,
                OfferSide side2,
                IIndicators.AppliedPrice appliedPrice2,
                int timePeriod,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Pearson's Correlation Coefficient for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

correl

double[] correl(Instrument instrument,
                Period period,
                OfferSide side1,
                IIndicators.AppliedPrice appliedPrice1,
                OfferSide side2,
                IIndicators.AppliedPrice appliedPrice2,
                int timePeriod,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Pearson's Correlation Coefficient for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cos

double cos(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int shift)
           throws JFException
Calculates the Vector Trigonometric Cos for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cos

double[] cos(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             long from,
             long to)
             throws JFException
Calculates the Vector Trigonometric Cos for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cos

double[] cos(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Vector Trigonometric Cos for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cos

double[] cos(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Vector Trigonometric Cos for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cosh

double cosh(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int shift)
            throws JFException
Calculates the Vector Trigonometric Cosh for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cosh

double[] cosh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric Cosh for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cosh

double[] cosh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Trigonometric Cosh for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

cosh

double[] cosh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric Cosh for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dema

double dema(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Double Exponential Moving Average for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dema

double[] dema(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Double Exponential Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dema

double[] dema(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Double Exponential Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dema

double[] dema(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Double Exponential Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

div

double div(Instrument instrument,
           Period period,
           OfferSide side1,
           IIndicators.AppliedPrice appliedPrice1,
           OfferSide side2,
           IIndicators.AppliedPrice appliedPrice2,
           int shift)
           throws JFException
Calculates the Vector Arithmetic Div for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

div

double[] div(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             long from,
             long to)
             throws JFException
Calculates the Vector Arithmetic Div for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

div

double[] div(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Vector Arithmetic Div for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

div

double[] div(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Vector Arithmetic Div for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dmi

double[] dmi(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             int shift)
             throws JFException
Calculates the Average Directional Movement Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dmi

double[][] dmi(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               long from,
               long to)
               throws JFException
Calculates the Average Directional Movement Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dmi

double[][] dmi(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Average Directional Movement Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dmi

double[][] dmi(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Average Directional Movement Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

donchian

double[] donchian(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  int shift)
                  throws JFException
Calculates the Donchian Channel indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

donchian

double[][] donchian(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    long from,
                    long to)
                    throws JFException
Calculates the Donchian Channel indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

donchian

double[][] donchian(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Donchian Channel indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

donchian

double[][] donchian(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Donchian Channel indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dx

double dx(Instrument instrument,
          Period period,
          OfferSide side,
          int timePeriod,
          int shift)
          throws JFException
Calculates the Directional Movement Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dx

double[] dx(Instrument instrument,
            Period period,
            OfferSide side,
            int timePeriod,
            long from,
            long to)
            throws JFException
Calculates the Directional Movement Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dx

double[] dx(Instrument instrument,
            Period period,
            OfferSide side,
            int timePeriod,
            Filter filter,
            int numberOfCandlesBefore,
            long time,
            int numberOfCandlesAfter)
            throws JFException
Calculates the Directional Movement Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

dx

double[] dx(Instrument instrument,
            Period period,
            OfferSide side,
            int timePeriod,
            Filter filter,
            long from,
            long to)
            throws JFException
Calculates the Directional Movement Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ema

double ema(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Exponential Moving Average for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Exponential Moving Average

ema

double[] ema(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Exponential Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the sideparameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar or tick
period - period of the bar or TICK
side - Bid or Ask side of the bar which price to take for 1sec bars generation for ticks or side for bars
appliedPrice - type of input data
timePeriod - time period value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Exponential Moving Average

ema

double[] ema(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Exponential Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Exponential Moving Average

ema

double[] ema(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Exponential Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period value
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Exponential Moving Average

emaEnvelope

double[] emaEnvelope(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     int timePeriod,
                     double deviation,
                     int shift)
                     throws JFException
Calculates the EMA Envelope indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
deviation - deviation
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

emaEnvelope

double[][] emaEnvelope(Instrument instrument,
                       Period period,
                       OfferSide side,
                       IIndicators.AppliedPrice appliedPrice,
                       int timePeriod,
                       double deviation,
                       long from,
                       long to)
                       throws JFException
Calculates the EMA Envelope indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
deviation - deviation
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

emaEnvelope

double[][] emaEnvelope(Instrument instrument,
                       Period period,
                       OfferSide side,
                       IIndicators.AppliedPrice appliedPrice,
                       int timePeriod,
                       double deviation,
                       Filter filter,
                       int numberOfCandlesBefore,
                       long time,
                       int numberOfCandlesAfter)
                       throws JFException
Calculates the EMA Envelope indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
deviation - deviation
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

emaEnvelope

double[][] emaEnvelope(Instrument instrument,
                       Period period,
                       OfferSide side,
                       IIndicators.AppliedPrice appliedPrice,
                       int timePeriod,
                       double deviation,
                       Filter filter,
                       long from,
                       long to)
                       throws JFException
Calculates the EMA Envelope indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
deviation - deviation
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

exp

double exp(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int shift)
           throws JFException
Calculates the Vector Arithmetic Exp indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

exp

double[] exp(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             long from,
             long to)
             throws JFException
Calculates the Vector Arithmetic Exp indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

exp

double[] exp(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Vector Arithmetic Exp indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

exp

double[] exp(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Vector Arithmetic Exp indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fibPivot

double[] fibPivot(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  int shift)
                  throws JFException
Calculates the Fibonacci Pivot Points for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fibPivot

double[][] fibPivot(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    long from,
                    long to)
                    throws JFException
Calculates the Fibonacci Pivot Points for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fibPivot

double[][] fibPivot(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Fibonacci Pivot Points for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fibPivot

double[][] fibPivot(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Fibonacci Pivot Points for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

floor

double floor(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int shift)
             throws JFException
Calculates the Vector Floor indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

floor

double[] floor(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               long from,
               long to)
               throws JFException
Calculates the Vector Floor indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

floor

double[] floor(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Vector Floor indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

floor

double[] floor(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Vector Floor indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

force

double force(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             IIndicators.MaType maType,
             int shift)
             throws JFException
Calculates the Force Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

force

double[] force(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               IIndicators.MaType maType,
               long from,
               long to)
               throws JFException
Calculates the Force Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

force

double[] force(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               IIndicators.MaType maType,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Force Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

force

double[] force(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               IIndicators.MaType maType,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Force Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fractal

double[] fractal(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int barsOnSides,
                 int shift)
                 throws JFException
Calculates the Fractal indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
barsOnSides - number of bars on the sides
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fractal

double[][] fractal(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int barsOnSides,
                   long from,
                   long to)
                   throws JFException
Calculates the Fractal indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
barsOnSides - number of bars on the sides
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fractal

double[][] fractal(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int barsOnSides,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Fractal indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
barsOnSides - number of bars on the sides
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fractal

double[][] fractal(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int barsOnSides,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Fractal indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
barsOnSides - number of bars on the sides
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fractalLines

double[] fractalLines(Instrument instrument,
                      Period period,
                      OfferSide side,
                      int barsOnSides,
                      int shift)
                      throws JFException
Calculates the Fractal lines indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
barsOnSides - number of bars on the sides
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fractalLines

double[][] fractalLines(Instrument instrument,
                        Period period,
                        OfferSide side,
                        int barsOnSides,
                        long from,
                        long to)
                        throws JFException
Calculates the Fractal lines indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
barsOnSides - number of bars on the sides
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fractalLines

double[][] fractalLines(Instrument instrument,
                        Period period,
                        OfferSide side,
                        int barsOnSides,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Fractal lines indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
barsOnSides - number of bars on the sides
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

fractalLines

double[][] fractalLines(Instrument instrument,
                        Period period,
                        OfferSide side,
                        int barsOnSides,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Fractal lines indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
barsOnSides - number of bars on the sides
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

gator

double[] gator(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int jawTimePeriod,
               int teethTimePeriod,
               int lipsTimePeriod,
               int shift)
               throws JFException
Calculates the Gator Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
jawTimePeriod - jaw time period
teethTimePeriod - teeth time period
lipsTimePeriod - lips time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

gator

double[][] gator(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int jawTimePeriod,
                 int teethTimePeriod,
                 int lipsTimePeriod,
                 long from,
                 long to)
                 throws JFException
Calculates the Gator Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
jawTimePeriod - jaw time period
teethTimePeriod - teeth time period
lipsTimePeriod - lips time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

gator

double[][] gator(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int jawTimePeriod,
                 int teethTimePeriod,
                 int lipsTimePeriod,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Gator Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
jawTimePeriod - jaw time period
teethTimePeriod - teeth time period
lipsTimePeriod - lips time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

gator

double[][] gator(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int jawTimePeriod,
                 int teethTimePeriod,
                 int lipsTimePeriod,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Gator Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
jawTimePeriod - jaw time period
teethTimePeriod - teeth time period
lipsTimePeriod - lips time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

heikenAshi

double[] heikenAshi(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int shift)
                    throws JFException
Deprecated. replaced by heikinAshi(Instrument instrument, Period period, OfferSide side, int shift)

Throws:
JFException

heikenAshi

double[][] heikenAshi(Instrument instrument,
                      Period period,
                      OfferSide side,
                      long from,
                      long to)
                      throws JFException
Deprecated. replaced by heikinAshi(Instrument instrument, Period period, OfferSide side, long from, long to)

Throws:
JFException

heikenAshi

double[][] heikenAshi(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Deprecated. replaced by heikinAshi(Instrument instrument, Period period, OfferSide side, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)

Throws:
JFException

heikinAshi

double[] heikinAshi(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int shift)
                    throws JFException
Calculates the Heikin Ashi indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
array with prices. The result array contains prices in the following order: OPEN, CLOSE, HIGH, LOW.
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

heikinAshi

double[][] heikinAshi(Instrument instrument,
                      Period period,
                      OfferSide side,
                      long from,
                      long to)
                      throws JFException
Calculates the Heikin Ashi indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
array of arrays with prices. The result array contains prices in the following order: OPEN, CLOSE, HIGH, LOW.
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

heikinAshi

double[][] heikinAshi(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Calculates the Heikin Ashi indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
filter - filter
Returns:
array of arrays with prices. The result array contains prices in the following order: OPEN, CLOSE, HIGH, LOW.
Throws:
JFException

heikinAshi

double[][] heikinAshi(Instrument instrument,
                      Period period,
                      OfferSide side,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Calculates the Heikin Ashi indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
array of arrays with prices. The result array contains prices in the following order: OPEN, CLOSE, HIGH, LOW.
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

hma

double hma(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Hull Moving Average indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

hma

double[] hma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Hull Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

hma

double[] hma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Hull Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

hma

double[] hma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Hull Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_dcperiod

double ht_dcperiod(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int shift)
                   throws JFException
Calculates the Hilbert Transform - Dominant Cycle Period indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_dcperiod

double[] ht_dcperiod(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     long from,
                     long to)
                     throws JFException
Calculates the Hilbert Transform - Dominant Cycle Period indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_dcperiod

double[] ht_dcperiod(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Hilbert Transform - Dominant Cycle Period indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_dcperiod

double[] ht_dcperiod(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Hilbert Transform - Dominant Cycle Period indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_dcphase

double ht_dcphase(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int shift)
                  throws JFException
Calculates the Hilbert Transform - Dominant Cycle Phase for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_dcphase

double[] ht_dcphase(Instrument instrument,
                    Period period,
                    OfferSide side,
                    IIndicators.AppliedPrice appliedPrice,
                    long from,
                    long to)
                    throws JFException
Calculates the Hilbert Transform - Dominant Cycle Phase for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_dcphase

double[] ht_dcphase(Instrument instrument,
                    Period period,
                    OfferSide side,
                    IIndicators.AppliedPrice appliedPrice,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Hilbert Transform - Dominant Cycle Phase for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_dcphase

double[] ht_dcphase(Instrument instrument,
                    Period period,
                    OfferSide side,
                    IIndicators.AppliedPrice appliedPrice,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Hilbert Transform - Dominant Cycle Phase for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_phasor

double[] ht_phasor(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int shift)
                   throws JFException
Calculates the Hilbert Transform - Phasor Components indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_phasor

double[][] ht_phasor(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     long from,
                     long to)
                     throws JFException
Calculates the Hilbert Transform - Phasor Components indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_phasor

double[][] ht_phasor(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Hilbert Transform - Phasor Components indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_phasor

double[][] ht_phasor(Instrument instrument,
                     Period period,
                     OfferSide side,
                     IIndicators.AppliedPrice appliedPrice,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Hilbert Transform - Phasor Components indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_sine

double[] ht_sine(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int shift)
                 throws JFException
Calculates the Hilbert Transform - SineWave indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_sine

double[][] ht_sine(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   long from,
                   long to)
                   throws JFException
Calculates the Hilbert Transform - SineWave indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_sine

double[][] ht_sine(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Hilbert Transform - SineWave indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_sine

double[][] ht_sine(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Hilbert Transform - SineWave indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_trendline

double ht_trendline(Instrument instrument,
                    Period period,
                    OfferSide side,
                    IIndicators.AppliedPrice appliedPrice,
                    int shift)
                    throws JFException
Calculates the Hilbert Transform - Instantaneous Trendline indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Hilbert Transform - Instantaneous Trendline indicator

ht_trendline

double[] ht_trendline(Instrument instrument,
                      Period period,
                      OfferSide side,
                      IIndicators.AppliedPrice appliedPrice,
                      long from,
                      long to)
                      throws JFException
Calculates the Hilbert Transform - Instantaneous Trendline indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Hilbert Transform - Instantaneous Trendline indicator

ht_trendline

double[] ht_trendline(Instrument instrument,
                      Period period,
                      OfferSide side,
                      IIndicators.AppliedPrice appliedPrice,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Calculates the Hilbert Transform - Instantaneous Trendline indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Hilbert Transform - Instantaneous Trendline indicator

ht_trendline

double[] ht_trendline(Instrument instrument,
                      Period period,
                      OfferSide side,
                      IIndicators.AppliedPrice appliedPrice,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Calculates the Hilbert Transform - Instantaneous Trendline indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Hilbert Transform - Instantaneous Trendline indicator

ht_trendmode

int ht_trendmode(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int shift)
                 throws JFException
Calculates the Hilbert Transform - Trend vs Cycle Mode indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_trendmode

int[] ht_trendmode(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   long from,
                   long to)
                   throws JFException
Calculates the Hilbert Transform - Trend vs Cycle Mode indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_trendmode

int[] ht_trendmode(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Hilbert Transform - Trend vs Cycle Mode indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ht_trendmode

int[] ht_trendmode(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Hilbert Transform - Trend vs Cycle Mode indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ichimoku

double[] ichimoku(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int tenkan,
                  int kijun,
                  int senkou,
                  int shift)
                  throws JFException
Calculates the Ichimoku indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
tenkan - tenkan
kijun - kijun
senkou - senkou
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ichimoku

double[][] ichimoku(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int tenkan,
                    int kijun,
                    int senkou,
                    long from,
                    long to)
                    throws JFException
Calculates the Ichimoku indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
tenkan - tenkan
kijun - kijun
senkou - senkou
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ichimoku

double[][] ichimoku(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int tenkan,
                    int kijun,
                    int senkou,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Ichimoku indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
tenkan - tenkan
kijun - kijun
senkou - senkou
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ichimoku

double[][] ichimoku(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int tenkan,
                    int kijun,
                    int senkou,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Ichimoku indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
tenkan - tenkan
kijun - kijun
senkou - senkou
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

kairi

double kairi(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             IIndicators.MaType maType,
             int shift)
             throws JFException
Calculates the Kairi indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

kairi

double[] kairi(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               IIndicators.MaType maType,
               long from,
               long to)
               throws JFException
Calculates the Kairi indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

kairi

double[] kairi(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               IIndicators.MaType maType,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Kairi indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

kairi

double[] kairi(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               IIndicators.MaType maType,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Kairi indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

kama

double kama(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int shift)
            throws JFException
Deprecated. replaced by kama(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, int shift)

Throws:
JFException

kama

double[] kama(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              long from,
              long to)
              throws JFException
Deprecated. replaced by kama(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, long from, long to)

Throws:
JFException

kama

double[] kama(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Deprecated. replaced by kama(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)

Throws:
JFException

kama

double[] kama(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Deprecated. replaced by kama(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int timePeriod, int fastMAPeriod, int slowMAPeriod, Filter filter, long from, long to)

Throws:
JFException

kama

double kama(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int fastMAPeriod,
            int slowMAPeriod,
            int shift)
            throws JFException
Calculates the Kaufman Adaptive Moving Average for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
fastMAPeriod - fast moving average period
slowMAPeriod - slow moving average period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

kama

double[] kama(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              int fastMAPeriod,
              int slowMAPeriod,
              long from,
              long to)
              throws JFException
Calculates the Kaufman Adaptive Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
fastMAPeriod - fast moving average period
slowMAPeriod - slow moving average period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

kama

double[] kama(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              int fastMAPeriod,
              int slowMAPeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Kaufman Adaptive Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
fastMAPeriod - fast moving average period
slowMAPeriod - slow moving average period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

kama

double[] kama(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              int fastMAPeriod,
              int slowMAPeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Kaufman Adaptive Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
fastMAPeriod - fast moving average period
slowMAPeriod - slow moving average period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

keltner

double[] keltner(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int timePeriod,
                 int shift)
                 throws JFException
Calculates the Keltner Channel indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

keltner

double[][] keltner(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   long from,
                   long to)
                   throws JFException
Calculates the Keltner Channel indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

keltner

double[][] keltner(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Keltner Channel indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

keltner

double[][] keltner(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Keltner Channel indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

lasacs1

double lasacs1(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int ma,
               double gamma,
               int lookback,
               int shift)
               throws JFException
Deprecated. replaced by lagACS1(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int ma, double gamma, int lookback, int shift)

Throws:
JFException

lasacs1

double[] lasacs1(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int ma,
                 double gamma,
                 int lookback,
                 long from,
                 long to)
                 throws JFException
Deprecated. replaced by lagACS1(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int ma, double gamma, int lookback, long from, long to)

Throws:
JFException

lasacs1

double[] lasacs1(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int ma,
                 double gamma,
                 int lookback,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Deprecated. replaced by lagACS1(Instrument instrument, Period period, OfferSide side, AppliedPrice appliedPrice, int ma, double gamma, int lookback, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)

Throws:
JFException

lagACS1

double lagACS1(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int ma,
               double gamma,
               int lookback,
               int shift)
               throws JFException
Calculates the Laguerre-ACS1 indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
ma - ma
gamma - gamma
lookback - lookback
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

lagACS1

double[] lagACS1(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int ma,
                 double gamma,
                 int lookback,
                 long from,
                 long to)
                 throws JFException
Calculates the Laguerre-ACS1 indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
ma - ma
gamma - gamma
lookback - lookback
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

lagACS1

double[] lagACS1(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int ma,
                 double gamma,
                 int lookback,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Laguerre-ACS1 indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
ma - ma
gamma - gamma
lookback - lookback
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

lagACS1

double[] lagACS1(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int ma,
                 double gamma,
                 int lookback,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Laguerre-ACS1 indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
ma - ma
gamma - gamma
lookback - lookback
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearReg

double linearReg(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int timePeriod,
                 int shift)
                 throws JFException
Calculates the Linear Regression indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearReg

double[] linearReg(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   long from,
                   long to)
                   throws JFException
Calculates the Linear Regression indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearReg

double[] linearReg(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Linear Regression indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearReg

double[] linearReg(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Linear Regression indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegAngle

double linearRegAngle(Instrument instrument,
                      Period period,
                      OfferSide side,
                      IIndicators.AppliedPrice appliedPrice,
                      int timePeriod,
                      int shift)
                      throws JFException
Calculates the Linear Regression Angle indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegAngle

double[] linearRegAngle(Instrument instrument,
                        Period period,
                        OfferSide side,
                        IIndicators.AppliedPrice appliedPrice,
                        int timePeriod,
                        long from,
                        long to)
                        throws JFException
Calculates the Linear Regression Angle indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegAngle

double[] linearRegAngle(Instrument instrument,
                        Period period,
                        OfferSide side,
                        IIndicators.AppliedPrice appliedPrice,
                        int timePeriod,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Linear Regression Angle indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegAngle

double[] linearRegAngle(Instrument instrument,
                        Period period,
                        OfferSide side,
                        IIndicators.AppliedPrice appliedPrice,
                        int timePeriod,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Linear Regression Angle indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegIntercept

double linearRegIntercept(Instrument instrument,
                          Period period,
                          OfferSide side,
                          IIndicators.AppliedPrice appliedPrice,
                          int timePeriod,
                          int shift)
                          throws JFException
Calculates the Linear Regression Intercept indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegIntercept

double[] linearRegIntercept(Instrument instrument,
                            Period period,
                            OfferSide side,
                            IIndicators.AppliedPrice appliedPrice,
                            int timePeriod,
                            long from,
                            long to)
                            throws JFException
Calculates the Linear Regression Intercept indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegIntercept

double[] linearRegIntercept(Instrument instrument,
                            Period period,
                            OfferSide side,
                            IIndicators.AppliedPrice appliedPrice,
                            int timePeriod,
                            Filter filter,
                            int numberOfCandlesBefore,
                            long time,
                            int numberOfCandlesAfter)
                            throws JFException
Calculates the Linear Regression Intercept indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegIntercept

double[] linearRegIntercept(Instrument instrument,
                            Period period,
                            OfferSide side,
                            IIndicators.AppliedPrice appliedPrice,
                            int timePeriod,
                            Filter filter,
                            long from,
                            long to)
                            throws JFException
Calculates the Linear Regression Intercept indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegSlope

double linearRegSlope(Instrument instrument,
                      Period period,
                      OfferSide side,
                      IIndicators.AppliedPrice appliedPrice,
                      int timePeriod,
                      int shift)
                      throws JFException
Calculates the Linear Regression Slope indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegSlope

double[] linearRegSlope(Instrument instrument,
                        Period period,
                        OfferSide side,
                        IIndicators.AppliedPrice appliedPrice,
                        int timePeriod,
                        Filter filter,
                        int numberOfCandlesBefore,
                        long time,
                        int numberOfCandlesAfter)
                        throws JFException
Calculates the Linear Regression Slope indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegSlope

double[] linearRegSlope(Instrument instrument,
                        Period period,
                        OfferSide side,
                        IIndicators.AppliedPrice appliedPrice,
                        int timePeriod,
                        long from,
                        long to)
                        throws JFException
Calculates the Linear Regression Slope indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

linearRegSlope

double[] linearRegSlope(Instrument instrument,
                        Period period,
                        OfferSide side,
                        IIndicators.AppliedPrice appliedPrice,
                        int timePeriod,
                        Filter filter,
                        long from,
                        long to)
                        throws JFException
Calculates the Linear Regression Slope indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ln

double ln(Instrument instrument,
          Period period,
          OfferSide side,
          IIndicators.AppliedPrice appliedPrice,
          int shift)
          throws JFException
Calculates the Vector Log Natural for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ln

double[] ln(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            Filter filter,
            int numberOfCandlesBefore,
            long time,
            int numberOfCandlesAfter)
            throws JFException
Calculates the Vector Log Natural for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ln

double[] ln(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            long from,
            long to)
            throws JFException
Calculates the Vector Log Natural for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ln

double[] ln(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            Filter filter,
            long from,
            long to)
            throws JFException
Calculates the Vector Log Natural for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

log10

double log10(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int shift)
             throws JFException
Calculates the Vector Log10 for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

log10

double[] log10(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Vector Log10 for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

log10

double[] log10(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               long from,
               long to)
               throws JFException
Calculates the Vector Log10 for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

log10

double[] log10(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Vector Log10 for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

lwma

double lwma(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Linear Weighted Moving Average indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

lwma

double[] lwma(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Linear Weighted Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

lwma

double[] lwma(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Linear Weighted Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

lwma

double[] lwma(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Linear Weighted Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ma

double ma(Instrument instrument,
          Period period,
          OfferSide side,
          IIndicators.AppliedPrice appliedPrice,
          int timePeriod,
          IIndicators.MaType maType,
          int shift)
          throws JFException
Calculates the Moving Average for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ma

double[] ma(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            IIndicators.MaType maType,
            Filter filter,
            int numberOfCandlesBefore,
            long time,
            int numberOfCandlesAfter)
            throws JFException
Calculates the Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ma

double[] ma(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            IIndicators.MaType maType,
            long from,
            long to)
            throws JFException
Calculates the Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ma

double[] ma(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            IIndicators.MaType maType,
            Filter filter,
            long from,
            long to)
            throws JFException
Calculates the Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
maType - type of moving average
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macd

double[] macd(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int fastPeriod,
              int slowPeriod,
              int signalPeriod,
              int shift)
              throws JFException
Calculates the Moving Average Convergence/Divergence indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for the fast MA
slowPeriod - period for the slow MA
signalPeriod - smoothing for the signal line
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macd

double[][] macd(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int fastPeriod,
                int slowPeriod,
                int signalPeriod,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Moving Average Convergence/Divergence indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for the fast MA
slowPeriod - period for the slow MA
signalPeriod - smoothing for the signal line
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macd

double[][] macd(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int fastPeriod,
                int slowPeriod,
                int signalPeriod,
                long from,
                long to)
                throws JFException
Calculates the Moving Average Convergence/Divergence indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for the fast MA
slowPeriod - period for the slow MA
signalPeriod - smoothing for the signal line
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macd

double[][] macd(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int fastPeriod,
                int slowPeriod,
                int signalPeriod,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Moving Average Convergence/Divergence indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for the fast MA
slowPeriod - period for the slow MA
signalPeriod - smoothing for the signal line
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macdExt

double[] macdExt(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int fastPeriod,
                 IIndicators.MaType fastMaType,
                 int slowPeriod,
                 IIndicators.MaType slowMaType,
                 int signalPeriod,
                 IIndicators.MaType signalMaType,
                 int shift)
                 throws JFException
Calculates the MACD with controllable MA type indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for the fast MA
fastMaType - type of fast moving average
slowPeriod - period for the slow MA
slowMaType - type of slow moving average
signalPeriod - smoothing for the signal line
signalMaType - type of signal moving average
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macdExt

double[][] macdExt(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int fastPeriod,
                   IIndicators.MaType fastMaType,
                   int slowPeriod,
                   IIndicators.MaType slowMaType,
                   int signalPeriod,
                   IIndicators.MaType signalMaType,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the MACD with controllable MA type indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for the fast MA
fastMaType - type of fast moving average
slowPeriod - period for the slow MA
slowMaType - type of slow moving average
signalPeriod - smoothing for the signal line
signalMaType - type of signal moving average
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macdExt

double[][] macdExt(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int fastPeriod,
                   IIndicators.MaType fastMaType,
                   int slowPeriod,
                   IIndicators.MaType slowMaType,
                   int signalPeriod,
                   IIndicators.MaType signalMaType,
                   long from,
                   long to)
                   throws JFException
Calculates the MACD with controllable MA type indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for the fast MA
fastMaType - type of fast moving average
slowPeriod - period for the slow MA
slowMaType - type of slow moving average
signalPeriod - smoothing for the signal line
signalMaType - type of signal moving average
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macdExt

double[][] macdExt(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int fastPeriod,
                   IIndicators.MaType fastMaType,
                   int slowPeriod,
                   IIndicators.MaType slowMaType,
                   int signalPeriod,
                   IIndicators.MaType signalMaType,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the MACD with controllable MA type indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for the fast MA
fastMaType - type of fast moving average
slowPeriod - period for the slow MA
slowMaType - type of slow moving average
signalPeriod - smoothing for the signal line
signalMaType - type of signal moving average
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macdFix

double[] macdFix(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int signalPeriod,
                 int shift)
                 throws JFException
Calculates the Moving Average Convergence/Divergence Fix indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
signalPeriod - smoothing for the signal line
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macdFix

double[][] macdFix(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int signalPeriod,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Moving Average Convergence/Divergence Fix indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
signalPeriod - smoothing for the signal line
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macdFix

double[][] macdFix(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int signalPeriod,
                   long from,
                   long to)
                   throws JFException
Calculates the Moving Average Convergence/Divergence Fix indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
signalPeriod - smoothing for the signal line
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

macdFix

double[][] macdFix(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int signalPeriod,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Moving Average Convergence/Divergence Fix indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
signalPeriod - smoothing for the signal line
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

maEnvelope

double[] maEnvelope(Instrument instrument,
                    Period period,
                    OfferSide side,
                    IIndicators.AppliedPrice appliedPrice,
                    int timePeriod,
                    double deviation,
                    int shift)
                    throws JFException
Calculates the MA Envelope indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
deviation - deviation
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

maEnvelope

double[][] maEnvelope(Instrument instrument,
                      Period period,
                      OfferSide side,
                      IIndicators.AppliedPrice appliedPrice,
                      int timePeriod,
                      double deviation,
                      long from,
                      long to)
                      throws JFException
Calculates the MA Envelope indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
deviation - deviation
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

maEnvelope

double[][] maEnvelope(Instrument instrument,
                      Period period,
                      OfferSide side,
                      IIndicators.AppliedPrice appliedPrice,
                      int timePeriod,
                      double deviation,
                      Filter filter,
                      int numberOfCandlesBefore,
                      long time,
                      int numberOfCandlesAfter)
                      throws JFException
Calculates the MA Envelope indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
deviation - deviation
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

maEnvelope

double[][] maEnvelope(Instrument instrument,
                      Period period,
                      OfferSide side,
                      IIndicators.AppliedPrice appliedPrice,
                      int timePeriod,
                      double deviation,
                      Filter filter,
                      long from,
                      long to)
                      throws JFException
Calculates the MA Envelope indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
deviation - deviation
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mama

double[] mama(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              double fastLimit,
              double slowLimit,
              int shift)
              throws JFException
Calculates the MESA Adaptive Moving Average indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastLimit - upper limit use in the adaptive algorithm
slowLimit - lower limit use in the adaptive algorithm
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mama

double[][] mama(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                double fastLimit,
                double slowLimit,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the MESA Adaptive Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastLimit - upper limit use in the adaptive algorithm
slowLimit - lower limit use in the adaptive algorithm
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mama

double[][] mama(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                double fastLimit,
                double slowLimit,
                long from,
                long to)
                throws JFException
Calculates the MESA Adaptive Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastLimit - upper limit use in the adaptive algorithm
slowLimit - lower limit use in the adaptive algorithm
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mama

double[][] mama(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                double fastLimit,
                double slowLimit,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the MESA Adaptive Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastLimit - upper limit use in the adaptive algorithm
slowLimit - lower limit use in the adaptive algorithm
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wsmTime

java.lang.Object[] wsmTime(Instrument instrument,
                           Period period,
                           OfferSide side,
                           int shift)
                           throws JFException
Calculates the World Stock Market Time indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
market values for the specified bar as follows: each element of an array is an array of type Object itself or null where the first element of the latter array represents a market (type WSMTimeIndicator.Market) and the second element is a string which describes the market event: open or close
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wsmTime

java.lang.Object[] wsmTime(Instrument instrument,
                           Period period,
                           OfferSide side,
                           Filter filter,
                           int numberOfCandlesBefore,
                           long time,
                           int numberOfCandlesAfter)
                           throws JFException
Calculates the World Stock Market Time indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
market values for the specified bars as follows: each element of an array is an array of type Object itself or null where the first element of the latter array represents a market (type WSMTimeIndicator.Market) and the second element is a string which describes the market event: open or close
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wsmTime

java.lang.Object[] wsmTime(Instrument instrument,
                           Period period,
                           OfferSide side,
                           long from,
                           long to)
                           throws JFException
Calculates the World Stock Market Time indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
market values for the specified bars as follows: each element of an array is an array of type Object itself or null where the first element of the latter array represents a market (type WSMTimeIndicator.Market) and the second element is a string which describes the market event: open or close
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wsmTime

java.lang.Object[] wsmTime(Instrument instrument,
                           Period period,
                           OfferSide side,
                           Filter filter,
                           long from,
                           long to)
                           throws JFException
Calculates the World Stock Market Time indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
market values for the specified bars as follows: each element of an array is an array of type Object itself or null where the first element of the latter array represents a market (type WSMTimeIndicator.Market) and the second element is a string which describes the market event: open or close
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mavp

double mavp(Instrument instrument,
            Period period,
            OfferSide side1,
            IIndicators.AppliedPrice appliedPrice1,
            OfferSide side2,
            IIndicators.AppliedPrice appliedPrice2,
            int minPeriod,
            int maxPeriod,
            IIndicators.MaType maType,
            int shift)
            throws JFException
Calculates the Moving average with variable period indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
minPeriod - value less than minimum will be changed to Minimum period
maxPeriod - value higher than maximum will be changed to Maximum period
maType - type of moving average
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mavp

double[] mavp(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              int minPeriod,
              int maxPeriod,
              IIndicators.MaType maType,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Moving average with variable period indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
minPeriod - value less than minimum will be changed to Minimum period
maxPeriod - value higher than maximum will be changed to Maximum period
maType - type of moving average
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mavp

double[] mavp(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              int minPeriod,
              int maxPeriod,
              IIndicators.MaType maType,
              long from,
              long to)
              throws JFException
Calculates the Moving average with variable period indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
minPeriod - value less than minimum will be changed to Minimum period
maxPeriod - value higher than maximum will be changed to Maximum period
maType - type of moving average
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mavp

double[] mavp(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              int minPeriod,
              int maxPeriod,
              IIndicators.MaType maType,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Moving average with variable period indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
minPeriod - value less than minimum will be changed to Minimum period
maxPeriod - value higher than maximum will be changed to Maximum period
maType - type of moving average
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

max

double max(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Highest value over a specified period for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

max

double[] max(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Highest value over a specified period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

max

double[] max(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Highest value over a specified period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

max

double[] max(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Highest value over a specified period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

medPrice

double medPrice(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Median Price for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

medPrice

double[] medPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Median Price for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

medPrice

double[] medPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Median Price for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

medPrice

double[] medPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Median Price for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mfi

double mfi(Instrument instrument,
           Period period,
           OfferSide side,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Money Flow Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mfi

double[] mfi(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Money Flow Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mfi

double[] mfi(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Money Flow Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mfi

double[] mfi(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Money Flow Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

midPoint

double midPoint(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int timePeriod,
                int shift)
                throws JFException
Calculates the MidPoint over period for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

midPoint

double[] midPoint(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  long from,
                  long to)
                  throws JFException
Calculates the MidPoint over period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

midPoint

double[] midPoint(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the MidPoint over period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

midPoint

double[] midPoint(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the MidPoint over period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

midPrice

double midPrice(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                int shift)
                throws JFException
Calculates the Midpoint Price over period for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

midPrice

double[] midPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  long from,
                  long to)
                  throws JFException
Calculates the Midpoint Price over period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

midPrice

double[] midPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Midpoint Price over period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

midPrice

double[] midPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Midpoint Price over period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

min

double min(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the lowest value over a specified period for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

min

double[] min(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the lowest value over a specified period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

min

double[] min(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the lowest value over a specified period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

min

double[] min(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the lowest value over a specified period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minMax

double[] minMax(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int timePeriod,
                int shift)
                throws JFException
Calculates the lowest and the highest values over a specified period for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, MinMax indicator

minMax

double[][] minMax(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  long from,
                  long to)
                  throws JFException
Calculates the lowest and the highest values over a specified period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minMax

double[][] minMax(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the lowest and the highest values over a specified period for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minMax

double[][] minMax(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the lowest and the highest values over a specified period for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minusDi

double minusDi(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               int shift)
               throws JFException
Calculates the Minus Directional Indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minusDi

double[] minusDi(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 long from,
                 long to)
                 throws JFException
Calculates the Minus Directional Indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minusDi

double[] minusDi(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Minus Directional Indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minusDi

double[] minusDi(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Minus Directional Indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minusDm

double minusDm(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               int shift)
               throws JFException
Calculates the Minus Directional Movement indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minusDm

double[] minusDm(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 long from,
                 long to)
                 throws JFException
Calculates the Minus Directional Movement indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minusDm

double[] minusDm(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Minus Directional Movement indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

minusDm

double[] minusDm(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Minus Directional Movement indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mom

double mom(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Momentum indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mom

double[] mom(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Momentum indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mom

double[] mom(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Momentum indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mom

double[] mom(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Momentum indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mult

double mult(Instrument instrument,
            Period period,
            OfferSide side1,
            IIndicators.AppliedPrice appliedPrice1,
            OfferSide side2,
            IIndicators.AppliedPrice appliedPrice2,
            int shift)
            throws JFException
Calculates the Vector Arithmetic Mult for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mult

double[] mult(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              long from,
              long to)
              throws JFException
Calculates the Vector Arithmetic Mult for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mult

double[] mult(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Arithmetic Mult for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

mult

double[] mult(Instrument instrument,
              Period period,
              OfferSide side1,
              IIndicators.AppliedPrice appliedPrice1,
              OfferSide side2,
              IIndicators.AppliedPrice appliedPrice2,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Arithmetic Mult for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

murrey

double[] murrey(Instrument instrument,
                Period period,
                OfferSide side,
                int nPeriod,
                int timePeriod,
                int stepBack,
                int shift)
                throws JFException
Calculates the Murrey Channels indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
nPeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
timePeriod - time period
stepBack - step back
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

murrey

double[][] murrey(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int nPeriod,
                  int timePeriod,
                  int stepBack,
                  long from,
                  long to)
                  throws JFException
Calculates the Murrey Channels indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
nPeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
timePeriod - time period
stepBack - step back
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

murrey

double[][] murrey(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int nPeriod,
                  int timePeriod,
                  int stepBack,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Murrey Channels indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
nPeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
timePeriod - time period
stepBack - step back
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

murrey

double[][] murrey(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int nPeriod,
                  int timePeriod,
                  int stepBack,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Murrey Channels indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
nPeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
timePeriod - time period
stepBack - step back
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

natr

double natr(Instrument instrument,
            Period period,
            OfferSide side,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Normalized Average True Range indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

natr

double[] natr(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Normalized Average True Range indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

natr

double[] natr(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Normalized Average True Range indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

natr

double[] natr(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Normalized Average True Range indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

obv

double obv(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           OfferSide sideForPriceV,
           int shift)
           throws JFException
Calculates the On Balance Volume for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
sideForPriceV - Bid or Ask side for price volume
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

obv

double[] obv(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             OfferSide sideForPriceV,
             long from,
             long to)
             throws JFException
Calculates the On Balance Volume for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
sideForPriceV - Bid or Ask side for price volume
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

obv

double[] obv(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             OfferSide sideForPriceV,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the On Balance Volume for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
sideForPriceV - Bid or Ask side for price volume
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

obv

double[] obv(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             OfferSide sideForPriceV,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the On Balance Volume for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
sideForPriceV - Bid or Ask side for price volume
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

osma

double osma(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int fast_ema_period,
            int slow_ema_period,
            int signal_period,
            int shift)
            throws JFException
Calculates the Moving Average of Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fast_ema_period - period for fast EMA
slow_ema_period - period for slow EMA
signal_period - signal period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

osma

double[] osma(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int fast_ema_period,
              int slow_ema_period,
              int signal_period,
              long from,
              long to)
              throws JFException
Calculates the Moving Average of Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fast_ema_period - period for fast EMA
slow_ema_period - period for slow EMA
signal_period - signal period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

osma

double[] osma(Instrument instrument,
              Period period,
              OfferSide side,
              int fast_ema_period,
              int slow_ema_period,
              int signal_period,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Moving Average of Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fast_ema_period - period for fast EMA
slow_ema_period - period for slow EMA
signal_period - signal period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

osma

double[] osma(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int fast_ema_period,
              int slow_ema_period,
              int signal_period,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Moving Average of Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fast_ema_period - period for fast EMA
slow_ema_period - period for slow EMA
signal_period - signal period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

pivot

double[] pivot(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               boolean showHistoricalLevels,
               int shift)
               throws JFException
Deprecated. replaced by pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)

Throws:
JFException

pivot

double[][] pivot(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 boolean showHistoricalLevels,
                 long from,
                 long to)
                 throws JFException
Deprecated. replaced by pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)

Throws:
JFException

pivot

double[][] pivot(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 boolean showHistoricalLevels,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Deprecated. replaced by pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)

Throws:
JFException

pivot

double[][] pivot(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 boolean showHistoricalLevels,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Deprecated. replaced by pivot(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, long from, long to)

Throws:
JFException

pivot

double[] pivot(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               int shift)
               throws JFException
Calculates the Pivot points indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

pivot

double[][] pivot(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 long from,
                 long to)
                 throws JFException
Calculates the Pivot points indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

pivot

double[][] pivot(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Pivot points indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

pivot

double[][] pivot(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Pivot points indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

plusDi

double plusDi(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              int shift)
              throws JFException
Calculates the Plus Directional Indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

plusDi

double[] plusDi(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                long from,
                long to)
                throws JFException
Calculates the Plus Directional Indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

plusDi

double[] plusDi(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Plus Directional Indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

plusDi

double[] plusDi(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Plus Directional Indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

plusDm

double plusDm(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              int shift)
              throws JFException
Calculates the Plus Directional Movement indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

plusDm

double[] plusDm(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                long from,
                long to)
                throws JFException
Calculates the Plus Directional Movement indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

plusDm

double[] plusDm(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Plus Directional Movement indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

plusDm

double[] plusDm(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Plus Directional Movement indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ppo

double ppo(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int fastPeriod,
           int slowPeriod,
           IIndicators.MaType maType,
           int shift)
           throws JFException
Calculates the Percentage Price Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for fast MA
slowPeriod - period for slow MA
maType - type of moving average
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ppo

double[] ppo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int fastPeriod,
             int slowPeriod,
             IIndicators.MaType maType,
             long from,
             long to)
             throws JFException
Calculates the Percentage Price Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for fast MA
slowPeriod - period for slow MA
maType - type of moving average
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ppo

double[] ppo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int fastPeriod,
             int slowPeriod,
             IIndicators.MaType maType,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Percentage Price Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for fast MA
slowPeriod - period for slow MA
maType - type of moving average
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ppo

double[] ppo(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int fastPeriod,
             int slowPeriod,
             IIndicators.MaType maType,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Percentage Price Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
fastPeriod - period for fast MA
slowPeriod - period for slow MA
maType - type of moving average
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

prchannel

double prchannel(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int fastPeriod,
                 int slowPeriod,
                 IIndicators.MaType maType,
                 int shift)
                 throws JFException
Deprecated. replaced by prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)

Throws:
JFException

prchannel

double[] prchannel(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int fastPeriod,
                   int slowPeriod,
                   IIndicators.MaType maType,
                   long from,
                   long to)
                   throws JFException
Deprecated. replaced by prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)

Throws:
JFException

prchannel

double[] prchannel(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int fastPeriod,
                   int slowPeriod,
                   IIndicators.MaType maType,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Deprecated. replaced by prchannel(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)

Throws:
JFException

prchannel

double prchannel(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int timePeriod,
                 int shift)
                 throws JFException
Calculates the Price Channel indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

prchannel

double[] prchannel(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int timePeriod,
                   long from,
                   long to)
                   throws JFException
Calculates the Price Channel indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

prchannel

double[] prchannel(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int timePeriod,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Price Channel indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

prchannel

double[] prchannel(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int timePeriod,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Price Channel indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rci

double rci(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Rank Correlation Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rci

double[] rci(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Rank Correlation Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rci

double[] rci(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Rank Correlation Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rci

double[] rci(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Rank Correlation Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rmi

double rmi(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int momentumPeriod,
           int shift)
           throws JFException
Calculates the Relative Momentum Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
momentumPeriod - momentum period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rmi

double[] rmi(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             int momentumPeriod,
             long from,
             long to)
             throws JFException
Calculates the Relative Momentum Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
momentumPeriod - momentum period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rmi

double[] rmi(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             int momentumPeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Relative Momentum Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
momentumPeriod - momentum period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rmi

double[] rmi(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             int momentumPeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Relative Momentum Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
momentumPeriod - momentum period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

roc

double roc(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Rate of change indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

roc

double[] roc(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Rate of change indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

roc

double[] roc(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Rate of change indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

roc

double[] roc(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Rate of change indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocp

double rocp(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Rate of change Percentage indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocp

double[] rocp(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Rate of change Percentage indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocp

double[] rocp(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Rate of change Percentage indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocp

double[] rocp(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Rate of change Percentage indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocr

double rocr(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Rate of change ratio: (price/prevPrice) for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocr

double[] rocr(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Rate of change ratio: (price/prevPrice) for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocr

double[] rocr(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Rate of change ratio: (price/prevPrice) for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocr

double[] rocr(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Rate of change ratio: (price/prevPrice) for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocr100

double rocr100(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               int shift)
               throws JFException
Calculates the Rate of change ratio 100 scale indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocr100

double[] rocr100(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int timePeriod,
                 long from,
                 long to)
                 throws JFException
Calculates the Rate of change ratio 100 scale indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocr100

double[] rocr100(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int timePeriod,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Rate of change ratio 100 scale indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rocr100

double[] rocr100(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int timePeriod,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Rate of change ratio 100 scale indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rsi

double rsi(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Relative Strength Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rsi

double[] rsi(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Relative Strength Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rsi

double[] rsi(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Relative Strength Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rsi

double[] rsi(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Relative Strength Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rvi

double[] rvi(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             int shift)
             throws JFException
Calculates the Relative Vigor Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rvi

double[][] rvi(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               long from,
               long to)
               throws JFException
Calculates the Relative Vigor Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rvi

double[][] rvi(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Relative Vigor Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

rvi

double[][] rvi(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Relative Vigor Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sar

double sar(Instrument instrument,
           Period period,
           OfferSide side,
           double acceleration,
           double maximum,
           int shift)
           throws JFException
Calculates the Parabolic SAR indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
acceleration - Acceleration Factor used up to the Maximum value
maximum - Acceleration Factor Maximum value
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sar

double[] sar(Instrument instrument,
             Period period,
             OfferSide side,
             double acceleration,
             double maximum,
             long from,
             long to)
             throws JFException
Calculates the Parabolic SAR indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
acceleration - Acceleration Factor used up to the Maximum value
maximum - Acceleration Factor Maximum value
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sar

double[] sar(Instrument instrument,
             Period period,
             OfferSide side,
             double acceleration,
             double maximum,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Parabolic SAR indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
acceleration - Acceleration Factor used up to the Maximum value
maximum - Acceleration Factor Maximum value
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sarExt

double sarExt(Instrument instrument,
              Period period,
              OfferSide side,
              double startValue,
              double offsetOnReverse,
              double accelerationInitLong,
              double accelerationLong,
              double accelerationMaxLong,
              double accelerationInitShort,
              double accelerationShort,
              double accelerationMaxShort,
              int shift)
              throws JFException
Calculates the Parabolic SAR - Extended indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
startValue - Start value and direction. 0 for Auto, >0 for Long, <0 for Short
offsetOnReverse - Percent offset added/removed to initial stop on short/long reversal
accelerationInitLong - Acceleration Factor initial value for the Long direction
accelerationLong - Acceleration Factor for the Long direction
accelerationMaxLong - Acceleration Factor maximum value for the Long direction
accelerationInitShort - Acceleration Factor initial value for the Short direction
accelerationShort - Acceleration Factor for the Short direction
accelerationMaxShort - Acceleration Factor maximum value for the Short direction
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar

Note! function returns negative values to show that position is short

Throws:
JFException - when parameters are not valid
JFException - when parameters are not valid
See Also:
Indicator calculation, Indicator calculation

sarExt

double[] sarExt(Instrument instrument,
                Period period,
                OfferSide side,
                double startValue,
                double offsetOnReverse,
                double accelerationInitLong,
                double accelerationLong,
                double accelerationMaxLong,
                double accelerationInitShort,
                double accelerationShort,
                double accelerationMaxShort,
                long from,
                long to)
                throws JFException
Calculates the Parabolic SAR - Extended indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
startValue - Start value and direction. 0 for Auto, >0 for Long, <0 for Short
offsetOnReverse - Percent offset added/removed to initial stop on short/long reversal
accelerationInitLong - Acceleration Factor initial value for the Long direction
accelerationLong - Acceleration Factor for the Long direction
accelerationMaxLong - Acceleration Factor maximum value for the Long direction
accelerationInitShort - Acceleration Factor initial value for the Short direction
accelerationShort - Acceleration Factor for the Short direction
accelerationMaxShort - Acceleration Factor maximum value for the Short direction
Returns:
values for the specified bars

Note! function returns negative values to show that position is short

Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sarExt

double[] sarExt(Instrument instrument,
                Period period,
                OfferSide side,
                double startValue,
                double offsetOnReverse,
                double accelerationInitLong,
                double accelerationLong,
                double accelerationMaxLong,
                double accelerationInitShort,
                double accelerationShort,
                double accelerationMaxShort,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Parabolic SAR - Extended indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
startValue - Start value and direction. 0 for Auto, >0 for Long, <0 for Short
offsetOnReverse - Percent offset added/removed to initial stop on short/long reversal
accelerationInitLong - Acceleration Factor initial value for the Long direction
accelerationLong - Acceleration Factor for the Long direction
accelerationMaxLong - Acceleration Factor maximum value for the Long direction
accelerationInitShort - Acceleration Factor initial value for the Short direction
accelerationShort - Acceleration Factor for the Short direction
accelerationMaxShort - Acceleration Factor maximum value for the Short direction
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sin

double sin(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int shift)
           throws JFException
Calculates the Vector Trigonometric Sin for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sin

double[] sin(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             long from,
             long to)
             throws JFException
Calculates the Vector Trigonometric Sin for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sin

double[] sin(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Vector Trigonometric Sin for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sin

double[] sin(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Vector Trigonometric Sin for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sinh

double sinh(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int shift)
            throws JFException
Calculates the Vector Trigonometric Sinh for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sinh

double[] sinh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric Sinh for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sinh

double[] sinh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Trigonometric Sinh for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sinh

double[] sinh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric Sinh for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sma

double sma(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Simple Moving Average for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sma

double[] sma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Simple Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sma

double[] sma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Simple Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sma

double[] sma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Simple Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

smi

double[] smi(Instrument instrument,
             Period period,
             OfferSide side,
             int fastKPeriod,
             int slowKPeriod,
             int slowDPeriod,
             int smoothingPeriod,
             int shift)
             throws JFException
Calculates the Stochastic Momentum Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - fast K period
slowKPeriod - slow K period
slowDPeriod - slow D period
smoothingPeriod - smoothing period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

smi

double[][] smi(Instrument instrument,
               Period period,
               OfferSide side,
               int fastKPeriod,
               int slowKPeriod,
               int slowDPeriod,
               int smoothingPeriod,
               long from,
               long to)
               throws JFException
Calculates the Stochastic Momentum Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - fast K period
slowKPeriod - slow K period
slowDPeriod - slow D period
smoothingPeriod - smoothing period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

smi

double[][] smi(Instrument instrument,
               Period period,
               OfferSide side,
               int fastKPeriod,
               int slowKPeriod,
               int slowDPeriod,
               int smoothingPeriod,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Stochastic Momentum Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - fast K period
slowKPeriod - slow K period
slowDPeriod - slow D period
smoothingPeriod - smoothing period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

smi

double[][] smi(Instrument instrument,
               Period period,
               OfferSide side,
               int fastKPeriod,
               int slowKPeriod,
               int slowDPeriod,
               int smoothingPeriod,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Stochastic Momentum Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - fast K period
slowKPeriod - slow K period
slowDPeriod - slow D period
smoothingPeriod - smoothing period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

smma

double smma(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Smoothed Moving Average indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

smma

double[] smma(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Smoothed Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

smma

double[] smma(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Smoothed Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

smma

double[] smma(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Smoothed Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sqrt

double sqrt(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int shift)
            throws JFException
Calculates the Vector Square Root for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sqrt

double[] sqrt(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              long from,
              long to)
              throws JFException
Calculates the Vector Square Root for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sqrt

double[] sqrt(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Square Root for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sqrt

double[] sqrt(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Square Root for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

stdDev

double stdDev(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              double nbDev,
              int shift)
              throws JFException
Calculates the Standard Deviation for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
nbDev - number of deviations
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Standard Deviation

stdDev

double[] stdDev(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int timePeriod,
                double nbDev,
                long from,
                long to)
                throws JFException
Calculates the Standard Deviation for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
nbDev - number of deviations
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Standard Deviation

stdDev

double[] stdDev(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int timePeriod,
                double nbDev,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Standard Deviation for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
nbDev - number of deviations
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Standard Deviation

stdDev

double[] stdDev(Instrument instrument,
                Period period,
                OfferSide side,
                IIndicators.AppliedPrice appliedPrice,
                int timePeriod,
                double nbDev,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Standard Deviation for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
nbDev - number of deviations
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Standard Deviation

stoch

double[] stoch(Instrument instrument,
               Period period,
               OfferSide side,
               int fastKPeriod,
               int slowKPeriod,
               IIndicators.MaType slowKMaType,
               int slowDPeriod,
               IIndicators.MaType slowDMaType,
               int shift)
               throws JFException
Calculates the Stochastic indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - time period for building the Fast-K line
slowKPeriod - smoothing for making the Slow-K line. Usually set to 3
slowKMaType - type of moving average for Slow-K
slowDPeriod - smoothing for making the Slow-D line
slowDMaType - type of moving average for Slow-D
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Stochastic indicator

stoch

double[][] stoch(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int fastKPeriod,
                 int slowKPeriod,
                 IIndicators.MaType slowKMaType,
                 int slowDPeriod,
                 IIndicators.MaType slowDMaType,
                 long from,
                 long to)
                 throws JFException
Calculates the Stochastic indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - time period for building the Fast-K line
slowKPeriod - smoothing for making the Slow-K line. Usually set to 3
slowKMaType - type of moving average for Slow-K
slowDPeriod - smoothing for making the Slow-D line
slowDMaType - type of moving average for Slow-D
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Stochastic indicator

stoch

double[][] stoch(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int fastKPeriod,
                 int slowKPeriod,
                 IIndicators.MaType slowKMaType,
                 int slowDPeriod,
                 IIndicators.MaType slowDMaType,
                 Filter filter,
                 int numberOfCandlesBefore,
                 long time,
                 int numberOfCandlesAfter)
                 throws JFException
Calculates the Stochastic indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - time period for building the Fast-K line
slowKPeriod - smoothing for making the Slow-K line. Usually set to 3
slowKMaType - type of moving average for Slow-K
slowDPeriod - smoothing for making the Slow-D line
slowDMaType - type of moving average for Slow-D
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Stochastic indicator

stoch

double[][] stoch(Instrument instrument,
                 Period period,
                 OfferSide side,
                 int fastKPeriod,
                 int slowKPeriod,
                 IIndicators.MaType slowKMaType,
                 int slowDPeriod,
                 IIndicators.MaType slowDMaType,
                 Filter filter,
                 long from,
                 long to)
                 throws JFException
Calculates the Stochastic indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - time period for building the Fast-K line
slowKPeriod - smoothing for making the Slow-K line. Usually set to 3
slowKMaType - type of moving average for Slow-K
slowDPeriod - smoothing for making the Slow-D line
slowDMaType - type of moving average for Slow-D
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation, Stochastic indicator

stochF

double[] stochF(Instrument instrument,
                Period period,
                OfferSide side,
                int fastKPeriod,
                int fastDPeriod,
                IIndicators.MaType fastDMaType,
                int shift)
                throws JFException
Calculates the Stochastic Fast indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - time period for building the Fast-K line
fastDPeriod - smoothing for making the Fast-D line. Usually set to 3
fastDMaType - type of moving average for Fast-D
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

stochF

double[][] stochF(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int fastKPeriod,
                  int fastDPeriod,
                  IIndicators.MaType fastDMaType,
                  long from,
                  long to)
                  throws JFException
Calculates the Stochastic Fast indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - time period for building the Fast-K line
fastDPeriod - smoothing for making the Fast-D line. Usually set to 3
fastDMaType - type of moving average for Fast-D
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

stochF

double[][] stochF(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int fastKPeriod,
                  int fastDPeriod,
                  IIndicators.MaType fastDMaType,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Stochastic Fast indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - time period for building the Fast-K line
fastDPeriod - smoothing for making the Fast-D line. Usually set to 3
fastDMaType - type of moving average for Fast-D
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

stochF

double[][] stochF(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int fastKPeriod,
                  int fastDPeriod,
                  IIndicators.MaType fastDMaType,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Stochastic Fast indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
fastKPeriod - time period for building the Fast-K line
fastDPeriod - smoothing for making the Fast-D line. Usually set to 3
fastDMaType - type of moving average for Fast-D
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

stochRsi

double[] stochRsi(Instrument instrument,
                  Period period,
                  OfferSide side,
                  IIndicators.AppliedPrice appliedPrice,
                  int timePeriod,
                  int fastKPeriod,
                  int fastDPeriod,
                  IIndicators.MaType fastDMaType,
                  int shift)
                  throws JFException
Calculates the Stochastic Relative Strength Index for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
fastKPeriod - time period for building the Fast-K line
fastDPeriod - smoothing for making the Fast-D line. Usually set to 3
fastDMaType - type of moving average for Fast-D
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

stochRsi

double[][] stochRsi(Instrument instrument,
                    Period period,
                    OfferSide side,
                    IIndicators.AppliedPrice appliedPrice,
                    int timePeriod,
                    int fastKPeriod,
                    int fastDPeriod,
                    IIndicators.MaType fastDMaType,
                    long from,
                    long to)
                    throws JFException
Calculates the Stochastic Relative Strength Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
fastKPeriod - time period for building the Fast-K line
fastDPeriod - smoothing for making the Fast-D line. Usually set to 3
fastDMaType - type of moving average for Fast-D
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

stochRsi

double[][] stochRsi(Instrument instrument,
                    Period period,
                    OfferSide side,
                    IIndicators.AppliedPrice appliedPrice,
                    int timePeriod,
                    int fastKPeriod,
                    int fastDPeriod,
                    IIndicators.MaType fastDMaType,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Stochastic Relative Strength Index for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
fastKPeriod - time period for building the Fast-K line
fastDPeriod - smoothing for making the Fast-D line. Usually set to 3
fastDMaType - type of moving average for Fast-D
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

stochRsi

double[][] stochRsi(Instrument instrument,
                    Period period,
                    OfferSide side,
                    IIndicators.AppliedPrice appliedPrice,
                    int timePeriod,
                    int fastKPeriod,
                    int fastDPeriod,
                    IIndicators.MaType fastDMaType,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Stochastic Relative Strength Index for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
fastKPeriod - time period for building the Fast-K line
fastDPeriod - smoothing for making the Fast-D line. Usually set to 3
fastDMaType - type of moving average for Fast-D
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sub

double sub(Instrument instrument,
           Period period,
           OfferSide side1,
           IIndicators.AppliedPrice appliedPrice1,
           OfferSide side2,
           IIndicators.AppliedPrice appliedPrice2,
           int shift)
           throws JFException
Calculates the Vector Arithmetic Substraction for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sub

double[] sub(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             long from,
             long to)
             throws JFException
Calculates the Vector Arithmetic Substraction for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sub

double[] sub(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Vector Arithmetic Substraction for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sub

double[] sub(Instrument instrument,
             Period period,
             OfferSide side1,
             IIndicators.AppliedPrice appliedPrice1,
             OfferSide side2,
             IIndicators.AppliedPrice appliedPrice2,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Vector Arithmetic Substraction for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side1 - Bid or Ask side of the bar for the first input parameter
appliedPrice1 - type of input data for the first input parameter
side2 - Bid or Ask side of the bar for the second input parameter
appliedPrice2 - type of input data for the second input parameter
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sum

double sum(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Summation for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sum

double[] sum(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Summation for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sum

double[] sum(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Summation for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

sum

double[] sum(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Summation for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

supportResistance

double[] supportResistance(Instrument instrument,
                           Period period,
                           OfferSide side,
                           int shift)
                           throws JFException
Calculates the Support and Resistance indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

supportResistance

double[][] supportResistance(Instrument instrument,
                             Period period,
                             OfferSide side,
                             long from,
                             long to)
                             throws JFException
Calculates the Support and Resistance indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

supportResistance

double[][] supportResistance(Instrument instrument,
                             Period period,
                             OfferSide side,
                             Filter filter,
                             int numberOfCandlesBefore,
                             long time,
                             int numberOfCandlesAfter)
                             throws JFException
Calculates the Support and Resistance indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

supportResistance

double[][] supportResistance(Instrument instrument,
                             Period period,
                             OfferSide side,
                             Filter filter,
                             long from,
                             long to)
                             throws JFException
Calculates the Support and Resistance indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

t3

double t3(Instrument instrument,
          Period period,
          OfferSide side,
          IIndicators.AppliedPrice appliedPrice,
          int timePeriod,
          double vFactor,
          int shift)
          throws JFException
Calculates the Triple Exponential Moving Average for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
vFactor - volume Factor
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

t3

double[] t3(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            double vFactor,
            long from,
            long to)
            throws JFException
Calculates the Triple Exponential Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
vFactor - volume Factor
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

t3

double[] t3(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            double vFactor,
            Filter filter,
            int numberOfCandlesBefore,
            long time,
            int numberOfCandlesAfter)
            throws JFException
Calculates the Triple Exponential Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
vFactor - volume Factor
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

t3

double[] t3(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            double vFactor,
            Filter filter,
            long from,
            long to)
            throws JFException
Calculates the Triple Exponential Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
vFactor - volume Factor
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tan

double tan(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int shift)
           throws JFException
Calculates the Vector Trigonometric Tan for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tan

double[] tan(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             long from,
             long to)
             throws JFException
Calculates the Vector Trigonometric Tan for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tan

double[] tan(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Vector Trigonometric Tan for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tan

double[] tan(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Vector Trigonometric Tan for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tanh

double tanh(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int shift)
            throws JFException
Calculates the Vector Trigonometric Tanh for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tanh

double[] tanh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric Tanh for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tanh

double[] tanh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Vector Trigonometric Tanh for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tanh

double[] tanh(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Vector Trigonometric Tanh for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tbp

double[] tbp(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int shift)
             throws JFException
Calculates the Thrust Bar indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tbop

double[] tbop(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int shift)
              throws JFException
Calculates the Thrust Outside Bar indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

td_i

double[] td_i(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod,
              int shift)
              throws JFException
Calculates the Tom DeMark Indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

td_i

double[][] td_i(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                long from,
                long to)
                throws JFException
Calculates the Tom DeMark Indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

td_i

double[][] td_i(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Tom DeMark Indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

td_i

double[][] td_i(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Tom DeMark Indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

td_s

int[] td_s(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the TD Sequential indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

td_s

int[][] td_s(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the TD Sequential indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

td_s

int[][] td_s(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the TD Sequential indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

td_s

int[][] td_s(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the TD Sequential indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tema

double tema(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int shift)
            throws JFException
Calculates the Triple Exponential Moving Average indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tema

double[] tema(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the Triple Exponential Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tema

double[] tema(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the Triple Exponential Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tema

double[] tema(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the Triple Exponential Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trange

double trange(Instrument instrument,
              Period period,
              OfferSide side,
              int shift)
              throws JFException
Calculates the True Range indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trange

double[] trange(Instrument instrument,
                Period period,
                OfferSide side,
                long from,
                long to)
                throws JFException
Calculates the True Range indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trange

double[] trange(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the True Range indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trange

double[] trange(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the True Range indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trendEnv

double[] trendEnv(Instrument instrument,
                  Period period,
                  OfferSide side,
                  int timePeriod,
                  double deviation,
                  int shift)
                  throws JFException
Calculates the Trend Envelope indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
deviation - deviation
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trendEnv

double[][] trendEnv(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    double deviation,
                    long from,
                    long to)
                    throws JFException
Calculates the Trend Envelope indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
deviation - deviation
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trendEnv

double[][] trendEnv(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    double deviation,
                    Filter filter,
                    int numberOfCandlesBefore,
                    long time,
                    int numberOfCandlesAfter)
                    throws JFException
Calculates the Trend Envelope indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
deviation - deviation
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trendEnv

double[][] trendEnv(Instrument instrument,
                    Period period,
                    OfferSide side,
                    int timePeriod,
                    double deviation,
                    Filter filter,
                    long from,
                    long to)
                    throws JFException
Calculates the Trend Envelope indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
deviation - deviation
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trima

double trima(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             int shift)
             throws JFException
Calculates the Triangular Moving Average indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trima

double[] trima(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               long from,
               long to)
               throws JFException
Calculates the Triangular Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trima

double[] trima(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Triangular Moving Average indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trima

double[] trima(Instrument instrument,
               Period period,
               OfferSide side,
               IIndicators.AppliedPrice appliedPrice,
               int timePeriod,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Triangular Moving Average indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trix

double trix(Instrument instrument,
            Period period,
            OfferSide side,
            IIndicators.AppliedPrice appliedPrice,
            int timePeriod,
            int shift)
            throws JFException
Calculates the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trix

double[] trix(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              long from,
              long to)
              throws JFException
Calculates the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trix

double[] trix(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              int numberOfCandlesBefore,
              long time,
              int numberOfCandlesAfter)
              throws JFException
Calculates the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

trix

double[] trix(Instrument instrument,
              Period period,
              OfferSide side,
              IIndicators.AppliedPrice appliedPrice,
              int timePeriod,
              Filter filter,
              long from,
              long to)
              throws JFException
Calculates the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tsf

double tsf(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Time Series Forecast indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tsf

double[] tsf(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Time Series Forecast indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tsf

double[] tsf(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Time Series Forecast indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tsf

double[] tsf(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Time Series Forecast indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tvs

double tvs(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Time Segmented Volume for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tvs

double[] tvs(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Time Segmented Volume for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tvs

double[] tvs(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Time Segmented Volume for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

tvs

double[] tvs(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Time Segmented Volume for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

typPrice

double typPrice(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Typical Price for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

typPrice

double[] typPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Typical Price for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

typPrice

double[] typPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Typical Price for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

typPrice

double[] typPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Typical Price for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ultOsc

double ultOsc(Instrument instrument,
              Period period,
              OfferSide side,
              int timePeriod1,
              int timePeriod2,
              int timePeriod3,
              int shift)
              throws JFException
Calculates the Ultimate Oscillator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod1 - number of bars for 1st period
timePeriod2 - number of bars fro 2nd period
timePeriod3 - number of bars for 3rd period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ultOsc

double[] ultOsc(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod1,
                int timePeriod2,
                int timePeriod3,
                long from,
                long to)
                throws JFException
Calculates the Ultimate Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod1 - number of bars for 1st period
timePeriod2 - number of bars fro 2nd period
timePeriod3 - number of bars for 3rd period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ultOsc

double[] ultOsc(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod1,
                int timePeriod2,
                int timePeriod3,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the Ultimate Oscillator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod1 - number of bars for 1st period
timePeriod2 - number of bars fro 2nd period
timePeriod3 - number of bars for 3rd period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

ultOsc

double[] ultOsc(Instrument instrument,
                Period period,
                OfferSide side,
                int timePeriod1,
                int timePeriod2,
                int timePeriod3,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the Ultimate Oscillator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod1 - number of bars for 1st period
timePeriod2 - number of bars fro 2nd period
timePeriod3 - number of bars for 3rd period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

var

double var(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           double nbDev,
           int shift)
           throws JFException
Calculates the Variance indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
nbDev - number of deviations
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

var

double[] var(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             double nbDev,
             long from,
             long to)
             throws JFException
Calculates the Variance indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
nbDev - number of deviations
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

var

double[] var(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             double nbDev,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Variance indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
nbDev - number of deviations
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

var

double[] var(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             double nbDev,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Variance indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
nbDev - number of deviations
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

volume

double volume(Instrument instrument,
              Period period,
              OfferSide side,
              int shift)
              throws JFException
Calculates volume for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

volume

double[] volume(Instrument instrument,
                Period period,
                OfferSide side,
                long from,
                long to)
                throws JFException
Calculates volume for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

volume

double[] volume(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates volume for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

volume

double[] volume(Instrument instrument,
                Period period,
                OfferSide side,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates volume for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

volumeWAP

double volumeWAP(Instrument instrument,
                 Period period,
                 OfferSide side,
                 IIndicators.AppliedPrice appliedPrice,
                 int timePeriod,
                 int shift)
                 throws JFException
Calculates the Volume Weighted Average Price for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

volumeWAP

double[] volumeWAP(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   long from,
                   long to)
                   throws JFException
Calculates the Volume Weighted Average Price for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

volumeWAP

double[] volumeWAP(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   Filter filter,
                   int numberOfCandlesBefore,
                   long time,
                   int numberOfCandlesAfter)
                   throws JFException
Calculates the Volume Weighted Average Price for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

volumeWAP

double[] volumeWAP(Instrument instrument,
                   Period period,
                   OfferSide side,
                   IIndicators.AppliedPrice appliedPrice,
                   int timePeriod,
                   Filter filter,
                   long from,
                   long to)
                   throws JFException
Calculates the Volume Weighted Average Price for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

waddahAttar

double waddahAttar(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int shift)
                   throws JFException
Calculates the Waddah Attar Trend indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

waddahAttar

double[] waddahAttar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     long from,
                     long to)
                     throws JFException
Calculates the Waddah Attar Trend indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

waddahAttar

double[] waddahAttar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Waddah Attar Trend indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

waddahAttar

double[] waddahAttar(Instrument instrument,
                     Period period,
                     OfferSide side,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Waddah Attar Trend indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wclPrice

double wclPrice(Instrument instrument,
                Period period,
                OfferSide side,
                int shift)
                throws JFException
Calculates the Weighted Close Price indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wclPrice

double[] wclPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  long from,
                  long to)
                  throws JFException
Calculates the Weighted Close Price indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wclPrice

double[] wclPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  int numberOfCandlesBefore,
                  long time,
                  int numberOfCandlesAfter)
                  throws JFException
Calculates the Weighted Close Price indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wclPrice

double[] wclPrice(Instrument instrument,
                  Period period,
                  OfferSide side,
                  Filter filter,
                  long from,
                  long to)
                  throws JFException
Calculates the Weighted Close Price indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

willr

double willr(Instrument instrument,
             Period period,
             OfferSide side,
             int timePeriod,
             int shift)
             throws JFException
Calculates the Williams' %R indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

willr

double[] willr(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               long from,
               long to)
               throws JFException
Calculates the Williams' %R indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

willr

double[] willr(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               Filter filter,
               int numberOfCandlesBefore,
               long time,
               int numberOfCandlesAfter)
               throws JFException
Calculates the Williams' %R indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

willr

double[] willr(Instrument instrument,
               Period period,
               OfferSide side,
               int timePeriod,
               Filter filter,
               long from,
               long to)
               throws JFException
Calculates the Williams' %R indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wma

double wma(Instrument instrument,
           Period period,
           OfferSide side,
           IIndicators.AppliedPrice appliedPrice,
           int timePeriod,
           int shift)
           throws JFException
Calculates the Weighted Moving Average indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wma

double[] wma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             long from,
             long to)
             throws JFException
Calculates the Weighted Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wma

double[] wma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             int numberOfCandlesBefore,
             long time,
             int numberOfCandlesAfter)
             throws JFException
Calculates the Weighted Moving Average for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

wma

double[] wma(Instrument instrument,
             Period period,
             OfferSide side,
             IIndicators.AppliedPrice appliedPrice,
             int timePeriod,
             Filter filter,
             long from,
             long to)
             throws JFException
Calculates the Weighted Moving Average for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
appliedPrice - type of input data
timePeriod - time period
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

woodPivot

double[] woodPivot(Instrument instrument,
                   Period period,
                   OfferSide side,
                   int timePeriod,
                   int shift)
                   throws JFException
Calculates the Woodie Pivot indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

woodPivot

double[][] woodPivot(Instrument instrument,
                     Period period,
                     OfferSide side,
                     int timePeriod,
                     long from,
                     long to)
                     throws JFException
Calculates the Woodie Pivot indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

woodPivot

double[][] woodPivot(Instrument instrument,
                     Period period,
                     OfferSide side,
                     int timePeriod,
                     Filter filter,
                     int numberOfCandlesBefore,
                     long time,
                     int numberOfCandlesAfter)
                     throws JFException
Calculates the Woodie Pivot indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

woodPivot

double[][] woodPivot(Instrument instrument,
                     Period period,
                     OfferSide side,
                     int timePeriod,
                     Filter filter,
                     long from,
                     long to)
                     throws JFException
Calculates the Woodie Pivot indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
timePeriod - value form 0 to 9 that describes the period used in the indicator. Periods are as follows: ONE_MIN, FIVE_MINS, TEN_MINS, FIFTEEN_MINS, THIRTY_MINS, ONE_HOUR, FOUR_HOURS, DAILY, WEEKLY, MONTHLY
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

zigzag

double zigzag(Instrument instrument,
              Period period,
              OfferSide side,
              int extDepth,
              int extDeviation,
              int extBackstep,
              int shift)
              throws JFException
Calculates the ZigZag indicator for a bar specified with the shift parameter.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
extDepth - depth
extDeviation - deviation
extBackstep - backstep
shift - number of candles back in time staring from current bar. 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar), 2 - current bar minus 2 bars and so on
Returns:
value for the specified bar
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

zigzag

double[] zigzag(Instrument instrument,
                Period period,
                OfferSide side,
                int extDepth,
                int extDeviation,
                int extBackstep,
                long from,
                long to)
                throws JFException
Calculates the ZigZag indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
extDepth - depth
extDeviation - deviation
extBackstep - backstep
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

zigzag

double[] zigzag(Instrument instrument,
                Period period,
                OfferSide side,
                int extDepth,
                int extDeviation,
                int extBackstep,
                Filter filter,
                int numberOfCandlesBefore,
                long time,
                int numberOfCandlesAfter)
                throws JFException
Calculates the ZigZag indicator for bars specified with numberOfCandlesBefore, time and numberOfCandlesAfter parameters.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
extDepth - depth
extDeviation - deviation
extBackstep - backstep
filter - filter
numberOfCandlesBefore - how much candles to load before and including the candle with time specified in the time parameter
time - time of the last candle in the period specified with the numberOfCandlesBefore parameter or/and time of the candle prior to the first candle in the period specified with the numberOfCandlesAfter parameter
numberOfCandlesAfter - how much candles to load after (and not including) the candle with time specified in the time parameter
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation

zigzag

double[] zigzag(Instrument instrument,
                Period period,
                OfferSide side,
                int extDepth,
                int extDeviation,
                int extBackstep,
                Filter filter,
                long from,
                long to)
                throws JFException
Calculates the ZigZag indicator for ticks or bars in the specified period. For ticks bars with 1 second period are calculated first using the side specified in the side parameter, resulting data is calculated from these bars. The resulting array for ticks is an array of values for 1 second bars.

Parameters:
instrument - instrument of the bar
period - period of the bar
side - Bid or Ask side of the bar
extDepth - depth
extDeviation - deviation
extBackstep - backstep
filter - filter
from - start of the time interval for which bars or ticks should be loaded. The value must be equal to the exact starting time of the bar for the specified period. Method IHistory.getBarStart(Period, long) returns the starting time of the bar that includes the specified time
to - end time of the time interval for which bars or ticks should be loaded. This is the starting time of the last bar/tick that should be loaded
Returns:
values for the specified bars
Throws:
JFException - when parameters are not valid
See Also:
Indicator calculation


Copyright © 2012. All Rights Reserved.