2025-05-26 13:26:07 +08:00

36 lines
1.1 KiB
Python

"""
Incremental Indicator States Module
This module contains indicator state classes that maintain calculation state
for incremental processing of technical indicators.
All indicator states implement the IndicatorState interface and provide:
- Incremental updates with new data points
- Constant memory usage regardless of data history
- Identical results to traditional batch calculations
- Warm-up detection for reliable indicator values
Classes:
IndicatorState: Abstract base class for all indicator states
MovingAverageState: Incremental moving average calculation
RSIState: Incremental RSI calculation
ATRState: Incremental Average True Range calculation
SupertrendState: Incremental Supertrend calculation
BollingerBandsState: Incremental Bollinger Bands calculation
"""
from .base import IndicatorState
from .moving_average import MovingAverageState
from .rsi import RSIState
from .atr import ATRState
from .supertrend import SupertrendState
from .bollinger_bands import BollingerBandsState
__all__ = [
'IndicatorState',
'MovingAverageState',
'RSIState',
'ATRState',
'SupertrendState',
'BollingerBandsState'
]