【平台使用】回测问题
由bqtqg9he创建,最终由small_q 被浏览 11 用户
我用的是空白代码策略
========== 5. 回测配置 ==========
if name == "main": # 设置回测参数 backtest_params = { 'start_date': '2023-01-01', 'end_date': '2024-01-01', 'initial_cash': 100000, 'benchmark': '沪深300', 'frequency': '15m' }
# 运行回测
bq.run(m1_run_bigquant, backtest_params)
错误提示如下:
AttributeError Traceback (most recent call last) Cell In[2], line 131 122 backtest_params = { 123 'start_date': '2023-01-01', 124 'end_date': '2024-01-01', (...) 127 'frequency': '15m' 128 } 130 # 运行回测 --> 131 bq.run(m1_run_bigquant, backtest_params) AttributeError: module 'bigquant' has no attribute 'run'
希望得到您的帮助,谢谢。