defineIndicatorPlugin
Documentation / @elitechart/core / defineIndicatorPlugin
Defined in: plugin/helpers.ts:31
Wrap a pure (bars, params) => output function as an
IndicatorPlugin. Targets interfaceVersion: '1' automatically.
Type Parameters
Params
Params
Output
Output extends IndicatorOutput
Parameters
spec
compute
(bars, params) => Output
defaultParams
Params
id
string
inputs
readonly IndicatorInputSpec[]
name
string
pane
"price" | "separate"
Returns
IndicatorPlugin<Params, Output>