Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:在回测中输出全部是空数组是怎么回事呢?

1楼
pyd 发表于:2019/2/13 16:27:20
请问我在python当中使用语句close = history_bars('context.s1',1,'1d','CLOSE')
 print(close)在回测中输出全部是空数组是怎么回事呢?
Python中的语句D = get_indicator('context.s1','MACD','DIFF','1d',i)回测时报错<built-in function get_indicator>returned a result with an error set 是为什么呢
[此贴子已经被作者于2019/2/13 16:30:25编辑过]
2楼
yukizzc 发表于:2019/2/13 16:31:55

close = history_bars(context.s1,1,'1d','CLOSE')

context.s1本身是字符串不要再加引号了

共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03027 s, 2 queries.