Regime#

API documentation for tradeexecutor.analysis.regime.Regime Python class in Trading Strategy framework.

class Regime[source]#

Bases: Enum

Possible market regimes.

The content of signal for visualise_market_regime_filter().

Any incoming nan or None is aliased to crab region.

__init__(*args, **kwds)#

Attributes

bull

We are in a bull market (trends up)

bear

We are in a bear market (trends down)

crab

We are in a sideways market (no trends)

bull = 1#

We are in a bull market (trends up)

bear = -1#

We are in a bear market (trends down)

crab = 0#

We are in a sideways market (no trends)

None is alias for 0 value here.