/** * The lookback extremes: `highest`, `lowest` and the two that report where the * extreme was set. * * `highestBars` and `lowestBars` count bars back, 0 being this bar, which is * what `stdlib.md` section 9 says they return. A tie goes to the most recent * bar: the lookback's high was set most recently at that bar, and reporting the * older one would make the answer jump backwards as an equal high rolls in. */ import type { Series, StateRecord, Tail, Value } from '../values/index.js'; /** `highest`, `lowest` and the two that report where the extreme was set. */ export declare function extremeStep(state: StateRecord, key: string, value: Value, len: number | null, wantHigh: boolean, asBars: boolean): Value; /** `highest(src, len)`: the largest value in the last `len` bars, from bar `len - 1`. */ export declare function highestTail(len: number): Tail; /** `highest(src, len)` over a whole series. */ export declare function highest(src: Series, len: number): Value[]; /** `lowest(src, len)`: the smallest value in the last `len` bars, from bar `len - 1`. */ export declare function lowestTail(len: number): Tail; /** `lowest(src, len)` over a whole series. */ export declare function lowest(src: Series, len: number): Value[]; /** `highestBars(src, len)`: how many bars back the lookback's high was set. */ export declare function highestBarsTail(len: number): Tail; /** `highestBars(src, len)` over a whole series. */ export declare function highestBars(src: Series, len: number): Value[]; /** `lowestBars(src, len)`: how many bars back the lookback's low was set. */ export declare function lowestBarsTail(len: number): Tail; /** `lowestBars(src, len)` over a whole series. */ export declare function lowestBars(src: Series, len: number): Value[]; //# sourceMappingURL=extremes.d.ts.map