(feat) add more records to candles

This commit is contained in:
cardosofede
2024-07-22 23:51:27 +03:00
parent b462c099bc
commit fb6e843f02
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ class MACDBBV1Controller(DirectionalTradingControllerBase):
def __init__(self, config: MACDBBV1ControllerConfig, *args, **kwargs):
self.config = config
self.max_records = max(config.macd_slow, config.macd_fast, config.macd_signal, config.bb_length)
self.max_records = max(config.macd_slow, config.macd_fast, config.macd_signal, config.bb_length) + 200
if len(self.config.candles_config) == 0:
self.config.candles_config = [CandlesConfig(
connector=config.candles_connector,

View File

@@ -87,7 +87,7 @@ class PMMDynamicController(MarketMakingControllerBase):
"""
def __init__(self, config: PMMDynamicControllerConfig, *args, **kwargs):
self.config = config
self.max_records = max(config.macd_slow, config.macd_fast, config.macd_signal, config.natr_length) + 10
self.max_records = max(config.macd_slow, config.macd_fast, config.macd_signal, config.natr_length) + 200
if len(self.config.candles_config) == 0:
self.config.candles_config = [CandlesConfig(
connector=config.candles_connector,