1
0

重构回测代码架构,新增批量回测功能

This commit is contained in:
2026-01-28 14:10:14 +08:00
parent 173a566f8b
commit 0db4155a3c
13 changed files with 1731 additions and 283 deletions

20
config.py Normal file
View File

@@ -0,0 +1,20 @@
"""
配置文件
集中管理数据库配置、默认回测参数、图表配色
"""
DB_HOST = "81.71.3.24"
DB_PORT = 6785
DB_NAME = "leopard_dev"
DB_USER = "leopard"
DB_PASSWORD = "9NEzFzovnddf@PyEP?e*AYAWnCyd7UhYwQK$pJf>7?ccFiN^x4$eKEZ5~E<7<+~X"
DEFAULT_CASH = 100000
DEFAULT_COMMISSION = 0.002
DEFAULT_WARMUP_DAYS = 365
from bokeh.colors.named import tomato, lime
BULL_COLOR = tomato
BEAR_COLOR = lime