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

# iter_ module

Numba-compiled functions for iterative portfolio simulation.

## iter_above_nb function

    iter_above_nb(
        ctx,
        arr1,
        arr2,
        i=None,
        col=None
    )

Call iter_above_nb() on the context.

If any of the arguments are None, will use the respective value from the context.

## iter_below_nb function

    iter_below_nb(
        ctx,
        arr1,
        arr2,
        i=None,
        col=None
    )

Call iter_below_nb() on the context.

If any of the arguments are None, will use the respective value from the context.

## iter_crossed_above_nb function

    iter_crossed_above_nb(
        ctx,
        arr1,
        arr2,
        i=None,
        col=None
    )

Call iter_crossed_above_nb() on the context.

If any of the arguments are None, will use the respective value from the context.

## iter_crossed_below_nb function

    iter_crossed_below_nb(
        ctx,
        arr1,
        arr2,
        i=None,
        col=None
    )

Call iter_crossed_below_nb() on the context.

If any of the arguments are None, will use the respective value from the context.

## select_from_col_nb function

    select_from_col_nb(
        ctx,
        col,
        arr,
        i=None
    )

Get the current element from a specific column using flexible indexing.

If any of the arguments are None, will use the respective value from the context.

## select_nb function

    select_nb(
        ctx,
        arr,
        i=None,
        col=None
    )

Get the current element using flexible indexing.

If any of the arguments are None, will use the respective value from the context.

#### 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