candle_manager
candle_manager
Classes:
Name | Description |
---|---|
CandleManager |
|
CandleManager
CandleManager(
candles: Optional[List[Candle]] = None,
candle_life: Optional[timedelta] = None,
timeframe: Optional[timedelta] = None,
timeframe_fill: bool = False,
candlestick: Optional[CandlestickType] = None,
)
Methods:
Name | Description |
---|---|
collapse_candles |
Collapses the given list of candles into specific timeframe candles. |
purge |
Remove this indicator value from all Candles |
sort_candles |
Sorts Candles in order of timestamp, accounts for collapsing |
Source code in hexital/core/candle_manager.py
collapse_candles
Collapses the given list of candles into specific timeframe candles. This can re-ran with same list to collapse latest candles. This method is destructive, returning a new list for the collapsed candles
Source code in hexital/core/candle_manager.py
purge
Remove this indicator value from all Candles
Source code in hexital/core/candle_manager.py
sort_candles
Sorts Candles in order of timestamp, accounts for collapsing