> ## Documentation Index
> Fetch the complete documentation index at: https://takeprofit.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Package indie.math

Utility functions for simple calculations in Indie indicators.

***

## Functions

### `cross()`

*function*

**1. Overloads**

cross

(src1, src2) -> bool

Checks if two series just have crossed each other.

**parameters info**

src1

indie.Series\[float]

required

First series to make crossing check.

src2

indie.Series\[float]

required

Second series to make crossing check.

cross

(src, level) -> bool

Checks if two series just have crossed each other.

**parameters info**

src

indie.Series\[float]

required

Series to make crossing check.

level

float

required

Constant level to make crossing check.

***

### `cross_over()`

*function*

**1. Overloads**

cross\_over

(src1, src2) -> bool

Checks if the first series just have crossed over the second one.

**parameters info**

src1

indie.Series\[float]

required

First series to make crossing check.

src2

indie.Series\[float]

required

Second series to make crossing check.

cross\_over

(src, level) -> bool

Checks if the first series just have crossed over the second one.

**parameters info**

src

indie.Series\[float]

required

Series to make crossing check.

level

float

required

Constant level to make crossing check.

***

### `cross_under()`

*function*

**1. Overloads**

cross\_under

(src1, src2) -> bool

Checks if the first series just have crossed under the second one.

**parameters info**

src1

indie.Series\[float]

required

First series to make crossing check.

src2

indie.Series\[float]

required

Second series to make crossing check.

cross\_under

(src, level) -> bool

Checks if the first series just have crossed under the second one.

**parameters info**

src

indie.Series\[float]

required

Series to make crossing check.

level

float

required

Constant level to make crossing check.

***

### `divide()`

*function*

**1. Overloads**

divide

(numerator, denominator, default) -> float

Safely divides two numbers, returning a default value if the denominator is near zero.

**parameters info**

numerator

float

required

Numerator.

denominator

float

required

Denominator.

default

float

default:
math.nan

Default value.

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.