Class EpochOffset
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.instant.EpochOffset
EpochOffset is a Num Indicator to provide the Unix epoch offset of an Instant in a
given ChronoUnit. A positive value will be returned if the Instant is after the Unix epoch time. A
negative value will be returned if the Instant is before the Unix epoch time. The Unix epoch time is
1970-01-01T00:00:00Z.- 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
ConstructorsModifierConstructorDescriptionprotectedEpochOffset(Indicator<Instant> indicator, ChronoUnit unit) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static EpochOffsetepochOffset(Indicator<Instant> indicator, ChronoUnit unit) Gets aEpochOffset.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
-
EpochOffset
-
-
Method Details
-
epochOffset
Gets aEpochOffset.- Parameters:
indicator- theIndicatorunit- theChronoUnit
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-