Class TernaryOperation<A,B,C,R>
java.lang.Object
trade.invision.indicators.indicators.Indicator<R>
trade.invision.indicators.indicators.operation.ternary.TernaryOperation<A,B,C,R>
- Type Parameters:
A- the first input typeB- the second input typeC- the third 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Rcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static <A,B, C, R>
TernaryOperation<A, B, C, R> ternaryOperation(TriFunction<A, B, C, R> operator, Indicator<A> firstOperand, Indicator<B> secondOperand, Indicator<C> thirdOperand) Gets aTernaryOperation.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
-
TernaryOperation
-
-
Method Details
-
ternaryOperation
public static <A,B, TernaryOperation<A,C, R> B, ternaryOperationC, R> (TriFunction<A, B, C, R> operator, Indicator<A> firstOperand, Indicator<B> secondOperand, Indicator<C> thirdOperand) Gets aTernaryOperation.- Parameters:
operator- theTriFunctionfirstOperand- the firstIndicatoroperandsecondOperand- the secondIndicatoroperandthirdOperand- the thirdIndicatoroperand
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-