Class BinaryOperation<A,B,R>
java.lang.Object
trade.invision.indicators.indicators.Indicator<R>
trade.invision.indicators.indicators.operation.binary.BinaryOperation<A,B,R>
- Type Parameters:
A- the first input typeB- the second input typeR- the result type
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class trade.invision.indicators.indicators.Indicator
Indicator.CacheSeries -
Field Summary
Fields inherited from class trade.invision.indicators.indicators.Indicator
cachedAddCallCount, cachedIndex, cachedValue, cacheSeries, minimumStableIndex, series -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBinaryOperation(BiFunction<A, B, R> operator, Indicator<A> firstOperand, Indicator<B> secondOperand) -
Method Summary
Modifier and TypeMethodDescriptionstatic <A,B, R> BinaryOperation <A, B, R> binaryOperation(BiFunction<A, B, R> operator, Indicator<A> firstOperand, Indicator<B> secondOperand) Gets aBinaryOperation.protected Rcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.Methods inherited from class trade.invision.indicators.indicators.Indicator
caching, getMinimumStableIndex, getSeries, getValue, isCaching, numOf, numOf, numOf, numOf, numOfEight, numOfFive, numOfFour, numOfHalf, numOfHundred, numOfHundredth, numOfNegativeOne, numOfNine, numOfOne, numOfSeven, numOfSix, numOfTen, numOfTenth, numOfThousand, numOfThousandth, numOfThree, numOfTwo, numOfZero, purgeCache
-
Constructor Details
-
BinaryOperation
-
-
Method Details
-
binaryOperation
public static <A,B, BinaryOperation<A,R> B, binaryOperationR> (BiFunction<A, B, R> operator, Indicator<A> firstOperand, Indicator<B> secondOperand) Gets aBinaryOperation.- Parameters:
operator- theBiFunctionfirstOperand- the firstIndicatoroperandsecondOperand- the secondIndicatoroperand
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-