Indicator

Write side of IndicatorOutput — fed by the engine's binding layer on each tick or candle close. Implementations are stateful and single-threaded; the engine drives one indicator from one stream alias.

Concrete catalog entries live under com.qkt.indicators.catalog and com.qkt.indicators.range; the DSL surface is the IndicatorRegistry.

Inheritors

Properties

Link copied to clipboard
abstract val isReady: Boolean

True once the indicator has received at least warmupBars samples.

Link copied to clipboard
abstract val warmupBars: Int

Number of inputs the indicator must observe before value returns non-null.

Functions

Link copied to clipboard
Link copied to clipboard
infix fun IndicatorOutput.gt(threshold: BigDecimal): Rule
Link copied to clipboard
infix fun IndicatorOutput.lt(threshold: BigDecimal): Rule
Link copied to clipboard
abstract fun update(input: TIn)

Feed one input to the indicator. Effects on value / isReady are immediate.

Link copied to clipboard
abstract fun value(): BigDecimal?

Latest computed value, or null until isReady is true.