fix: reduce config hot-reload interval 60->10 cycles (~2-3min); already pushed strategy thresholds
This commit is contained in:
parent
7accb8ed88
commit
9a2d7cf187
@ -1472,8 +1472,8 @@ def main():
|
||||
warmup_cycles -= 1
|
||||
if warmup_cycles == 0:
|
||||
logger.info("冷启动保护期结束,模拟盘开仓已启用")
|
||||
# 每60轮(约15分钟)热加载配置,不需要重启
|
||||
if cycle % 60 == 0:
|
||||
# 每10轮(约2-3分钟)热加载配置,不需要重启
|
||||
if cycle % 10 == 0:
|
||||
old_strategies = list(PAPER_ENABLED_STRATEGIES)
|
||||
load_paper_config()
|
||||
strategy_configs = load_strategy_configs() # A1: 热重载权重/阈值/TP/SL
|
||||
|
||||
Loading…
Reference in New Issue
Block a user