RegimeRegion#
API documentation for tradeexecutor.analysis.regime.RegimeRegion Python class in Trading Strategy framework.
- class RegimeRegion[source]#
Bases:
object
One regime colouring region for the charts.
- __init__(start, end, regime)#
- Parameters:
start (Timestamp) –
end (Timestamp) –
regime (Regime) –
- Return type:
None
Methods
__init__
(start, end, regime)get_duration
()is_predition_correct
(close[, ...])Check if the region matches actual data.
Attributes
start
end
regime