get_regime_signal_regions#

API documentation for tradeexecutor.analysis.regime.get_regime_signal_regions Python function.

get_regime_signal_regions(signal)[source]#

Get regions of the regime signal.

Split the signal to continous blocks for coloring.

Returns:

Iterable of market regimes for colouring

Parameters:

signal (Series) –

Return type:

Iterable[RegimeRegion]