{"entrypoint":"@insiderfinance/totalfinance/technical-analysis/chart-types","package":"@insiderfinance/totalfinance","domain":"technical-analysis","stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","url":"/reference/totalfinance/technical-analysis/chart-types","exports":[{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#AggregateStream","name":"AggregateStream","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#AggregateStream","signature":"/** A streaming aggregator: each input bar yields zero or more completed output units. */\nexport interface AggregateStream<Out> {\n    next(bar: BarInput): Out[];\n    toJSON(): TechnicalAnalysisSnapshot;\n}","description":"A streaming aggregator: each input bar yields zero or more completed output units.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"next","type":"(bar: BarInput) => Out[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar)","type":"BarInput","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).open","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).volume","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#BarAggregator","name":"BarAggregator","kind":"class","url":"/reference/totalfinance/technical-analysis/chart-types#BarAggregator","signature":"export declare class BarAggregator implements AggregateStream<BarInput> {\n  constructor(parameters: { kind: string; shouldClose: CloseRule; });\n  flush(): BarInput[];\n  next(bar: BarInput): BarInput[];\n  restore(snapshot: TechnicalAnalysisSnapshot): void;\n  toJSON(): TechnicalAnalysisSnapshot;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(parameters)","type":"{ kind: string; shouldClose: CloseRule; }","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).shouldClose","type":"CloseRule","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"flush","type":"() => BarInput[]","description":"Emit the final partial bar (if any) — used by the batch wrappers to flush.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar)","type":"BarInput","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).open","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).volume","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"restore","type":"(snapshot: TechnicalAnalysisSnapshot) => void","description":"Restore this aggregator's forming-bar state from a snapshot produced by `toJSON()` (the close\nrule is a function, so rebuild the aggregator via its factory — e.g. `aggregators.volume(500)` —\nthen restore). Validates the schema version and the snapshot `kind`, and deep-copies the state,\nso restoring twice from one snapshot yields independent aggregators.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"restore(snapshot)","type":"TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"restore(snapshot).kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"restore(snapshot).schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"restore(snapshot).state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.flush","type":"() => BarInput[]","description":"Emit the final partial bar (if any) — used by the batch wrappers to flush.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.restore","type":"(snapshot: TechnicalAnalysisSnapshot) => void","description":"Restore this aggregator's forming-bar state from a snapshot produced by `toJSON()` (the close\nrule is a function, so rebuild the aggregator via its factory — e.g. `aggregators.volume(500)` —\nthen restore). Validates the schema version and the snapshot `kind`, and deep-copies the state,\nso restoring twice from one snapshot yields independent aggregators.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#CountBarParameters","name":"CountBarParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#CountBarParameters","signature":"export interface CountBarParameters {\n    count: number;\n    flush?: boolean;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"count","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"flush","type":"boolean","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#DollarBarParameters","name":"DollarBarParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#DollarBarParameters","signature":"export interface DollarBarParameters {\n    dollar: number;\n    flush?: boolean;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"dollar","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"flush","type":"boolean","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#HeikinAshiBar","name":"HeikinAshiBar","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#HeikinAshiBar","signature":"// ---- Heikin-Ashi (smoothed candles; also re-exported by chart-types) ----\nexport interface HeikinAshiBar {\n    open: number;\n    high: number;\n    low: number;\n    close: number;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"open","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#InformationBarAggregator","name":"InformationBarAggregator","kind":"class","url":"/reference/totalfinance/technical-analysis/chart-types#InformationBarAggregator","signature":"export declare class InformationBarAggregator implements AggregateStream<BarInput>, FlushableAgg {\n  constructor(parameters: { kind: string; mode: InfoMode; threshold: number; weight: InfoWeight; });\n  static fromJSON(snapshot: TechnicalAnalysisSnapshot): InformationBarAggregator;\n  flush(): BarInput[];\n  next(bar: BarInput): BarInput[];\n  toJSON(): TechnicalAnalysisSnapshot;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(parameters)","type":"{ kind: string; mode: InfoMode; threshold: number; weight: InfoWeight; }","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).mode","type":"'imbalance' | 'run'","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).threshold","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).weight","type":"'tick' | 'volume' | 'dollar'","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON","type":"(snapshot: TechnicalAnalysisSnapshot) => InformationBarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot)","type":"TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar)","type":"BarInput","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).open","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).volume","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"return.flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#InformationBarParameters","name":"InformationBarParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#InformationBarParameters","signature":"export interface InformationBarParameters {\n    /** Imbalance/run magnitude that closes a bar. */\n    threshold: number;\n    /** Emit the trailing partial bar. Default true. */\n    flush?: boolean;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"threshold","type":"number","description":"Imbalance/run magnitude that closes a bar.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#KagiParameters","name":"KagiParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#KagiParameters","signature":"// ───────────────────────── Kagi (batch) ─────────────────────────\nexport interface KagiParameters {\n    /** Reversal amount. Absolute price by default, or a percent of price if `percent` is true. */\n    reversal: number;\n    percent?: boolean;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"percent","type":"boolean","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"reversal","type":"number","description":"Reversal amount. Absolute price by default, or a percent of price if `percent` is true.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#KagiSegment","name":"KagiSegment","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#KagiSegment","signature":"export interface KagiSegment {\n    from: number;\n    to: number;\n    direction: 1 | -1;\n    /** Yang (thick) once price rises above the prior shoulder; yin (thin) below the prior waist. */\n    line: 'yang' | 'yin';\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"direction","type":"1 | -1","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"from","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"line","type":"'yang' | 'yin'","description":"Yang (thick) once price rises above the prior shoulder; yin (thin) below the prior waist.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"to","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#LineBreakBar","name":"LineBreakBar","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#LineBreakBar","signature":"export interface LineBreakBar {\n    open: number;\n    close: number;\n    direction: 1 | -1;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"direction","type":"1 | -1","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"open","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#LineBreakParameters","name":"LineBreakParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#LineBreakParameters","signature":"// ───────────────────────── Three-Line Break ─────────────────────────\nexport interface LineBreakParameters {\n    lines?: number;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"lines","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#LineBreakStream","name":"LineBreakStream","kind":"class","url":"/reference/totalfinance/technical-analysis/chart-types#LineBreakStream","signature":"export declare class LineBreakStream implements AggregateStream<LineBreakBar> {\n  constructor(count: number);\n  static fromJSON(snapshot: TechnicalAnalysisSnapshot): LineBreakStream;\n  next(bar: BarInput): LineBreakBar[];\n  toJSON(): TechnicalAnalysisSnapshot;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(count)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON","type":"(snapshot: TechnicalAnalysisSnapshot) => LineBreakStream","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.next","type":"(bar: BarInput) => LineBreakBar[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot)","type":"TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next","type":"(bar: BarInput) => LineBreakBar[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar)","type":"BarInput","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).open","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).volume","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"return.next","type":"(bar: BarInput) => LineBreakBar[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#PnfColumn","name":"PnfColumn","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#PnfColumn","signature":"export interface PnfColumn {\n    kind: 'X' | 'O';\n    low: number;\n    high: number;\n    boxes: number;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"boxes","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"kind","type":"'X' | 'O'","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#PnfParameters","name":"PnfParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#PnfParameters","signature":"// ───────────────────────── Point & Figure (batch) ─────────────────────────\nexport interface PnfParameters {\n    boxSize: number;\n    reversal?: number;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"boxSize","type":"number","description":"","optional":false,"defaultValue":null,"unit":"count (integer)"},{"name":"reversal","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#RangeBarParameters","name":"RangeBarParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#RangeBarParameters","signature":"export interface RangeBarParameters {\n    size: number;\n    /** Emit the trailing partial bar. Default true. */\n    flush?: boolean;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"size","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#RenkoBrick","name":"RenkoBrick","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#RenkoBrick","signature":"export interface RenkoBrick {\n    open: number;\n    close: number;\n    direction: 1 | -1;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"direction","type":"1 | -1","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"open","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#RenkoParameters","name":"RenkoParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#RenkoParameters","signature":"// ───────────────────────── Renko ─────────────────────────\nexport interface RenkoParameters {\n    brickSize: number;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"brickSize","type":"number","description":"","optional":false,"defaultValue":null,"unit":"count (integer)"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#RenkoStream","name":"RenkoStream","kind":"class","url":"/reference/totalfinance/technical-analysis/chart-types#RenkoStream","signature":"export declare class RenkoStream implements AggregateStream<RenkoBrick> {\n  constructor(brick: number);\n  static fromJSON(snapshot: TechnicalAnalysisSnapshot): RenkoStream;\n  next(bar: BarInput): RenkoBrick[];\n  toJSON(): TechnicalAnalysisSnapshot;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(brick)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON","type":"(snapshot: TechnicalAnalysisSnapshot) => RenkoStream","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.next","type":"(bar: BarInput) => RenkoBrick[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot)","type":"TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next","type":"(bar: BarInput) => RenkoBrick[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar)","type":"BarInput","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).open","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"next(bar).volume","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"return.next","type":"(bar: BarInput) => RenkoBrick[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"toJSON().return.state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#VolumeBarParameters","name":"VolumeBarParameters","kind":"interface","url":"/reference/totalfinance/technical-analysis/chart-types#VolumeBarParameters","signature":"export interface VolumeBarParameters {\n    volume: number;\n    flush?: boolean;\n}","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"flush","type":"boolean","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"volume","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#aggregators","name":"aggregators","kind":"value","url":"/reference/totalfinance/technical-analysis/chart-types#aggregators","signature":"export declare const aggregators: { readonly dollar: (threshold: number) => BarAggregator; readonly dollarImbalance: (threshold: number) => InformationBarAggregator; readonly dollarRun: (threshold: number) => InformationBarAggregator; readonly imbalance: (threshold: number) => InformationBarAggregator; readonly range: (size: number) => BarAggregator; readonly run: (threshold: number) => InformationBarAggregator; readonly tick: (count: number) => BarAggregator; readonly volume: (threshold: number) => BarAggregator; readonly volumeImbalance: (threshold: number) => InformationBarAggregator; readonly volumeRun: (threshold: number) => InformationBarAggregator; };","description":"Streaming aggregators for live bar construction (each returns completed bars per input bar).","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"dollar","type":"(threshold: number) => BarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollar().return.flush","type":"() => BarInput[]","description":"Emit the final partial bar (if any) — used by the batch wrappers to flush.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollar().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollar().return.restore","type":"(snapshot: TechnicalAnalysisSnapshot) => void","description":"Restore this aggregator's forming-bar state from a snapshot produced by `toJSON()` (the close\nrule is a function, so rebuild the aggregator via its factory — e.g. `aggregators.volume(500)` —\nthen restore). Validates the schema version and the snapshot `kind`, and deep-copies the state,\nso restoring twice from one snapshot yields independent aggregators.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollar().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollar(threshold)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarImbalance","type":"(threshold: number) => InformationBarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarImbalance().return.flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarImbalance().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarImbalance().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarImbalance(threshold)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarRun","type":"(threshold: number) => InformationBarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarRun().return.flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarRun().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarRun().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"dollarRun(threshold)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"imbalance","type":"(threshold: number) => InformationBarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"imbalance().return.flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"imbalance().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"imbalance().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"imbalance(threshold)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"range","type":"(size: number) => BarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"range().return.flush","type":"() => BarInput[]","description":"Emit the final partial bar (if any) — used by the batch wrappers to flush.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"range().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"range().return.restore","type":"(snapshot: TechnicalAnalysisSnapshot) => void","description":"Restore this aggregator's forming-bar state from a snapshot produced by `toJSON()` (the close\nrule is a function, so rebuild the aggregator via its factory — e.g. `aggregators.volume(500)` —\nthen restore). Validates the schema version and the snapshot `kind`, and deep-copies the state,\nso restoring twice from one snapshot yields independent aggregators.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"range().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"range(size)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"run","type":"(threshold: number) => InformationBarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"run().return.flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"run().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"run().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"run(threshold)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"tick","type":"(count: number) => BarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"tick().return.flush","type":"() => BarInput[]","description":"Emit the final partial bar (if any) — used by the batch wrappers to flush.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"tick().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"tick().return.restore","type":"(snapshot: TechnicalAnalysisSnapshot) => void","description":"Restore this aggregator's forming-bar state from a snapshot produced by `toJSON()` (the close\nrule is a function, so rebuild the aggregator via its factory — e.g. `aggregators.volume(500)` —\nthen restore). Validates the schema version and the snapshot `kind`, and deep-copies the state,\nso restoring twice from one snapshot yields independent aggregators.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"tick().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"tick(count)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volume","type":"(threshold: number) => BarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volume().return.flush","type":"() => BarInput[]","description":"Emit the final partial bar (if any) — used by the batch wrappers to flush.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volume().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volume().return.restore","type":"(snapshot: TechnicalAnalysisSnapshot) => void","description":"Restore this aggregator's forming-bar state from a snapshot produced by `toJSON()` (the close\nrule is a function, so rebuild the aggregator via its factory — e.g. `aggregators.volume(500)` —\nthen restore). Validates the schema version and the snapshot `kind`, and deep-copies the state,\nso restoring twice from one snapshot yields independent aggregators.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volume().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volume(threshold)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeImbalance","type":"(threshold: number) => InformationBarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeImbalance().return.flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeImbalance().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeImbalance().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeImbalance(threshold)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeRun","type":"(threshold: number) => InformationBarAggregator","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeRun().return.flush","type":"() => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeRun().return.next","type":"(bar: BarInput) => BarInput[]","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeRun().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"volumeRun(threshold)","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#dollarBars","name":"dollarBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#dollarBars","signature":"export declare function dollarBars(bars: ArrayLike<BarInput>, parameters: DollarBarParameters): BarInput[];","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"DollarBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).dollar","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#dollarImbalanceBars","name":"dollarImbalanceBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#dollarImbalanceBars","signature":"export declare function dollarImbalanceBars(bars: ArrayLike<BarInput>, parameters: InformationBarParameters): BarInput[];","description":"Dollar imbalance bars — signed dollar value `|Σ sign(Δclose)·close·volume|`.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"InformationBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).threshold","type":"number","description":"Imbalance/run magnitude that closes a bar.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#dollarRunBars","name":"dollarRunBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#dollarRunBars","signature":"export declare function dollarRunBars(bars: ArrayLike<BarInput>, parameters: InformationBarParameters): BarInput[];","description":"Dollar run bars — close on the larger one-sided dollar run.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"InformationBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).threshold","type":"number","description":"Imbalance/run magnitude that closes a bar.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#heikinAshi","name":"heikinAshi","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#heikinAshi","signature":"export declare const heikinAshi: import('@insiderfinance/totalfinance/technical-analysis').Indicator<Empty, BarInput, HeikinAshiBar>;","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(input)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"Empty | undefined","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain","type":"(input: ArrayLike<BarInput>, parameters?: Empty | undefined) => import('@insiderfinance/totalfinance/technical-analysis').TechnicalAnalysisExplain<HeikinAshiBar>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.assumptions","type":"import('@insiderfinance/totalfinance/core').Assumptions<import('@insiderfinance/totalfinance/technical-analysis').TechnicalAnalysisAssumptionExtras>","description":"Every applied convention, echoed back.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics","type":"import('@insiderfinance/totalfinance/core').Diagnostics & { warmup: number; }","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.autoReason","type":"string","description":"When a meta-engine (e.g. `engines.auto()`) selected a delegate, this is a one-sentence,\nhuman-readable explanation of WHY that delegate was chosen (`engine` then names the delegate).\nAbsent when no auto-selection took place.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.converged","type":"boolean","description":"Whether an iterative procedure converged. `false` means the value is not trustworthy.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.decomposition","type":"Record<string, number>","description":"Named intermediate quantities the value decomposes into — a par spread's protection leg and\nrisky annuity, a forward variance's near/far legs. The H-series explain paths disclose their\narithmetic here so a caller can audit the ratio, not just receive it (3B.3).","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.engine","type":"string","description":"Pricing/solver engine name, e.g. `black-scholes-merton`.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.finiteDifferenceBumps","type":"Record<string, number>","description":"Finite-difference engines: the ACTUAL bump sizes used for FD Greeks (spec P2.3) — adaptive\nnear the vol/time boundaries, so the caller can see exactly what was differenced.\nKeys: `spotStep`, `volatilityStep`, `timeStepYears`, `rateStep`, and — extended Greeks only —\n`dividendYieldStep`. Each is the actual step differenced, in the unit of the coordinate it\nbumps. (This doc named the retired `hS`/`hSig`/`hT`/`hR`/`hQ` keys for one release after the\nemit sites had moved to the semantic names, so a caller following it read `undefined`.)","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.iterations","type":"number","description":"Iteration count for iterative methods.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.method","type":"string","description":"Numerical method, e.g. `closed-form`, `brent`, `finite-difference`.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.selection","type":"import('@insiderfinance/totalfinance/core/pricing').SelectionReport","description":"The structured engine-selection report (Gate C, `@insiderfinance/totalfinance/core/pricing`): who was selected,\nwhy, and — for automatic selection — every candidate considered with its verdict. This is the\nmachine-readable superset of `engine` + `autoReason` (which remain for compatibility);\n`selected.name` always agrees with `engine` when both are present.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.timingMs","type":"number","description":"Wall-clock timing in milliseconds, when measured.","optional":true,"defaultValue":null,"unit":"milliseconds"},{"name":"explain().return.diagnostics.warmup","type":"number","description":"Series facades: number of leading output slots that are warmup sentinels (null/NaN) while the\ncomputation seeds. Equals the input length when the indicator never emitted.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.diagnostics.warnings","type":"import('@insiderfinance/totalfinance/core').QuantWarning[]","description":"Structured warnings; always present (possibly empty).","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.provenance","type":"import('@insiderfinance/totalfinance/core').Provenance","description":"Optional data lineage when the inputs came from a provider.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"explain().return.value","type":"HeikinAshiBar[]","description":"The computed value. Never `NaN` or `±Infinity`: a value the model cannot produce is `null`\nbeside a diagnostic that says why (Law 7 — a warning never licenses a non-finite number).","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"explain(input)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"explain(parameters)","type":"Empty | undefined","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON","type":"(snapshot: TechnicalAnalysisSnapshot) => import('@insiderfinance/totalfinance/technical-analysis').LiveStream<BarInput, HeikinAshiBar>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.next","type":"(input: BarInput) => HeikinAshiBar | null","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.peek","type":"(input: BarInput) => HeikinAshiBar | null","description":"The value that WOULD result from `next(input)` applied to the committed state, WITHOUT committing\nit. Call it repeatedly with the forming bar's evolving value; call `next(input)` once at bar close\nto commit. Between commits the committed state is untouched, so a live chart never repaints its\nclosed bars. The default cost is O(snapshot) per call (clone-and-apply); indicators may override\nwith an O(1) form later.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.value","type":"HeikinAshiBar | null","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.value.close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.value.high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.value.low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON().return.value.open","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot)","type":"TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).kind","type":"string","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).schemaVersion","type":"number","description":"Schema version, stamped at the serialization boundary by {@link snapshotOf}.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"fromJSON(snapshot).state","type":"Record<string, unknown>","description":"Indicator-private stream state. Round-trip it; never read into it.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream","type":"(parameters?: Empty | undefined) => import('@insiderfinance/totalfinance/technical-analysis').LiveStream<BarInput, HeikinAshiBar>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream().return.next","type":"(input: BarInput) => HeikinAshiBar | null","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream().return.peek","type":"(input: BarInput) => HeikinAshiBar | null","description":"The value that WOULD result from `next(input)` applied to the committed state, WITHOUT committing\nit. Call it repeatedly with the forming bar's evolving value; call `next(input)` once at bar close\nto commit. Between commits the committed state is untouched, so a live chart never repaints its\nclosed bars. The default cost is O(snapshot) per call (clone-and-apply); indicators may override\nwith an O(1) form later.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream().return.toJSON","type":"() => TechnicalAnalysisSnapshot","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream().return.value","type":"HeikinAshiBar | null","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream().return.value.close","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream().return.value.high","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream().return.value.low","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream().return.value.open","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"stream(parameters)","type":"Empty | undefined","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#imbalanceBars","name":"imbalanceBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#imbalanceBars","signature":"export declare function imbalanceBars(bars: ArrayLike<BarInput>, parameters: InformationBarParameters): BarInput[];","description":"Tick imbalance bars — close on `|Σ sign(Δclose)|`.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"InformationBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).threshold","type":"number","description":"Imbalance/run magnitude that closes a bar.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#kagi","name":"kagi","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#kagi","signature":"export declare function kagi(bars: ArrayLike<BarInput>, parameters: KagiParameters): KagiSegment[];","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"KagiParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).percent","type":"boolean","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).reversal","type":"number","description":"Reversal amount. Absolute price by default, or a percent of price if `percent` is true.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#lineBreak","name":"lineBreak","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#lineBreak","signature":"export declare function lineBreak(bars: ArrayLike<BarInput>, parameters?: LineBreakParameters): LineBreakBar[];","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"LineBreakParameters","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).lines","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#pointAndFigure","name":"pointAndFigure","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#pointAndFigure","signature":"export declare function pointAndFigure(bars: ArrayLike<BarInput>, parameters: PnfParameters): PnfColumn[];","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"PnfParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).boxSize","type":"number","description":"","optional":false,"defaultValue":null,"unit":"count (integer)"},{"name":"(parameters).reversal","type":"number","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#rangeBars","name":"rangeBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#rangeBars","signature":"export declare function rangeBars(bars: ArrayLike<BarInput>, parameters: RangeBarParameters): BarInput[];","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"RangeBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).size","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#renko","name":"renko","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#renko","signature":"export declare function renko(bars: ArrayLike<BarInput>, parameters: RenkoParameters): RenkoBrick[];","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"RenkoParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).brickSize","type":"number","description":"","optional":false,"defaultValue":null,"unit":"count (integer)"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#runBars","name":"runBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#runBars","signature":"export declare function runBars(bars: ArrayLike<BarInput>, parameters: InformationBarParameters): BarInput[];","description":"Tick run bars — close on the larger one-sided tick run.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"InformationBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).threshold","type":"number","description":"Imbalance/run magnitude that closes a bar.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#tickBars","name":"tickBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#tickBars","signature":"export declare function tickBars(bars: ArrayLike<BarInput>, parameters: CountBarParameters): BarInput[];","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"CountBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).count","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#volumeBars","name":"volumeBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#volumeBars","signature":"export declare function volumeBars(bars: ArrayLike<BarInput>, parameters: VolumeBarParameters): BarInput[];","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"VolumeBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).volume","type":"number","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#volumeImbalanceBars","name":"volumeImbalanceBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#volumeImbalanceBars","signature":"export declare function volumeImbalanceBars(bars: ArrayLike<BarInput>, parameters: InformationBarParameters): BarInput[];","description":"Volume imbalance bars — signed volume `|Σ sign(Δclose)·volume|`.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"InformationBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).threshold","type":"number","description":"Imbalance/run magnitude that closes a bar.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/technical-analysis/chart-types#volumeRunBars","name":"volumeRunBars","kind":"function","url":"/reference/totalfinance/technical-analysis/chart-types/page-2#volumeRunBars","signature":"export declare function volumeRunBars(bars: ArrayLike<BarInput>, parameters: InformationBarParameters): BarInput[];","description":"Volume run bars — close on the larger one-sided volume run.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(bars)","type":"ArrayLike<BarInput>","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters)","type":"InformationBarParameters","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).flush","type":"boolean","description":"Emit the trailing partial bar. Default true.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(parameters).threshold","type":"number","description":"Imbalance/run magnitude that closes a bar.","optional":false,"defaultValue":null,"unit":"unitless by name"}]}]}