Class EmaRTIndicator
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.core.AbstractEmaRTIndicator
com.wualabs.qtsurfer.engine.indicators.averages.EmaRTIndicator
- All Implemented Interfaces:
ClockAware, Resettable, CacheableRTIndicator, RTIndicator
EMA RT Indicator
-
Constructor Summary
ConstructorsConstructorDescriptionEmaRTIndicator(int periods) EmaRTIndicator(int periods, RTIndicator indicator) -
Method Summary
Methods inherited from class AbstractEmaRTIndicator
nextValueMethods inherited from class AbstractDecorableIncrementalRTIndicator
getIndicator, reset, setClockSupplier, updateMethods inherited from class AbstractIncrementalRTIndicator
getLastUpdateValue, getPeriodCycles, getPeriods, getPrevValue, initValue, isPeriodic, isReady, prevNextValue, setPeriods, tickValueMethods inherited from class AbstractRTIndicator
equals, getDisplayHint, getMeta, getValue, hashCode, hide, isPoison, setValue, toString, toString, withDisplayHint, withMetaMethods inherited from interface Resettable
reset
-
Constructor Details
-
EmaRTIndicator
public EmaRTIndicator(int periods) -
EmaRTIndicator
-
-
Method Details
-
signature
Periods and source chain — the smoothing factor is2 / (periods + 1), so periods alone pins the arithmetic.- Specified by:
signaturein interfaceCacheableRTIndicator- Returns:
- the identity, or
nullwhen this instance cannot state one (an unidentifiable source, a mode the implementation does not model) and must therefore compute live
-