IndicatorOutput

interface IndicatorOutput

Read-only view of an indicator's latest value. Strategy code and the DSL binding layer both consume this side of the interface; only the binding layer holds the Indicator write side and pushes inputs in.

null from value means "not yet computable" (insufficient history, hub gap). Callers should treat null as a hard "skip this bar" rather than coalescing to zero.

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 value(): BigDecimal?

Latest computed value, or null until isReady is true.