crossover#

tradeexecutor.state.crossover Python module in Trading Strategy framework.

Module description#

Provides functions to detect crossovers.

  • crossover between two series

  • crossover between a series and a constant value

Functions#

is_crossover(series1, series2)

Detect if two series have cross over.

is_crossover_constant(series, value)

Detect if a series has crossed over a constant value.