Software

zeigerwerk

Version 0.1.2 · MIT

One indicator catalogue for all my apps: written once in Rust, usable natively, as WebAssembly in the browser and Node, and as a drawing description for kerzwerk.

Screenshots to follow

Description

Each of my finance applications used to compute its indicators itself — and each a little differently. zeigerwerk defines and computes them once, in Rust, and makes them available in three places:

  • natively as a crate, for example in the Rust server of stratlab and in its parity tests against the Python research code;
  • as WebAssembly in the browser and in Node through the npm package zeigerwerk;
  • as a drawing description for kerzwerk.

Everywhere, the same candles give the same bits.

29 definitions, among them SMA, EMA, VWAP, Parabolic SAR, Ichimoku, Supertrend, RSI, MACD, Stochastic, Bollinger and Keltner bands, ATR, ADX, OBV and MFI. An indicator is stored as a portable setting: identifier, definition and only what differs from the defaults.

Getting it

The package is on npm under the MIT license. It has no runtime dependencies and carries the WebAssembly module (about 75 kB) inside — no bundler and no server has to find a .wasm file. It loads with import and with require.

npm install zeigerwerk

Get it

Git

git clone https://code.jeanavril.com/jean/zeigerwerk