23423423
This commit is contained in:
@@ -37,7 +37,7 @@ try:
|
|||||||
import plotly.graph_objects as go
|
import plotly.graph_objects as go
|
||||||
except Exception:
|
except Exception:
|
||||||
go = None
|
go = None
|
||||||
from models.bitmart_klines import BitMartETH5M
|
from models.bitmart_klines import BitMartETH15M
|
||||||
|
|
||||||
# 配置中文字体
|
# 配置中文字体
|
||||||
import matplotlib.font_manager as fm
|
import matplotlib.font_manager as fm
|
||||||
@@ -200,7 +200,7 @@ def backtest_one_third_strategy(dates: List[str]):
|
|||||||
all_data: List[Dict] = []
|
all_data: List[Dict] = []
|
||||||
|
|
||||||
for d in dates:
|
for d in dates:
|
||||||
day_data = get_data_by_date(BitMartETH5M, d)
|
day_data = get_data_by_date(BitMartETH15M, d)
|
||||||
all_data.extend(day_data)
|
all_data.extend(day_data)
|
||||||
|
|
||||||
logger.info(f"总共查询了 {len(dates)} 天,获取到 {len(all_data)} 条K线数据")
|
logger.info(f"总共查询了 {len(dates)} 天,获取到 {len(all_data)} 条K线数据")
|
||||||
|
|||||||
BIN
bitmart/回测图表.png
BIN
bitmart/回测图表.png
Binary file not shown.
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 149 KiB |
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user