IndicatorSpec

data class IndicatorSpec(val name: String, val inputKind: IndicatorInput, val arity: Int, val seriesCount: Int = 1, val requiresVolume: Boolean = false, val factory: (List<BigDecimal>) -> IndicatorOutput)

One registered DSL indicator: its uppercase name, the inputKind it consumes, its call arity including the series arguments, and the factory that builds a runtime instance from the constant arguments.

Constructors

Link copied to clipboard
constructor(name: String, inputKind: IndicatorInput, arity: Int, seriesCount: Int = 1, requiresVolume: Boolean = false, factory: (List<BigDecimal>) -> IndicatorOutput)

Properties

Link copied to clipboard
val arity: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val requiresVolume: Boolean = false

True for volume-weighted indicators (VWAP, OBV) — the bound feed must supply volume.

Link copied to clipboard
val seriesCount: Int = 1

Number of leading series args (1 for normal indicators, 2 for two-series like CORRELATION).