Interface TaLibRTIndicatorAdapter.TaLibFunction

Enclosing class:
TaLibRTIndicatorAdapter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TaLibRTIndicatorAdapter.TaLibFunction
Functional interface wrapping a TA-Lib batch computation.

Implementations call the appropriate TA-Lib Core method and return the last computed value from the output array.

  • Method Summary

    Modifier and Type
    Method
    Description
    double
    compute(double[] prices, int endIdx, com.tictactec.ta.lib.MInteger outBeg, com.tictactec.ta.lib.MInteger outNbElement, double[] outReal)
    Computes the indicator over the given price buffer.
  • Method Details

    • compute

      double compute(double[] prices, int endIdx, com.tictactec.ta.lib.MInteger outBeg, com.tictactec.ta.lib.MInteger outNbElement, double[] outReal)
      Computes the indicator over the given price buffer.
      Parameters:
      prices - the accumulated price data
      endIdx - the last valid index in the prices array
      outBeg - output: index of the first valid output element
      outNbElement - output: number of valid output elements
      outReal - output array for results
      Returns:
      the last computed indicator value