Class CompoundTickerRTIndicator
java.lang.Object
com.wualabs.qtsurfer.engine.indicators.core.AbstractRTIndicator
com.wualabs.qtsurfer.engine.indicators.core.AbstractIncrementalRTIndicator
com.wualabs.qtsurfer.engine.indicators.core.AbstractDecorableIncrementalRTIndicator
com.wualabs.qtsurfer.engine.indicators.helpers.TickerRTIndicator
com.wualabs.qtsurfer.engine.indicators.helpers.group.CompoundTickerRTIndicator
- All Implemented Interfaces:
ClockAware, Resettable, CacheableRTIndicator, RichRTIndicator<MarketSnapshot>, RTIndicator
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundTickerRTIndicator(@NonNull TickerRTIndicator tickerRTIndicatorPrimary, @NonNull TickerRTIndicator tickerRTIndicatorSecondary) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue()voidreset()voidsetClockSupplier(Supplier<Clock> clockSupplier) doubleupdateFrom(@NonNull MarketSnapshot snap) Updates the indicator from a full market snapshot.Methods inherited from class TickerRTIndicator
backtestEnabled, isBacktestEnabled, signatureMethods inherited from class AbstractDecorableIncrementalRTIndicator
getIndicator, nextValue, updateMethods inherited from class AbstractIncrementalRTIndicator
getLastUpdateValue, getPeriodCycles, getPeriods, getPrevValue, initValue, isPeriodic, isReady, prevNextValue, setPeriods, tickValueMethods inherited from class AbstractRTIndicator
equals, getDisplayHint, getMeta, hashCode, hide, isPoison, setValue, toString, toString, withDisplayHint, withMetaMethods inherited from interface RichRTIndicator
requiresBarDataMethods inherited from interface RTIndicator
getDisplayHint, getId, getMeta, isHidden, isReady, ro, update, update, update
-
Constructor Details
-
CompoundTickerRTIndicator
public CompoundTickerRTIndicator(@NonNull @NonNull TickerRTIndicator tickerRTIndicatorPrimary, @NonNull @NonNull TickerRTIndicator tickerRTIndicatorSecondary)
-
-
Method Details
-
setClockSupplier
- Specified by:
setClockSupplierin interfaceClockAware- Overrides:
setClockSupplierin classAbstractDecorableIncrementalRTIndicator
-
reset
public void reset()- Specified by:
resetin interfaceResettable- Overrides:
resetin classAbstractDecorableIncrementalRTIndicator
-
updateFrom
Description copied from interface:RichRTIndicatorUpdates the indicator from a full market snapshot. Returns the new value so callers can chain (matchingRTIndicator.update(double)'s contract).- Specified by:
updateFromin interfaceRichRTIndicator<MarketSnapshot>- Overrides:
updateFromin classTickerRTIndicator
-
getValue
public double getValue()- Specified by:
getValuein interfaceRTIndicator- Overrides:
getValuein classAbstractRTIndicator
-