/** * `rsi(src, len)`. * * **The first value is at bar `len`, not at bar `len - 1`.** `rsi` needs `len` * changes and a change needs two bars, so the smoothing's lookback is bars 1 to * `len`. `stdlib.md` section 5 states this warmup rather than leaving a reader * to work it out, and every entry in that section which consumes changes rather * than levels carries the same extra bar. * * The smoothing is `rma`, seeded with the simple average of the first `len` * changes, which is what makes this the classic reading rather than one of the * several averages that also produce a number between 0 and 100. */ import type { Series, StateRecord, Tail, Value } from '../values/index.js'; /** `rsi(src, len)`: from bar `len`. */ export declare function rsiStep(state: StateRecord, key: string, value: Value, len: number | null): Value; /** `rsi(src, len)` as a tail. */ export declare function rsiTail(len?: number): Tail; /** `rsi(src, len)` over a whole series. */ export declare function rsi(src: Series, len?: number): Value[]; //# sourceMappingURL=rsi.d.ts.map