This commit is contained in:
Administrator
2025-11-28 17:49:17 +08:00
parent e360ae06a6
commit c4d8513dba
3 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
# from peewee import *
#
# # 连接到 SQLite 数据库,如果文件不存在会自动创建
# db = SqliteDatabase(r'E:\新建文件夹\lm_job\models\database.db')
from peewee import *
# 连接到 SQLite 数据库,如果文件不存在会自动创建
db = SqliteDatabase(r'E:\新建文件夹\lm_job\models\database.db')
import pymysql

Binary file not shown.

View File

@@ -195,7 +195,7 @@ def backtest_15m_trend_optimized(dates: List[str]):
# ========================= 运行示例(优化版盈利计算) =========================
if __name__ == '__main__':
dates = [f"2025-10-{i}" for i in range(1, 31)]
dates = [f"2025-11-{i}" for i in range(1, 31)]
trades, stats = backtest_15m_trend_optimized(dates)
logger.info("===== 每笔交易详情 =====")