Interface RTIndicator
- All Superinterfaces:
Resettable
- All Known Subinterfaces:
CacheableRTIndicator, RichRTIndicator<T>
- All Known Implementing Classes:
AbstractDecorableIncrementalRTIndicator, AbstractDecorableRTIndicator, AbstractEmaRTIndicator, AbstractIncrementalRTIndicator, AbstractRTIndicator, AbstractWindowSeriesRTIndicator, AcceleratorOscillatorRTIndicator, AdaptiveFisherTransformRTIndicator, AdlRTIndicator, AdxRTIndicator, AlmaRTIndicator, AroonRTIndicator, AtomicCountRTIndicator, AtrRTIndicator, AutocorrelationRTIndicator, AwesomeOscillatorRTIndicator, BalanceOfPowerRTIndicator, BetaRTIndicator, BiFunctionRTIndicator, BollingerBandsRTIndicator, BollingerBandWidthRTIndicator, BollingerPercentBRTIndicator, BullBearPowerRTIndicator, CalmarRatioRTIndicator, CciRTIndicator, ChaikinOscillatorRTIndicator, ChandeForecastOscillatorRTIndicator, ChandeKrollStopRTIndicator, ChandelierExitRTIndicator, ChoppinessIndexRTIndicator, ClampPredicateRTIndicator, ClampRTIndicator, CmfRTIndicator, CmoRTIndicator, CompoundRTIndicator, CompoundTickerRTIndicator, ConditionalRTIndicator, ConnorsRsiRTIndicator, ConstantRTIndicator, CoppockCurveRTIndicator, CorrelationRTIndicator, CountRTIndicator, CovarianceRTIndicator, DemaRTIndicator, DetrendedPriceOscillatorRTIndicator, DistanceFromMaRTIndicator, DistanceRTIndicator, DonchianChannelRTIndicator, EaseOfMovementRTIndicator, EfficiencyRatioRTIndicator, ElderForceIndexRTIndicator, EmaRTIndicator, EnvelopesRTIndicator, EwmaVolatilityRTIndicator, FisherTransformRTIndicator, FramaRTIndicator, FundingRateRTIndicator, GainRTIndicator, GarmanKlassVolatilityRTIndicator, HmaRTIndicator, HurstExponentRTIndicator, IchimokuRTIndicator, InformationRatioRTIndicator, InstrumentGroupRTIndicator, InstrumentMapFundingRateSourceRTIndicator, InstrumentMapKlineSourceRTIndicator, InstrumentMapRTIndicator, InstrumentMapTickerSourceRTIndicator, KamaRTIndicator, KeltnerChannelRTIndicator, KlingerOscillatorRTIndicator, KnowSureThingRTIndicator, KurtosisRTIndicator, LeastSquaresMovingAverageRTIndicator, LinearRegressionSlopeRTIndicator, LossRTIndicator, MacdRTIndicator, MassIndexRTIndicator, MaxDrawdownRTIndicator, MaxRTIndicator, McGinleyDynamicRTIndicator, MfiRTIndicator, MinRTIndicator, MmaRTIndicator, MomentumRTIndicator, NatrRTIndicator, NegativeVolumeIndexRTIndicator, ObvRTIndicator, OmegaRatioRTIndicator, OnChangeRTIndicator, ParabolicSarRTIndicator, ParkinsonVolatilityRTIndicator, PercentChangePeriodRTIndicator, PercentVolatilityRTIndicator, PeriodCounterRTIndicator, PredicatePeriodCounterRTIndicator, PredicateRTIndicator, PvtRTIndicator, RateChangeRTIndicator, ReadOnlyRTIndicator, RealizedVolatilityRTIndicator, RelativeVigorIndexRTIndicator, RelativeVolatilityIndexRTIndicator, RocRTIndicator, RogersSatchellVolatilityRTIndicator, RollingPercentileRTIndicator, RoundRTIndicator, RsiRTIndicator, RTIndicatorAdapter, SharpeRatioRTIndicator, SimpleLinearRegressionRTIndicator, SkewnessRTIndicator, SmaRTIndicator, SmmaRTIndicator, SortinoRatioRTIndicator, StandardDeviationRTIndicator, StandardDeviationRTIndicator, StochasticOscillatorRTIndicator, StochasticRsiRTIndicator, SumRTIndicator, SuperTrendRTIndicator, TailRatioRTIndicator, TaLibRTIndicatorAdapter, TemaRTIndicator, TickerRTIndicator, TransformRTIndicator, TreynorRatioRTIndicator, TrixRTIndicator, TrueStrengthIndexRTIndicator, UlcerIndexRTIndicator, UltimateOscillatorRTIndicator, ValueAtRiskRTIndicator, ValueRTIndicator, VarianceRTIndicator, VarianceRTIndicator, VolatilityRTIndicator, VortexRTIndicator, VwapRTIndicator, WilliamsRRTIndicator, WindowTimeRTIndicator, WmaRTIndicator, WmaRTIndicator, YangZhangVolatilityRTIndicator, ZScoreRTIndicator
Implementations produce a numeric value that is updated incrementally as new data arrives.
Some indicators require a minimum number of data points (warmup period) before producing
meaningful values. During warmup, getValue() typically returns 0 or a partial
estimate. Use isReady() to determine whether the indicator has received enough
data to produce statistically valid output.
-
Method Summary
Modifier and TypeMethodDescriptiondefault DisplayHintHow this indicator's value should be presented — the typed view of theIndicatorMeta.DISPLAYmetadata entry.default StringgetId()This indicator's canonical type id — the strategy-IR catalog vocabulary (rsi,bollinger, …), theidof its stored-column metadata.default IndicatorMetagetMeta()The descriptive metadata this indicator carries about itself — canonical type id, parameters, display hint — kept separate from its registered name.doublegetValue()default booleanisHidden()Whether this is an internal indicator — updated every tick, but its value is not emitted as a signal (not stored to parquet/lastra, not sent over NATS/websockets).default booleanisReady()Returns whether this indicator has received enough data to produce meaningful values.default RTIndicatorro()doubleupdate(double newValue) default doubleupdate(@NonNull RTIndicator indicator) default doubleMethods inherited from interface Resettable
reset
-
Method Details
-
getValue
double getValue() -
update
double update(double newValue) -
isReady
default boolean isReady()Returns whether this indicator has received enough data to produce meaningful values.During the warmup period,
getValue()may return 0 or a partial estimate that should not be used for trading decisions. Once this method returnstrue, the indicator's output is statistically valid.The default implementation returns
truefor backward compatibility. Indicators with warmup requirements should override this method.For composite indicators (e.g. Bollinger Bands, MACD), readiness is determined by the slowest internal component.
- Returns:
trueif the indicator has completed its warmup period
-
update
-
update
-
getMeta
The descriptive metadata this indicator carries about itself — canonical type id, parameters, display hint — kept separate from its registered name. What used to be encoded in name prefixes/suffixes (rsi14%,blgr13_2Upper) rides here as key=value entries the serialization layer can attach per stored column.- Returns:
- the metadata, never
null;IndicatorMeta.EMPTYwhen none was set
-
getId
This indicator's canonical type id — the strategy-IR catalog vocabulary (rsi,bollinger, …), theidof its stored-column metadata.Defaults to the class name with its
RTIndicatorsuffix stripped and first letter lower-cased (IndicatorMeta.deriveId(Class)), so every indicator self-reports an id with no per-factory wiring. An indicator whose canonical id differs from that derivation — a renamed type, or one registered wrapped in a generic decorator — carries an explicitIndicatorMeta.IDentry, which wins.- Returns:
- the canonical id, never
null
-
isHidden
default boolean isHidden()Whether this is an internal indicator — updated every tick, but its value is not emitted as a signal (not stored to parquet/lastra, not sent over NATS/websockets). The visibility ridesIndicatorMeta, so the emission/storage boundary reads it here instead of parsing the"_"name prefix that marks the internal namespace.- Returns:
trueif internal (not emitted);false(the default) if public
-
getDisplayHint
How this indicator's value should be presented — the typed view of theIndicatorMeta.DISPLAYmetadata entry. Defaults toDisplayHint.ABSOLUTE; the fluent builder setsDisplayHint.PERCENTon the indicators that used to carry a"%"name suffix. Read by the charting/serialization layer instead of parsing the name.- Returns:
- the display hint, never
null
-
ro
-