Documentation menu

Function

randomWalk

Deterministic random-walk OHLCV bars, bit-identical to Rust's ferrochart_core::testing::random_walk (for demos, benchmarks and tests).

export function randomWalk(seed: number, n: number, startMs: number, intervalMs: number): OhlcData;
ParameterDescription
nnumber of bars
startMstime of the first bar, UTC ms
intervalMstime between bars