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

#
enums module

Named tuples and enumerated types for indicators.

## Pivot PivotT

Pivot.

    PivotT(
        Valley=-1,
        Peak=1
    )

## TrendMode TrendModeT

Trend mode.

    TrendModeT(
        Downtrend=-1,
        Uptrend=1
    )

## SuperTrendAIS class

    SuperTrendAIS(
        i,
        high,
        low,
        close,
        prev_close,
        prev_upper,
        prev_lower,
        prev_direction,
        nobs,
        weighted_avg,
        old_wt,
        period,
        multiplier
    )

A named tuple representing the input state of supertrend_acc_nb().

Superclasses

- `builtins.tuple`

### close method-wrapper

Alias for field number 3

### high method-wrapper

Alias for field number 1

### i method-wrapper

Alias for field number 0

### low method-wrapper

Alias for field number 2

### multiplier method-wrapper

Alias for field number 12

### nobs method-wrapper

Alias for field number 8

### old_wt method-wrapper

Alias for field number 10

### period method-wrapper

Alias for field number 11

### prev_close method-wrapper

Alias for field number 4

### prev_direction method-wrapper

Alias for field number 7

### prev_lower method-wrapper

Alias for field number 6

### prev_upper method-wrapper

Alias for field number 5

### weighted_avg method-wrapper

Alias for field number 9

## SuperTrendAOS class

    SuperTrendAOS(
        nobs,
        weighted_avg,
        old_wt,
        upper,
        lower,
        trend,
        direction,
        long,
        short
    )

A named tuple representing the output state of supertrend_acc_nb().

Superclasses

- `builtins.tuple`

### direction method-wrapper

Alias for field number 6

### long method-wrapper

Alias for field number 7

### lower method-wrapper

Alias for field number 4

### nobs method-wrapper

Alias for field number 0

### old_wt method-wrapper

Alias for field number 2

### short method-wrapper

Alias for field number 8

### trend method-wrapper

Alias for field number 5

### upper method-wrapper

Alias for field number 3

### weighted_avg method-wrapper

Alias for field number 1

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