/** * The readings taken from the whole bar rather than from one price: `cci`, * `ultimateOsc` and `awesomeOsc`. */ import type { Bar, StateRecord, Tail, Value } from '../values/index.js'; /** * `cci(len)`: how far the typical price sits from its mean in mean-deviation * units, from bar `len - 1`. * * The divisor is the **mean absolute deviation**, not the standard deviation. * The 0.015 constant is calibrated against that quantity, and substituting a * standard deviation changes every reading while still producing a plausible * looking line. */ export declare function cciStep(state: StateRecord, key: string, bar: Bar, len: number | null): Value; /** `cci(len)` as a tail. */ export declare function cciTail(len?: number): Tail; /** `cci(len)` over a run of bars. */ export declare function cci(bars: readonly Bar[], len?: number): Value[]; /** * `ultimateOsc(len1, len2, len3)`: buying pressure blended over three lookbacks, * from bar `max(len1, len2, len3)`. * * Buying pressure is the close above the lower of this bar's low and the * previous close, over the range between the higher of this bar's high and that * close and the same lower bound. Both need the previous close, so the sums * start at bar 1 and the first reading is at bar `max`, not `max - 1`. * * The weights are 4, 2 and 1 over 7, shortest lookback heaviest, which is what * stops any single length dominating the reading. */ export declare function ultimateOscStep(state: StateRecord, key: string, bar: Bar, len1: number | null, len2: number | null, len3: number | null): Value; /** `ultimateOsc(len1, len2, len3)` as a tail. */ export declare function ultimateOscTail(len1?: number, len2?: number, len3?: number): Tail; /** `ultimateOsc(len1, len2, len3)` over a run of bars. */ export declare function ultimateOsc(bars: readonly Bar[], len1?: number, len2?: number, len3?: number): Value[]; /** `awesomeOsc(fast, slow)`: the difference of two simple means of `hl2`, from bar `slow - 1`. */ export declare function awesomeOscStep(state: StateRecord, key: string, bar: Bar, fast: number | null, slow: number | null): Value; /** `awesomeOsc(fast, slow)` as a tail. */ export declare function awesomeOscTail(fast?: number, slow?: number): Tail; /** `awesomeOsc(fast, slow)` over a run of bars. */ export declare function awesomeOsc(bars: readonly Bar[], fast?: number, slow?: number): Value[]; //# sourceMappingURL=pressure.d.ts.map