Comments (3)
for param in params:
cnt += 1
print(f"{gpName} 正在回测{cnt}/{total}")
name = param["name"]
param_content = content.replace("$NAME$", name)
if is_yaml:
param_content = json.dumps(yaml.full_load(param_content))
engine.configBacktest(param["start_time"], param["end_time"])
time_range = (param["start_time"], param["end_time"])
# 去掉多余的参数
param.pop("start_time")
param.pop("end_time")
if self.cpp_stra_module is not None:
param.pop("name")
engine.setExternalCtaStrategy(name, self.cpp_stra_module, self.cpp_stra_type, param)
else:
straInfo = self.strategy_type(**param)
engine.set_cta_strategy(straInfo,slippage=1)
engine.commitBTConfig()
print(2)
engine.run_backtest()# !!!!!!!!在这里中断了,没有任何提示,接下来就是summary.json找不到
print(1)
self.__ayalyze_result__(name, time_range, param, capital, rf, period)
from wtpy.
没遇到过,我试试看
from wtpy.
这个问题,我怀疑和一些字符串长度的限制有关
from wtpy.
Related Issues (20)
- 运行cta_fut_bt回测模块报类型错误 HOT 2
- 特性请求:拉下来的文件 contracts.json里能不能增加合约到期日,保证金率等元信息 HOT 2
- WtWrapper的register_extended_data_loader调用异常 HOT 1
- set_sel_strategy的参数time由5改成10,结果出问题 HOT 2
- WtEngine=>add_sel_strategy=>create_sel_context传参错误 HOT 1
- GAOptimizer Linux环境无法运行
- sel_stk_bt回测时,on_calculate方法中股票获取不到数据 HOT 3
- dev两个问题 HOT 2
- 希望datahelper增加ticks数据的导出 HOT 2
- storage路径设置错误,engine.run_backend会直接退出
- ctp_loader 生成文件编码有问题 HOT 3
- 订阅期货期权存在编码错误问题 HOT 2
- 如何订阅主力合约 HOT 1
- 如何获得Linux/X86/X64文件下的编译.so文件
- wtpy hft 一些问题 HOT 3
- HFT引擎期权模块CFFEX交易所沪深指数期权订单乱码
- 订阅期权合约遇到无法触发回调的问题 HOT 2
- SEL引擎的绩效分析->累计净值数据为空 HOT 1
- 请问在交易接口中,怎么获取所有order的信息 HOT 2
- Monitor内置用户的密码是多少 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wtpy.