重构回测代码架构,新增批量回测功能
This commit is contained in:
20
config.py
Normal file
20
config.py
Normal 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
|
||||
Reference in New Issue
Block a user