mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-19 15:09:58 +00:00
(feat) add more records to candles
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user