types.RuntimeHistogram#
Describes a histogram series in RuntimeOutput.histograms.
SYNTAX#
interface RuntimeHistogram { kind: 'histogram'; name: string; values: (number | null)[]; color: string; negativeColor?: string; baseValue: number; }ARGUMENTS#
kind('histogram') — Discriminator — always the stringhistogram.name(string) — Series identifier; unique within the indicator's histograms array.values((number | null)[]) — Per-bar values. Length equalscandles.length; null for gap bars.color(string) — Bar color whenvalue >= baseValue.negativeColor(string) — Optional. Bar color whenvalue < baseValue. Falls back tocolorwhen unset.baseValue(number) — Reference baseline. Default 0.
RETURNS#
Type definition.
EXAMPLE#
{ kind: 'histogram', name: 'macd-hist', values: histValues, color: '#26a69a', negativeColor: '#ef5350', baseValue: 0 }