Class WithDateTimeField
java.lang.Object
trade.invision.indicators.indicators.Indicator<Instant>
trade.invision.indicators.indicators.instant.WithDateTimeField
WithDateTimeField is an Instant Indicator to provide the base with the
ChronoField of the reference.-
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
ConstructorsModifierConstructorDescriptionprotectedWithDateTimeField(Indicator<Instant> base, Indicator<Instant> reference, ChronoField field, ZoneId zoneId) -
Method Summary
Modifier and TypeMethodDescriptionprotected Instantcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static WithDateTimeFieldwithDateTimeField(Indicator<Instant> base, Indicator<Instant> reference, ChronoField field) CallswithDateTimeField(Indicator, Indicator, ChronoField, ZoneId)withzoneIdset toZoneOffset.UTC.static WithDateTimeFieldwithDateTimeField(Indicator<Instant> base, Indicator<Instant> reference, ChronoField field, ZoneId zoneId) Gets aWithDateTimeField.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
-
WithDateTimeField
-
-
Method Details
-
withDateTimeField
public static WithDateTimeField withDateTimeField(Indicator<Instant> base, Indicator<Instant> reference, ChronoField field) CallswithDateTimeField(Indicator, Indicator, ChronoField, ZoneId)withzoneIdset toZoneOffset.UTC. -
withDateTimeField
public static WithDateTimeField withDateTimeField(Indicator<Instant> base, Indicator<Instant> reference, ChronoField field, ZoneId zoneId) Gets aWithDateTimeField.- Parameters:
base- the baseIndicatorreference- the referenceIndicatorfield- theChronoFieldzoneId- theZoneIdto perform the operation in
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-