/** * `macd` and `ppo`: the gap between a fast and a slow exponential mean, once as * a difference and once as a percentage. * * Both return an array holding this bar's outputs, per `stdlib.md` section 2.3. * One call, one state region: the alternative of three named functions would be * three call sites and therefore three independent states, and the shared * smoothing would be computed three times per bar. * * The signal average is fed the difference series, absences and all, so it * seeds on the first `signal` values the difference produced. That is where the * declared warmup of bar `slow + signal - 2` comes from. */ import type { Series, StateRecord, Tail, Value } from '../values/index.js'; /** * `macd(src, fast, slow, signal)`: `[macd, signal, histogram]`, element 0 from * bar `slow - 1` and the other two from bar `slow + signal - 2`. */ export declare function macdStep(state: StateRecord, key: string, value: Value, fast: number | null, slow: number | null, signal: number | null): Value[]; /** `macd(src, fast, slow, signal)` as a tail. */ export declare function macdTail(fast?: number, slow?: number, signal?: number): Tail; /** `macd(src, fast, slow, signal)` over a whole series. */ export declare function macd(src: Series, fast?: number, slow?: number, signal?: number): Value[][]; /** * `ppo(src, fast, slow, signal)`: `[ppo, signal, histogram]`, on the same * warmups as `macd`. * * The same gap divided by the slow average, so the reading is a percentage and * two instruments at different price levels can be compared. */ export declare function ppoStep(state: StateRecord, key: string, value: Value, fast: number | null, slow: number | null, signal: number | null): Value[]; /** `ppo(src, fast, slow, signal)` as a tail. */ export declare function ppoTail(fast?: number, slow?: number, signal?: number): Tail; /** `ppo(src, fast, slow, signal)` over a whole series. */ export declare function ppo(src: Series, fast?: number, slow?: number, signal?: number): Value[][]; //# sourceMappingURL=convergence.d.ts.map