{"description":"实验创建于2022/5/20","graph":{"edges":[{"to_node_id":"-866:instruments","from_node_id":"-855:data"}],"nodes":[{"node_id":"-855","module_id":"BigQuantSpace.instruments.instruments-v2","parameters":[{"name":"start_date","value":"2022-03-01","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"2022-03-05","type":"Literal","bound_global_parameter":null},{"name":"market","value":"CN_STOCK_A","type":"Literal","bound_global_parameter":null},{"name":"instrument_list","value":"000001.SZA","type":"Literal","bound_global_parameter":null},{"name":"max_count","value":0,"type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"rolling_conf","node_id":"-855"}],"output_ports":[{"name":"data","node_id":"-855"}],"cacheable":true,"seq_num":1,"comment":"","comment_collapsed":true},{"node_id":"-866","module_id":"BigQuantSpace.hftrade.hftrade-v2","parameters":[{"name":"start_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"end_date","value":"","type":"Literal","bound_global_parameter":null},{"name":"initialize","value":"# 交易引擎:初始化函数,只执行一次\ndef bigquant_run(context):\n # 加载预测数据\n context.ins = context.instruments[0]\n","type":"Literal","bound_global_parameter":null},{"name":"before_trading_start","value":"# 交易引擎:每个单位时间开盘前调用一次。\ndef bigquant_run(context, data):\n # 盘前处理,订阅行情等\n context.subscribe(context.ins)\n","type":"Literal","bound_global_parameter":null},{"name":"handle_tick","value":"# 交易引擎:tick数据处理函数,每个tick执行一次\ndef bigquant_run(context, tick):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"handle_data","value":"# 交易引擎:bar数据处理函数,每个时间单位执行一次\ndef bigquant_run(context, data):\n# print(data.current_dt.strftime(\"%H:%M\"))\n if data.current_dt.strftime(\"%H:%M\") == \"14:50\":\n price = data.current(context.ins, \"close\")\n context.order(context.ins, 100, price, order_type=OrderType.LIMIT)\n","type":"Literal","bound_global_parameter":null},{"name":"handle_trade","value":"# 交易引擎:成交回报处理函数,每个成交发生时执行一次\ndef bigquant_run(context, trade):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"handle_order","value":"# 交易引擎:委托回报处理函数,每个委托变化时执行一次\ndef bigquant_run(context, order):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"after_trading","value":"# 交易引擎:盘后处理函数,每日盘后执行一次\ndef bigquant_run(context, data):\n pass\n","type":"Literal","bound_global_parameter":null},{"name":"capital_base","value":1000000,"type":"Literal","bound_global_parameter":null},{"name":"frequency","value":"minute","type":"Literal","bound_global_parameter":null},{"name":"price_type","value":"真实价格","type":"Literal","bound_global_parameter":null},{"name":"product_type","value":"股票","type":"Literal","bound_global_parameter":null},{"name":"before_start_days","value":"0","type":"Literal","bound_global_parameter":null},{"name":"order_price_field_buy","value":"open","type":"Literal","bound_global_parameter":null},{"name":"order_price_field_sell","value":"close","type":"Literal","bound_global_parameter":null},{"name":"benchmark","value":"000300.HIX","type":"Literal","bound_global_parameter":null},{"name":"plot_charts","value":"True","type":"Literal","bound_global_parameter":null},{"name":"disable_cache","value":"False","type":"Literal","bound_global_parameter":null},{"name":"replay_bdb","value":"False","type":"Literal","bound_global_parameter":null},{"name":"show_debug_info","value":"False","type":"Literal","bound_global_parameter":null},{"name":"backtest_only","value":"False","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"instruments","node_id":"-866"},{"name":"options_data","node_id":"-866"},{"name":"history_ds","node_id":"-866"},{"name":"benchmark_ds","node_id":"-866"}],"output_ports":[{"name":"raw_perf","node_id":"-866"}],"cacheable":false,"seq_num":2,"comment":"","comment_collapsed":true}],"node_layout":"<node_postions><node_position Node='-855' Position='437,215,200,200'/><node_position Node='-866' Position='397,334,200,200'/></node_postions>"},"nodes_readonly":false,"studio_version":"v2"}
[2022-05-20 18:34:42.387803] INFO: moduleinvoker: instruments.v2 开始运行..
[2022-05-20 18:34:42.396525] INFO: moduleinvoker: 命中缓存
[2022-05-20 18:34:42.398616] INFO: moduleinvoker: instruments.v2 运行完成[0.010826s].
[2022-05-20 18:34:42.427510] INFO: moduleinvoker: hfbacktest.v1 开始运行..
[2022-05-20 18:34:42.432881] INFO: hfbacktest: biglearning V1.4.11
[2022-05-20 18:34:42.434746] INFO: hfbacktest: bigtrader v1.9.5 2022-05-12
[2022-05-20 18:34:42.456906] INFO: moduleinvoker: cached.v2 开始运行..
[2022-05-20 18:34:42.472928] INFO: moduleinvoker: 命中缓存
[2022-05-20 18:34:42.475235] INFO: moduleinvoker: cached.v2 运行完成[0.018367s].
[2022-05-20 18:34:42.535174] INFO: moduleinvoker: cached.v2 开始运行..
[2022-05-20 18:34:42.545881] INFO: moduleinvoker: 命中缓存
[2022-05-20 18:34:42.548584] INFO: moduleinvoker: cached.v2 运行完成[0.013419s].
[2022-05-20 18:34:44.007337] INFO: hfbacktest: backtest done, raw_perf_ds:DataSource(e08fdbc6f54f4df39027c3c57739016bT)
[2022-05-20 18:34:44.528905] INFO: moduleinvoker: hfbacktest.v1 运行完成[2.101407s].
[2022-05-20 18:34:44.530547] INFO: moduleinvoker: hftrade.v2 运行完成[2.123843s].
- 收益率-0.01%
- 年化收益率nan%
- 基准收益率-2.67%
- 阿尔法-0.03
- 贝塔0.0
- 夏普比率-116.98
- 胜率0.0
- 盈亏比0.0
- 收益波动率0.03%
- 信息比率0.52
- 最大回撤0.01%
bigcharts-data-start/{"__type":"tabs","__id":"bigchart-b33f02d1b9374fd684146318a1a3abff"}/bigcharts-data-end