Utility functions for simple calculations in Indie indicators.

Functions

cross()

function

Overloads

cross
(src1, src2) -> bool
Checks if two series just have crossed each other.
cross
(src, level) -> bool
Checks if two series just have crossed each other.

cross_over()

function

Overloads

cross_over
(src1, src2) -> bool
Checks if the first series just have crossed over the second one.
cross_over
(src, level) -> bool
Checks if the first series just have crossed over the second one.

cross_under()

function

Overloads

cross_under
(src1, src2) -> bool
Checks if the first series just have crossed under the second one.
cross_under
(src, level) -> bool
Checks if the first series just have crossed under the second one.

divide()

function

Overloads

divide
(numerator, denominator, default) -> float
Safely divides two numbers, returning a default value if the denominator is near zero.