-
# 问题大家常常在问,全市场多少股票?在 QMT 软件里面,用一行代码就可以解决:```python# 内置PythonC.get_stock_list_in_sector('板块名称')# 原生Pythonxtdata.get_stock_list_in_sector('板块名称')`...
-
无论是pip install xtquant还是从xuntou官网下载xtquant,都报错 ,在“/xtquant/xtdatacenter.py"这个文件from . import datacenter as \_\_dcImportError: cannot import name 'datacenter' from 'xtquant'...
-
这部分的代码是这样的:```python# 这部分的代码是这样的:s = [股票池]有N只股票for i in range(len(s)): #### 若当前有持仓,但是持仓数量小于最大持仓; if 0 < len(position_codes) < max_pos_n: for j...
-
类型通达信提供的这些行情?
-
今天刚注册的不是有试用期的吗?为什会出现连接失败,或者py单线程计算速度慢,怎么把计算机多核资源用满提升速度,那就用 python 实时调用 vba 指标,...
-
在init(非handlebar)里如果想要下单,核心是使用passorder(quickTrade=2),代码如下:在上述代码中,我们实现了在init里买入200股万科Aps:运行上述代码时需要在模型交易里,以实盘模式运行哦,注意使用仿真账号测...
-
# coding:gbkimport pandas as pddef init(C): passdef handlebar(C): #取总股本和净利润 fieldList = ['CAPITALSTRUCTURE.total_capital'] stockList = ["000002.SZ"] startDate = '202212...