Skip to content
TotalFinance

Technical analysis · @insiderfinance/totalfinance

@insiderfinance/totalfinance/technical-analysis/macd

import { … } from '@insiderfinance/totalfinance/technical-analysis/macd'
stable-by-law (pre-1.0; not a 1.0 stability guarantee)iface 2class 1fn 1JSON ↗

Functions · 1

Classes · 1

Interfaces · 2

iface

MacdParameters

#

Public declaration. Read the signature and member contracts below; no additional behaviour is inferred.

Signature
import type { MacdParameters } from '@insiderfinance/totalfinance/technical-analysis/macd';

export interface MacdParameters {
    fast?: number;
    slow?: number;
    signal?: number;
}
Fields, parameters and returned members (3)
Name · typeMeaning · unitRequired · default
fastnumber—unitless by nameOptionalNo @default declared
signalnumber—unitless by nameOptionalNo @default declared
slownumber—unitless by nameOptionalNo @default declared

Stability: stable-by-law (pre-1.0; not a 1.0 stability guarantee). Units come from declared names; “unitless by name” means the name alone does not establish a unit. See conventions and errors and warnings.

iface

MacdPoint

#

Public declaration. Read the signature and member contracts below; no additional behaviour is inferred.

Signature
import type { MacdPoint } from '@insiderfinance/totalfinance/technical-analysis/macd';

export interface MacdPoint {
    macd: number;
    signal: number;
    histogram: number;
}
Fields, parameters and returned members (3)
Name · typeMeaning · unitRequired · default
histogramnumber—unitless by nameRequiredNo @default declared
macdnumber—unitless by nameRequiredNo @default declared
signalnumber—unitless by nameRequiredNo @default declared

Stability: stable-by-law (pre-1.0; not a 1.0 stability guarantee). Units come from declared names; “unitless by name” means the name alone does not establish a unit. See conventions and errors and warnings.

class

MacdStream

#

Public declaration. Read the signature and member contracts below; no additional behaviour is inferred.

Signature
import { MacdStream } from '@insiderfinance/totalfinance/technical-analysis/macd';

export declare class MacdStream implements IndicatorStream<number, MacdPoint> {
  constructor(parameters: { fast: number; slow: number; signal: number; });
  static fromJSON(snapshot: TechnicalAnalysisSnapshot): MacdStream;
  value: MacdPoint | null;
  next(value: number): MacdPoint | null;
  toJSON(): TechnicalAnalysisSnapshot;
}
Fields, parameters and returned members (34)

Loading 34 members…

Stability: stable-by-law (pre-1.0; not a 1.0 stability guarantee). Units come from declared names; “unitless by name” means the name alone does not establish a unit. See conventions and errors and warnings.

fn

macd

#

Public declaration. Read the signature and member contracts below; no additional behaviour is inferred.

Signature
import { macd } from '@insiderfinance/totalfinance/technical-analysis/macd';

export declare const macd: import('@insiderfinance/totalfinance/technical-analysis').Indicator<MacdParameters, number, MacdPoint>;
Fields, parameters and returned members (50)

Loading 50 members…

Stability: stable-by-law (pre-1.0; not a 1.0 stability guarantee). Units come from declared names; “unitless by name” means the name alone does not establish a unit. See conventions and errors and warnings.