Skip to content
New: Star-import, signal unraveling, Python 3.12 support, and more

#
nb package

Numba-compiled functions for generic data.

Provides an arsenal of Numba-compiled functions that are used by accessors and in many other parts of a backtesting pipeline, such as technical indicators. These only accept NumPy arrays and other Numba-compatible types.

Note

vectorbt treats matrices as first-class citizens and expects input arrays to be 2-dim, unless function has suffix `_1d` or is meant to be input to another function. Data is processed along index (axis 0).

Rolling functions with `minp=None` have `min_periods` set to the window size.

All functions passed as argument must be Numba-compiled.

Records must retain the order they were created in.

Warning

Make sure to use `parallel=True` only if your columns are independent.

## Sub-modules

- vectorbtpro.generic.nb.apply_reduce
- vectorbtpro.generic.nb.base
- vectorbtpro.generic.nb.iter_
- vectorbtpro.generic.nb.patterns
- vectorbtpro.generic.nb.records
- vectorbtpro.generic.nb.rolling

#### Cookie consent

We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.

- Google Analytics
- GitHub

Manage settings